- devbox
- Gitlab
- Nexus
- GoCD Server
- GoCD Agent
- prodbox
- Check the code into gitlab from the devbox
- CoCD Triggers on code change
- Uploads artifact into nexus todo:
- Detect new artifact in nexus
- Run GoCD to deploy to the prodbox
You can't put a scale option into the docker-compose.yml
docker-compose up -d && docker-compose scale gocd-agent=3
Run bash as the command using docker-compose
docker-compose run devbox /bin/bash
By default docker-compose will not build changed docker files
docker-compose build
create a simple maven webapp project
mvn archetype:generate -DgroupId=so.jamie \
-DartifactId=javawebapp \
-DarchetypeArtifactId=maven-archetype-webapp \
-DinteractiveMode=false
sources: