Ref. setup described here, and these different comments here.
I've minimized a reproducible setup further, with the changed files below.
stb_plugins.txt:configuration-as-code:0.10-alpha
jenkins-master/Jenkins.yamljenkins:
# http://yaml-multiline.info/
systemMessage: |-
Welcome to a minimalized Dockerized config-as-code version of Jenkins!
The below two files are identical to what was described in this other previous issue's comment:
docker-compose.yaml # I did re-map Jenkin's port to 80:8080, otherwise identicaljenkins-master/Dockerfile # Identical(Terminal timestamps in CET - summer time).
[2018-07-20 16:27:11] $ docker history stb-jcasc_jenkins
IMAGE CREATED CREATED BY SIZE COMMENT
5a0f4978beaa 10 minutes ago /bin/sh -c #(nop) COPY file:4d4fdddc87667365… 160B
5ac5e6846a6b 10 minutes ago /bin/sh -c xargs /usr/local/bin/install-plug… 512kB
7e8291738ecc 10 minutes ago /bin/sh -c #(nop) COPY file:cb73c8ca409e127b… 33B
281579933914 4 hours ago /bin/sh -c #(nop) LABEL maintaner=jxq@store… 0B
80fc01fa46f9 2 days ago /bin/sh -c #(nop) COPY file:0c88cf25dbed734a… 8.71kB
<missing> 2 days ago /bin/sh -c #(nop) COPY file:f97999fac8a63cf8… 3.96kB
<missing> 2 days ago /bin/sh -c #(nop) ENTRYPOINT ["/sbin/tini" … 0B
<missing> 2 days ago /bin/sh -c #(nop) COPY file:dc942ca949bb159f… 529B
<missing> 2 days ago /bin/sh -c #(nop) COPY file:a8f986413b77bf4d… 1.45kB
<missing> 2 days ago /bin/sh -c #(nop) COPY file:d5c7af20858d02eb… 6.1kB
<missing> 2 days ago /bin/sh -c #(nop) USER jenkins 0B
<missing> 2 days ago /bin/sh -c #(nop) ENV COPY_REFERENCE_FILE_L… 0B
<missing> 2 days ago /bin/sh -c #(nop) EXPOSE 50000 0B
<missing> 2 days ago /bin/sh -c #(nop) EXPOSE 8080 0B
<missing> 2 days ago |9 JENKINS_SHA=da0f9d106e936246841a898471783… 328B
<missing> 2 days ago /bin/sh -c #(nop) ENV JENKINS_INCREMENTALS_… 0B
<missing> 2 days ago /bin/sh -c #(nop) ENV JENKINS_UC_EXPERIMENT… 0B
<missing> 2 days ago /bin/sh -c #(nop) ENV JENKINS_UC=https://up… 0B
<missing> 2 days ago |9 JENKINS_SHA=da0f9d106e936246841a898471783… 74.7MB
<missing> 2 days ago /bin/sh -c #(nop) ARG JENKINS_URL=https://r… 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG JENKINS_SHA=5bb075b81… 0B
<missing> 2 days ago /bin/sh -c #(nop) ENV JENKINS_VERSION=2.121… 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG JENKINS_VERSION 0B
<missing> 2 days ago /bin/sh -c #(nop) COPY file:c84b91c835048a52… 328B
<missing> 2 days ago |7 TINI_VERSION=v0.16.1 agent_port=50000 gid… 866kB
<missing> 2 days ago /bin/sh -c #(nop) COPY file:653491cb486e752a… 7.15kB
<missing> 2 days ago /bin/sh -c #(nop) ARG TINI_VERSION=v0.16.1 0B
<missing> 2 days ago |6 agent_port=50000 gid=1000 group=jenkins h… 0B
<missing> 2 days ago /bin/sh -c #(nop) VOLUME [/var/jenkins_home] 0B
<missing> 2 days ago |6 agent_port=50000 gid=1000 group=jenkins h… 328kB
<missing> 2 days ago /bin/sh -c #(nop) ENV JENKINS_SLAVE_AGENT_P… 0B
<missing> 2 days ago /bin/sh -c #(nop) ENV JENKINS_HOME=/var/jen… 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG JENKINS_HOME=/var/jen… 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG agent_port=50000 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG http_port=8080 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG gid=1000 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG uid=1000 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG group=jenkins 0B
<missing> 2 days ago /bin/sh -c #(nop) ARG user=jenkins 0B
<missing> 2 days ago /bin/sh -c apt-get update && apt-get install… 0B
<missing> 3 days ago /bin/sh -c /var/lib/dpkg/info/ca-certificate… 355kB
<missing> 3 days ago /bin/sh -c set -ex; if [ ! -d /usr/share/m… 348MB
<missing> 3 days ago /bin/sh -c #(nop) ENV CA_CERTIFICATES_JAVA_… 0B
<missing> 3 days ago /bin/sh -c #(nop) ENV JAVA_DEBIAN_VERSION=8… 0B
<missing> 3 days ago /bin/sh -c #(nop) ENV JAVA_VERSION=8u171 0B
<missing> 3 days ago /bin/sh -c #(nop) ENV JAVA_HOME=/docker-jav… 0B
<missing> 3 days ago /bin/sh -c ln -svT "/usr/lib/jvm/java-8-open… 33B
<missing> 3 days ago /bin/sh -c { echo '#!/bin/sh'; echo 'set… 87B
<missing> 3 days ago /bin/sh -c #(nop) ENV LANG=C.UTF-8 0B
<missing> 3 days ago /bin/sh -c apt-get update && apt-get install… 2.21MB
<missing> 3 days ago /bin/sh -c apt-get update && apt-get install… 142MB
<missing> 3 days ago /bin/sh -c set -ex; if ! command -v gpg > /… 7.8MB
<missing> 3 days ago /bin/sh -c apt-get update && apt-get install… 23.2MB
<missing> 3 days ago /bin/sh -c #(nop) CMD ["bash"] 0B
<missing> 3 days ago /bin/sh -c #(nop) ADD file:370028dca6e8ca9ed… 101MB
[2018-07-20 16:27:20] $
we're using
ENV JAVA_OPTS "-Djenkins.install.runSetupWizard=false ${JAVA_OPTS:-}"
in our docker image to disable wizard
There's no programmatic way for us to skip setup wizard. Using system properties is a common workaround
I suggest documenting this in the main README.md at least. Especially since a reliable method to disable said wizard seems to be a bit hard to find or vary with Jenkins version.
Again this is not a JCasC issue 😓 But if you feel the need for it to be in the readme please open a PR
Most helpful comment
we're using
in our docker image to disable wizard