docker icon indicating copy to clipboard operation
docker copied to clipboard

Document skipping initial setup wizard

Open ringerc opened this issue 5 years ago • 4 comments

Documented steps to skip setup wizard didn't appear to work on jenkins/jenkins:latest or jenkins/jenkins:latest. Neither did variants of them that tried to cope with volume-mounting etc, like:

RUN echo $JENKINS_VERSION | tee \
    /usr/share/jenkins/ref/jenkins.install.UpgradeWizard.state \
    /usr/share/jenkins/ref/jenkins.install.InstallUtil.lastExecVersion

Instead, recommend use of a system property that is known to work.

ringerc avatar Jun 06 '19 07:06 ringerc

Documented steps

FWIW the "documented" (in this repo only) steps have always been an unsupported hack and I don't understand how they became preferable over the intended method. Perhaps because it didn't require changing how to invoke docker? Understanding of how this happened may help with documenting the supported method.


Re-reading the discussion in JENKINS-40279 makes apparent that many users involved do not properly distinguish between the setup wizard and the upgrade wizard.

  • Setup: First launch only (except in rare circumstances like a mostly pristine Jenkins home directory). Installs plugins from a selection and creates initial admin user.
  • Upgrade: When crossing a version boundary on upgrade that introduces new recommended plugins. I don't think this has happened since the release 2.0 from early 2016 (or 2.7.x for LTS).

Perhaps that could explain part of this? The system property does not help with the latter?

daniel-beck avatar Jun 06 '19 07:06 daniel-beck

None of the proposed methods work with the latest LTS (2.277.1)

NorseGaud avatar Mar 16 '21 13:03 NorseGaud

@NorseGaud Are you referring to 2.277.1?

slide avatar Mar 16 '21 14:03 slide

@slide Yep -- it seems like JAVA_OPTS="-Djenkins.install.runSetupWizard=false" when launching lts tag from docker has no impact and the admin password wizard/login still shows. Maybe I'm misunderstanding.

NorseGaud avatar Mar 16 '21 15:03 NorseGaud