OCI images builder
Go to file
Alexander Stepchenko d095e0832e fix: move LABEL commands to the end of Dockerfile.template
Since all the commands except ENTRYPOINT in cert-manager and kubernetes
Dockerfiles are the same, we can utilize the cached layers when building
images in batch, but LABEL commands prevented it from happening, because
labels are different for each image. Thus the cache is invalidated.

By moving LABELs after the common commands we allow cached layers
to be reused for every image, thus speeding up the build process.
2024-10-23 12:42:59 +03:00
.gitea/workflows fix command run-test 2024-09-27 16:48:27 +03:00
org fix: move LABEL commands to the end of Dockerfile.template 2024-10-23 12:42:59 +03:00
.gitignore Initial commit 2022-06-13 00:21:48 +03:00
build.py add branch p11 2024-06-10 12:45:32 +03:00
distroless-example.toml Add distoless example 2023-02-16 03:27:07 +03:00
images-info.toml add exlusion for building images 2024-10-16 13:58:16 +03:00
LICENSE Update LICENSE 2023-02-16 03:27:07 +03:00
README.md docs: update README.md 2024-06-10 16:46:34 +03:00
tags.toml feat: update k8s/trivy-node-collector 2024-09-26 13:09:46 +03:00
tasks.toml chore: update tasks.toml 2023-07-18 14:32:29 +03:00

image-forge

alt images

To build alt images, run:

./build.py -o alt

k8s images

To build k8s images for branch p10 and push to repository test_k8s, run:

./build.py -o k8s -b p10 --overwrite-organization test_k8s --tasks tasks.json --tags tags.json

distroless-images

create

To create distroless image copy one of existing org/alt/distroless-* images. Or create directory and copy distroless-example.toml to it, rename file to distroless.toml and edit.

build

For example if created image alt/distroless-false and you want to push to the organization <ORGANIZATION>, run:

./build.py -i alt/distroless-false --overwrite-organization <ORGANIZATION>

If you push to the users repository, then organiztion is your username.

Dependencies

On x86_64 machine using p10 branch you need:

  • python3-module-tomli
  • python3-module-jinja2
  • qemu-user-static-binfmt-aarch64 to build for arm64 architecture
  • qemu-user-static-binfmt-arm to build for arm architecture
  • qemu-user-static-binfmt-ppc to build for ppc64le architecture