-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running continuous integration (jenkins) #7
Comments
I'm having the same problem using v17.03.0 of the book on macOS 10.12.5. I followed these instructions, but couldn't make it work: > sudo mkdir -p /var/jenkins_home
> cd /var/jenkins_home
> sudo chown -R 1000 /var/jenkins_home I successfully completed the chapter using a VirtualBox CentOS as host (i.e., CentOS VM running docker that creates a Jenkins container that itself uses docker to create a test run) and file sharing from macOS with the CentOS host (and sharing internally with Jenkins). That may work for others who want to work through the chapters while waiting for this issue to resolve. |
Same problem on Windows 10 using Docker Toolbox with Virtualbox, book version v17.12.0-ce. |
Similar problem as declanjryan while making the home directories and changing ownership. Using book version: The only way I could get the jenkins web interface to work on MacOSX, was to run docker like this: Interesting that the first -v flag in listing 5.70 in the book calls for: but I could not get this to work for the life of me, changing permissions and ownership and even trying /private/var/jenkins_home as James recommended for the Mac OS X users in Listing 5.68 on page 184, to no avail. Being new to docker, I'm not sure of the significance of the jenkin-data:/var/jenkins_home mapping but that seemed to at least get the container up and running so I could log into the web interface. However, another thing I suggest is to select the "Install Suggested plugins" options on the Customize Jenkins, during the initial setup, otherwise, when James has you create your first build job on page 190, selecting the Git repository option under "Source Code Management" is not there as an option and to a rookie such as myself, you are left baffled, wondering how to enable this option. Having said that, even after I was able to specify the git repository James setup for us, I was getting errors on the first build:
Looks like something to do with Java |
I am going through the Docker book (Version: v1.12.3 (32f7583)) on OSx version 10.10.5
Going though the continuous-integration examples I am running into a few errors.
In order to debug why, here are the steps I followed:
sudo docker run -it -v /var/jenkins_home/jobs/Docker_Test_Job/workspace/..:/opt/project/ /bin/bash
It looks like after running step# 3,
-v /var/jenkins_home/jobs/Docker_Test_Job/workspace/..:/opt/project/
this doesn't work as expected.
It doesn't look like the directory
/var/jenkins_home/jobs/Docker_Test_Job/workspace/
is mounted to/opt/project/
Do you have any insight on this?
The text was updated successfully, but these errors were encountered: