Skip to content

Instantly share code, notes, and snippets.

@tamlyn
Last active April 10, 2016 15:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamlyn/b0edbec265efaf1ebbee to your computer and use it in GitHub Desktop.
Save tamlyn/b0edbec265efaf1ebbee to your computer and use it in GitHub Desktop.
Dockerised Gitlab+Ci+Runner
before_script:
- npm install
test:
script: npm test
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