By downloading these files and using following steps, a DevOps env with CI/CD is setup with
GitLab
, GitLab Runner
, and Sonatype Nexus3
.
- Check out all of files
- Modify
.env
and setVOL_BASE_DIR
andDOMAIN_BASE
variables due to your settings chmod +x init.sh && sudo ./init.sh
docker-compose up -d
- Base on
.env
, assert${GITLAB_DOMAIN}
and${NEXUS_DOMAIN}
names are configured in your DNS server- For local test, add entries in your
/etc/hosts
- For local test, add entries in your
- For Gitlab, go to
http://${GITLAB_DOMAIN}
and configure itchmod +x register-runner.sh && ./register-runner.sh TOKEN
to register the Runner in your Gitlab
- For Nexus, go to
http://${NEXUS_DOMAIN}
and configure it
For more information, refer to Docker to the Point - Part 3