-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
-
Pre production environment
--> I have created image using below Dockerfile
FROM jenkins/jenkins:lts USER jenkins # Allows to skip Jenkins setup wizard ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false" # Update the username and password ENV JENKINS_USER xxx ENV JENKINS_PASS xxx # Copying files for custom plugin installation COPY plugins.txt /usr/share/jenkins/ref/ # Jenkins runs all grovy files from init.groovy.d dir; Using this for creating default admin user COPY default-user.groovy /usr/share/jenkins/ref/init.groovy.d/ # Installing all the plugins as per plugins.txt #RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt RUN jenkins-plugin-cli --plugins < /usr/share/jenkins/ref/plugins.txt
--> Then, I have created a container:
$ docker run -d -it --network host --name jenkins -p 8080:8080 -p 50000:50000 <image>
--> I am able to see http://<host>:8080/manage/ page on cloud hosted environments
--> But same set-up fails for on-premise environments where internet connectivity is restricted.
Please help here