Build infrastructure combines source control, image distribution, and automation so teams can build and test applications inside their own network or maintain a backup during service outages. section 11.2
A containerized setup uses three services:
- Gogs stores source code and publishes a Git web interface on port 3000; creating users requires manual setup. section 11.2
- Jenkins runs automation on port 8080, using plugins or bundled scripts to configure jobs. section 11.2
- The Docker registry distributes images on port 5010 and works without extra setup inside its container. section 11.2
# add registry domain to local hosts file on Mac or Linux: sudo ./scripts/add-to-hosts.sh registry.local 127.0.0.1 # OR using PowerShell (run as admin) ./scripts/add-to-hosts.ps1 registry.local 127.0.0.1 # switch to infrastructure folder: cd ch11/exercises/infrastructure # start the app with Linux containers: docker compose -f docker-compose.yml -f docker-compose-linux.yml up -d # OR start with Windows Server containers: docker compose -f docker-compose.yml -f docker-compose-windows.yml up -d # check containers: docker container ls
Set the local registry hostname, enter the infrastructure directory, start the Linux or Windows Compose configuration, and inspect the running containers. section 11.2
