Puppet CI/CD with Gitlab and Gitlab CI all running with Docker (demo)
- GitLab
- GitLab CI
- Puppet
- r10k
git clone https://github.com/Ananasr/puppet-ci-playground.git
Go create code
project in gitlab.
Set GITLAB_HOST
env var to host container IP address.
docker-compose up -d
docker build -t test/gitlab-cli -f Dockerfile.gitlab-cli .
./2createProjectsAndCommitToGitLab.sh
docker exec -it puppet r10k deploy environment -p
#todo autodocker exec -it puppet puppet agent --test
docker exec -it runner gitlab-runner register
#todo autodocker exec -it runner gitlab-runner run
#todo auto
- Use Swarm