This repository contains a Dockerfile that can be used to build a Docker
image based on gentoo/stage3:latest with common dependencies
of many Java packages pre-installed.
dev-java/openjdk-bin:11(Selected as the system VM)dev-java/openjdk-bin:8dev-java/junit:4dev-java/testngdev-util/pkgdiffdef-util/japi-compliance-checker
The following tools are supported for building this image from the
Dockerfile:
Once at least one of the above tools has been installed, run the corresponding build script in this repository, with the working directory being the root of this repository's working tree, to begin the build process:
- Buildah:
./buildah-build.sh - Podman:
./podman-build.sh
By modifying the Dockerfile, this image can be built in different ways. For
more information, please refer to the Dockerfile reference in
Docker Documentation.
Because neither docker build nor docker buildx build supports the
--cap-add and
--security-opt options. Without these options,
the temporary container created to build the image cannot be granted the
privileges required by certain packages; as a result, these packages would fail
to install in the container.
On the other hand, Buildah and podman build support these options, which is
why they can be used to build this image.
This image is being built with the latest gentoo/stage3 image and published
to GitHub's Container registry automatically every day. The
process is handled by a GitHub Actions workflow.