sixeyed / diamol

Code samples for the book "Learn Docker in a Month of Lunches"
https://www.manning.com/books/learn-docker-in-a-month-of-lunches
Creative Commons Attribution Share Alike 4.0 International
505 stars 273 forks source link

Ch11 jenkins won't start #23

Open vasily-kartashov opened 3 years ago

vasily-kartashov commented 3 years ago

Exercise Chapter 11

Problem Jenkins container stuck in "Please wait while Jenkins is getting ready to work..."

Docker version Client: Docker Engine - Community Cloud integration: 1.0.1 Version: 19.03.13 API version: 1.40 Go version: go1.13.15 Git commit: 4484c46d9d Built: Wed Sep 16 16:58:31 2020 OS/Arch: darwin/amd64 Experimental: false

Code version 19a8d04b1b4df0392ae6091c6ead8a680ad72368

Additional context Running on MacOS

vasily-kartashov commented 3 years ago

From the logs:

SEVERE  h.model.UpdateCenter$DownloadJob#run: Failed to install bouncycastle-api

which maybe related to https://github.com/jenkinsci/docker/issues/787

jasonsalas commented 3 years ago

Hi @vasily-kartashov, I was able to get Jenkins to start on Ubuntu 20.x and launch the UI, but it doesn't auto-load the diamol job as illustrated in Ch11.

sixeyed commented 3 years ago

HI @vasily-kartashov - this is usually a temporary network issue where Jenkins can't load the plugins. I've updated the Jenkins version, you can pull the updated images like this:

cd ch11/exercises/infrastructure

docker-compose pull

Can you try again with the new version and LMK if it still fails? Thanks.

jurlwin commented 2 years ago

I am currently having an issue, even with the pull. it appears a newer version of Jenkins is required? Not sure...as i'm not yet an expert. I see sprinklings of issues in the logs, such as: 2022-07-04 16:53:37.949+0000 [id=63] SEVERE h.model.UpdateCenter$DownloadJob#run: Failed to install command-launcher java.io.IOException: Failed to load: Command Agent Launcher Plugin (81.v9c2cb_cb_db_392)

Also, note, that on MacOS port 5000 is now used by the OS for AirPlay support...sigh But I don't think i've reached that problem yet...other than starting the registry on 5001, but as I indicated, I don't think Jenkins is yet fully operational...

jurlwin commented 2 years ago

(and P.S. Jenkins does start, just no jobs preloaded...)

jurlwin commented 2 years ago

sorry for 'spamming' but bumping Jenkins version to 2.277.4 in the image build seems to get me past the initial error after grepping through the logs. .4 was the "highest" version reported as the min and things at least are starting / configured.

On MacOS, port 5000 now being used, so I locally changed port to 5001 - Jenkins file (for build) and docker-compose.yml. Once I pushed those to GOG, the build ran perfectly.