Spin up a simple Jenkins environment using Docker compose. See controller
for the
Jenkins controller and agents
for Jenkins agents. Agents automatically register
themselves with the controller.
Build controller and agent container images:
docker image build --file ./controller/Dockerfile --tag jenkins-controller:latest -- .
docker image build --file ./agents/manylinux_2_28_aarch64/Dockerfile --tag jenkins-agent-manylinux_2_28_aarch64:latest -- .
Bring up the Jenkins environment.
docker-compose up
Play around with Jenkins at http://localhost:4080. See the .env
file for
login credentials.
Bring down the Jenkins environment:
docker-compose down
Optionally, remove the jenkins-controller
volume:
docker volume rm -- jenkins-controller