-
Notifications
You must be signed in to change notification settings - Fork 7
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
slave node uses systemd #2
Conversation
My concern here, @aleksandra-tarkowska, is that this strategy makes it difficult to deploy to hub. If we can have only the changes here for devslave, then we can have a separate devjenkins (devmaster?) repo, and each of those can produce an image on hub which you can re-use in docker-compose. |
40f99ab
to
c947706
Compare
np, I have just rebased with slave only. |
f880bc8
to
33a7fcb
Compare
@@ -0,0 +1,27 @@ | |||
NS = openmicroscopy | |||
VERSION ?= latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to local
d28afd1
to
eede6cf
Compare
eede6cf
to
3f05625
Compare
- make start ENV="-e JENKINS_PORT_8080_TCP_ADDR=$JENKINS_ADDR -e JENKINS_PORT_8080_TCP_PORT=$JENKINS_PORT" VOLUMES="-v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /run" | ||
- docker inspect -f {{.State.Running}} devslave | ||
- SLAVE_ADDR=`docker inspect --format '{{ .NetworkSettings.IPAddress }}' devslave` | ||
- d=10; while ! docker logs jenkins 2>&1 | grep "from /${SLAVE_ADDR}" ; do sleep 10; d=$[$d -1]; if [ $d -lt 0 ]; then exit 1; fi; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
Nice. Merging. To be "integration tested" in the devspace along with @aleksandra-tarkowska's upcoming redis PR. This should significantly speed up the build. |
This PR improves slave node using systemd
To test it:
deploy jenkins (use https://github.com/aleksandra-tarkowska/omero-ssh-systemd-jenkins-slave)
attache to jenkins container to find out
env | grep JENKINS_PORT_8080_TCP
build using
make build
start container:
jenkins logs will show:
attache to devslave:
check jenkins http://jenkins:8080/computer/ if new node is up
cc: @joshmoore