See http://tamlyn.org/2015/10/dockerised-gitlab-ci-runner/ for write-up.
Last active
April 10, 2016 15:40
-
-
Save tamlyn/b0edbec265efaf1ebbee to your computer and use it in GitHub Desktop.
Dockerised Gitlab+Ci+Runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- npm install | |
test: | |
script: npm test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitlab: | |
image: sameersbn/gitlab:8.0.3 | |
links: | |
- redis:redisio | |
- postgresql | |
ports: | |
- "10080:80" | |
environment: | |
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string | |
- GITLAB_HOST=192.168.99.100 | |
- GITLAB_PORT=10080 | |
volumes: | |
- /srv/docker/gitlab/gitlab:/home/git/data | |
postgresql: | |
image: sameersbn/postgresql:9.4-3 | |
environment: | |
- DB_USER=gitlab | |
- DB_PASS=password | |
- DB_NAME=gitlabhq_production | |
volumes: | |
- /srv/docker/gitlab/postgresql:/var/lib/postgresql | |
redis: | |
image: sameersbn/redis:latest | |
volumes: | |
- /srv/docker/gitlab/redis:/var/lib/redis | |
node_runner: | |
image: sameersbn/gitlab-ci-multi-runner:latest | |
volumes: | |
- /var/run/docker.sock | |
- /opt/gitlab-ci-multi-runner:/home/gitlab_ci_multi_runner/data | |
environment: | |
- CI_SERVER_URL=http://gitlab/ci | |
- RUNNER_TOKEN=temporaryvalue | |
- RUNNER_DESCRIPTION=Node runner | |
- RUNNER_EXECUTOR=docker | |
- DOCKER_IMAGE=node:0.12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment