Leo3418 / gentoo-java-image

Gentoo stage3 Docker image with pre-installed Java packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gentoo stage3 Docker Image for Testing Java Packages

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.

Installed Packages

  • dev-java/openjdk-bin:11 (Selected as the system VM)
  • dev-java/openjdk-bin:8
  • dev-java/junit:4
  • dev-java/testng
  • dev-util/pkgdiff
  • def-util/japi-compliance-checker

Building This Image

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.

Why Is Docker Not Supported?

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.

Pre-built 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.

About

Gentoo stage3 Docker image with pre-installed Java packages

License:Creative Commons Zero v1.0 Universal


Languages

Language:Dockerfile 59.5%Language:Shell 40.5%