Jenkins setup repo for home use. This repo assumes the following:
- The host computer runs windows
- The guest computer that creates the jenkins image runs a debian linux version
- The host runs the private docker registry image
registry:2
at port5000
- That the registry is set as an
insecure-registry
by the docker instances of the host and the client
Current settings can be found in the .env file. Bash, Docker and Powershell scripts all read these values. The PowerShell .env parser was taken from here
./create_push_image.sh
is intended to do the following:
- Pull the jenkins image
- build the image as recommended by the Jenkins Docker guide
- Tags it with the repository address
- Pushes the custom image
./init.ps1
is intended initialize the jenkins network, start the containers
and finally return the initial admin password for jenkins. Jenkins instance
shall be available at: <REGISTRY_IP>:<JENKINS_PORT>
.
Setup of Jenkins after this stage is beyond the scope of this repo.
After the initalization, Jenkins containers can be started by simply using
docker-compose up
.