- Install docker and docker-compose, on Mac use dinghy
- When using docker-machine you should create the base directory for the mount points in the vm, see
docker-compose.yml
for the mount points. - An example:
docker-machine ssh default
sudo su
mkdir /var/lib/boot2docker/gitlab
mkdir /var/lib/boot2docker/sonar
exit
exit
- Run
docker-compuse up -d
ensure you docker-engine has enought memory. You can also simply start only the services needed. For exampledocker-compuse up -d gitlab gitlabrunner
. - Register the runner to gitlab.
docker exec -i -t gitlab-runner-dind1 gitlab-runner register -n \
--docker-links 'cicd_gitlab_1:gitlab.docker'
- Login to gitlab, which is available on the port mapped in the docker-compose file or on the dns name docker.gitlab when using dinghy.
- Login to gitlab using username: "root" and password: "5iveL!fe".
- Add your own user, setup ssh keys and so on.
- Add your sources and run builds.