Docker-based CI service setup using Jenkins, SonarQube and Traefik.
Service provides
- Preconfigured Jenkins instance
- Preconfigured SonarQube instance
- Reverse proxy for Jenkins and SonarQube with Let's Encrypt support using Traefik
Machine with installed docker >= 19.03 and ssh connection to said machine
To deploy using docker context
- Create remote docker context
docker context create ciserver --docker "host=ssh://[email protected]"
- Copy configuration and secrets to remote machine
scp jenkins.yml [email protected]:/home/user
scp acme.json [email protected]:/home/user
scp traefik.toml [email protected]:/home/user
scp --recursive secrets [email protected]:/home/user
- Launch service on remote server using docker-compose
docker-compose --context ciserver pull
docker-compose --context ciserver up