Skip to content
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

jenkins job config #5

Open
bborysenko opened this issue Nov 18, 2015 · 2 comments
Open

jenkins job config #5

bborysenko opened this issue Nov 18, 2015 · 2 comments

Comments

@bborysenko
Copy link

Hello,

Could you please share some details about Jenkins job configuration?

Thanks in advance!

@philpep
Copy link
Owner

philpep commented Nov 18, 2015

Hello,

The jenkins job looks like:

for image in default production; do
    docker pull philpep/test-driven-infrastructure-example:$image &
done
wait
vagrant up --no-provision --provider=docker
tox

I also use the jenkins docker plugin with the image philpep/jenkins-slave:jessie (from https://github.com/philpep/jenkins-slave). The image have docker and vagrant
so in the build config I also start docker with

sudo DOCKER_DAEMON_ARGS="--registry-mirror=http://192.168.31.24:5000" wrapdocker true > docker.log 2>&1

(The mirror is part of my infrastructure).

BUT: This setup isn't very stable and running docker in docker is not a good idea (see https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/)

So I recommend that you use a normal jenkins slave who has vagrant and docker installed. Just make a vagrant destroy -f after and before the build config.

@bborysenko
Copy link
Author

@philpep thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants