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

edumco picture edumco  ·  6Comments

fboudra picture fboudra  ·  4Comments

ozbillwang picture ozbillwang  ·  3Comments

jamshid picture jamshid  ·  7Comments

greenrobot picture greenrobot  ·  7Comments