-
Notifications
You must be signed in to change notification settings - Fork 88
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
Using docker executor #5
Comments
+1 |
While I have never tried it, I don't see any reason why it will not work. To use the docker executor, you will need to volume mount your docker unix domain socket into the runner. e.g. docker run -it --rm \
<other options>
-v /var/run/docker.sock:/run/docker.sock \
sameersbn/gitlab-ci-multi-runner edit: I am not sure how see https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/install/docker.md for more information |
Hi, It seems that the @sameersbn solution doesn't work. Otherwise, is it possible to do some 'nested docker'? |
I have not tried this yet. I will give it a shot and let you know. BTW, if you are eager to use docker as the executor, you can simply run the However, I will try the docker executor and let you know my findings. |
problem was with access to the docker socket. Also during registration First time run using: docker run --name runner -it --rm \
-v /run/docker.sock:/run/docker.sock \
-v /srv/docker/gitlab-ci-multi-runner:/home/gitlab_ci_multi_runner/data \
sameersbn/gitlab-ci-multi-runner It will ask you to provide the relevant details. I was able to trigger builds in docker containers. I have not tested an actual build, but the docker executor works. FWIW i used the following build description test:
script:
- pwd
- ls -la |
Thanks for this. I've pulled the latest image and I'm using the following command to start a runner:
But when I try to run a build I get:
I can get it working using the |
oh wait.. i was supposed to do another change. completely skipped my mind. |
Have made a required change. Please check if it fixes your issue. |
Hmmm. Now I get |
oh.. then I may have to add some more checks. |
have introduce some more changes. Please pull in a couple of minutes (its building) and retry. |
Awesome! That's working now. Thanks for all your help. 👍 |
@tamlyn |
I haven't done a full end to end run through yet but I'll post back here when I do. |
Much appreciated. Thanks. |
one thing i did notice that the runner image needs to have git installed. But you must have figured that by now :) |
@Analect try this http://tamlyn.org/2015/10/dockerised-gitlab-ci-runner/ I may well have missed some steps so let me know if you get stuck or something is wrong. |
@tamlyn |
@tamlyn The build is failing as per screenshot below. Any idea what I might be missing. Is the fact that the 'runner' container doesn't have docker installed? ... or is it something else. I notice in the docker-compose ... I presumably need to change the CI_SERVER_URL ... also to The other thing I'm finding with tutum's script editor ... is that it randomly changes the docker-compose.yml to wrap certain elements in single quotes ... as strings ... but not others ... have you had any issues with that? Thanks,
|
@Analect the latest issue can be caused by the not root user, I would guess that adding something like
should fix this problem |
Is it possible to use the
docker
executor with this image? If so how do I supply the base image and link services?The text was updated successfully, but these errors were encountered: