Skip to content

Instantly share code, notes, and snippets.

@dduportal
Last active May 29, 2019 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dduportal/e3c0946f5cfbdfe1400513c251c17f70 to your computer and use it in GitHub Desktop.
Save dduportal/e3c0946f5cfbdfe1400513c251c17f70 to your computer and use it in GitHub Desktop.
traefik-cloudbees-jenkins

CloudBees Jenkins License Wizard Issue with Traefik and Firefox

Requirements

  • Docker Engine
  • docker-compose

Prepare Environment

With the docker-compose.yml file provided in this gist, run the following command:

docker-compose up -d

After a while, get the admin password to be able to unlock the installation with:

docker-compose exec cloudbees-jenkins cat /var/jenkins_home/secrets/initialAdminPassword

Issue Reproduction

Run the following scenario with Google Chrome 1st, and then try it with Firefox:

  • Open http://localhost/
  • Unlock Jenkins's installation with the initialAdminPassword
  • Check that the wizard renders correctly for the license

screenshot

version: '2.4'
services:
lb:
image: traefik:1.7.11
command:
- "--docker"
ports:
- "80:80"
labels:
- "traefik.enable=false"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
cloudbees-jenkins:
image: cloudbees/jenkins-enterprise:latest
ports:
- "8081:8081"
restart: unless-stopped
labels:
- "traefik.frontend.rule=Host:localhost"
- "traefik.port=8080"
@MarkEWaite
Copy link

Thanks so much! This reminds me that we need to check our courses are well-behaved in multiple browsers, not just in Google Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment