liveBook · Manning

Build infrastructure

As explained in Learn Docker in a Month of Lunches, Second Edition

Build infrastructure is the collection of services and systems that store source code, build software, and distribute build artifacts.

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

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains service roles, ports, setup differences, and Docker Engine binding, but leaves some user configuration manual.
Examples
Uses Gogs, Jenkins, and a Docker registry launched together with Docker Compose, plus local host-file and Git push commands.
What it assumes
Assumes Docker Compose and basic Git familiarity while providing commands for hostnames, containers, and platform selection.
What you can do after
Operate/configure a local build platform and push source code or images through its services.
How it connects
Connects Git, Docker registry, Jenkins, Docker Compose, continuous integration, and Docker Engine.

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.