Update docker container URL to serve Jenkins from "subdirectory"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Update docker container URL to serve Jenkins from "subdirectory"

Josh Davidson
I migrated a bitnami Jenkins installation to the official docker container and have things running.  One of the issues I'm running into is that the bitnami installation published Jenkins at "https://<server>:<port>/jenkins" and the docker container is just "https://<server>:<port>" (no /jenkins).  Is there something I can set in my docker run command to add the "/jenkins" or failing that, a docker exec I can ran post launch?  Do many things are depending on the old URL for me to leave as-is.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ad19cf73-bd4c-4598-b4b6-ec772bf388f7o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Update docker container URL to serve Jenkins from "subdirectory"

Josh Davidson
I was able to get it working by adding --env="JENKINS_OPTS=--prefix=/jenkins" to the docker run command.

On Saturday, July 25, 2020 at 1:47:32 PM UTC-6, Josh Davidson wrote:
I migrated a bitnami Jenkins installation to the official docker container and have things running.  One of the issues I'm running into is that the bitnami installation published Jenkins at "https://<server>:<port>/jenkins" and the docker container is just "https://<server>:<port>" (no /jenkins).  Is there something I can set in my docker run command to add the "/jenkins" or failing that, a docker exec I can ran post launch?  Do many things are depending on the old URL for me to leave as-is.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2d64b61c-cc15-48ab-90fa-b03f4ed99865o%40googlegroups.com.