This repository hosts the resources to build a Docker Image used for… building Docker Images.
Its target is to allow building OCI compliant images in rootless or daemonless contexts as Kubernetes non privileged pods.
-
Command prompt with bash (or zsh/ksh)
-
GNU Make 3.81+
-
[Build,Deploy,Deploy] (Jessie Frazelle’s)
genuinetools/img
CLI in v0.5.11 -
[Test] Google Container Test CLI in v1.9.1
If you cannot fulfil these requirements, please check the Using Docker section instead.
If you prefer to run all the below commands in a Docker image instead of the Bare Requirements (or if you cannot meet the bare-requirements):
docker run --rm --tty --interactive --volume=$(pwd):/app --workdir=/app --entrypoint=bash \
--security-opt seccomp=unconfined --security-opt apparmor=unconfined \
jenkinsciinfra/builder:latest
> make help
With the Requirements installed for the Build phase, you can build the image with the command make build
.
With the Requirements installed for the Test phase, you can build the image with the command make test
.
With the Requirements installed for the Deploy phase, you can build the image:
-
First by logging in to the Docker registry where you want to deploy the image to, with the command
img login <Registry’s URL if it is not the DockerHub>
-
Running the command
make deploy