Skip to content

added docker executor support#29

Closed
digitalLumberjack wants to merge 1 commit into
sameersbn:masterfrom
digitalLumberjack:features/docker-executor
Closed

added docker executor support#29
digitalLumberjack wants to merge 1 commit into
sameersbn:masterfrom
digitalLumberjack:features/docker-executor

Conversation

@digitalLumberjack

Copy link
Copy Markdown
Collaborator

You can use the docker executor by using RUNNER_EXECUTOR=docker. You must provide a docker image to use in RUNNER_DOCKER_IMAGE (e.g. docker:latest)

If RUNNER_DOCKER_MODE is set to socket, the docker socket is shared between the runner and the build container. If it is not, you must use docker in docker service in your .gitlabci.yml definitions.

See https://docs.gitlab.com/ce/ci/docker/using_docker_build.html for more info.

You can use the docker executor by using `RUNNER_EXECUTOR=docker`. You must provide a docker image to use in `RUNNER_DOCKER_IMAGE` (e.g. docker:latest)

If `RUNNER_DOCKER_MODE` is set to `socket`, the docker socket is shared between the runner and the build container.  If it is not, you must use docker in docker service in your .gitlabci.yml definitions.

See https://docs.gitlab.com/ce/ci/docker/using_docker_build.html for more info.
@djskinner-sky

Copy link
Copy Markdown

This sounds good but I have to admit it's been a while since I've looked at this stuff. Would you mind letting me know if it supersedes this PR I created #19. If so I'll close it.

@djskinner

Copy link
Copy Markdown

I'm using this on my own fork (combined with #31 for version 1.8.0) and it works great. Would be good to see it merged in.

@oomathias

Copy link
Copy Markdown

I'm referencing my fork here which support docker in docker, based on alpine, ENV_VARS support inside dind and support for rancher-compose.

There is a DNS change to support rancher-compose that will be removed when gitlab will supports docker labels.
https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1752

Link to the diff: 39274ea...oomathias:master

@digitalLumberjack digitalLumberjack deleted the features/docker-executor branch January 26, 2017 13:47
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

Successfully merging this pull request may close these issues.

4 participants