Docker: How to set context path in jenkins

Created on 10 Mar 2015  路  3Comments  路  Source: jenkinsci/docker

Most helpful comment

To complete the final answer, if you want to do this in a _docker-compose.yml_ file:

...
jenkins:
    container_name: jenkins_test
    environment:
      - JENKINS_OPTS="--prefix=/jenkins"
...

All 3 comments

Why would you need this ?

I needed this to access my jenkins instance using context path e.g. www.abc.com/jenkins. Anyway I resolved it by passing jenkins launcher arguments --prefix=/jenkins at the end.

To complete the final answer, if you want to do this in a _docker-compose.yml_ file:

...
jenkins:
    container_name: jenkins_test
    environment:
      - JENKINS_OPTS="--prefix=/jenkins"
...
Was this page helpful?
0 / 5 - 0 ratings

Related issues

fboudra picture fboudra  路  4Comments

jiankafei picture jiankafei  路  7Comments

szimmer1 picture szimmer1  路  5Comments

simonCor picture simonCor  路  3Comments

mattesja picture mattesja  路  5Comments