Skip to content

About

No description or website provided.

Topics

Resources

Stars

2 stars

Watchers

4 watching

Forks

Latest commit

 

History

74 Commits

Folders and files

Repository files navigation

Yupiik Docker Hub images

Java

java?color=00b2ef&label=Last%20Release&logoColor=00b2ef&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACAAAAAqCAYAAADS4VmSAAAAAXNSR0IArs4c6QAABGdJREFUWEedmF2I3FQUx%2F9nZrYzq7ttMtuK32B90WpFEbtUW2T7UqqbjIgM%2BKQP%2BmAfBUEFP0H7oo%2BiIgg%2BqRUqk%2BwWRXTFj9UWoVIp7UN1H9QitTvJMtpOd3dydDI7k9zk3syd5C25557zO1%2F3I4S8z3xzJzp0MpweBDfioanf86iiPJPCOY7HwlzbzKUr1yQ4XgAgOZdhm4VRHcoLIHrft5ojCqMDiKF%2FGlQkcOfNgecjQowGcKS5ByX6NmUsDrXOe%2FFw9TvdVIwGEDdUNiawn%2F4NDR0%2BP4HKWCtPFPQBXP8EmO9UGonDEf0My7hLJwr6AHEDqjzryCSo9ACEtuM%2FYVevl3rneH8D2LoxptWWugBR2w2r8hGjMBxAaDt6BrbxRmZuHf81gJ%2FXLchsgEbzQRDN6SobyMWhmWdRq86roLMB4ooKVMWs4Q0Uuf4jYP4kfKfONKytxwdjR1vbsL5%2BXgdcDeD6J8G8U6vtukLJ2hDb8hdYxh2yKKgBsorJ9QJwYjMiMKzEZqRRkHKAhrcKwliPmC7ANrYN6A%2Bf2oTKtZelOW1%2FUUK93oml6RKYK%2BE7Yw01c1NyXhpggSto%2BZe0Qh%2FgMQBFFPC%2BlvykMY4Zasch0gBC4RUfx%2BzmDwYT5lem0Ql%2BTBkTWjW4HfbUqVhHvALgRRWgCDDXmkGw%2FpWWN%2BXLE9h%2FdW8z%2BtQzUETUIVkFWSjtw%2BzkQt%2BGCBD3pG2UUKcon43mCRBpbkZYhGXeF9UNj6PiX5Q5FgE4zUWAdmt5n2czEtLEP8Cu3huWeCxX6vVenHwadnWHtAsc7zcAN43iRA9gmAGNftZ05A8A18UBCQtcQstf06JmfhS16kdS7%2FsfHf9ZgA9p6Zs0xkjwngsHUNvyWeTNch0ofKxUpiIRNiO6BzXjp4Fow38OxK9HXZC8YDAfRK36dio1JaOCB0i%2BAiZBjvx1FcbKn8MyxWOZ670MxkviQuR4vwLYnnKG2QeRsfG9A9ssZYY%2Ba9BpXgRoPCVCWOwVoXvhFnDxtFLHsFOQTirS1rfDNpbSS3HD64Agv2JR8VZYm88MKcJ9AH8plWEEqJlFMQVq%2Bq8B3K8Y%2Fga2KY45XrfQ7s6Ea%2F9zBeo3RBud5IIJzPmmePJZ2QUOjuXKf6GzA0FpL8DvqjpJTIG7%2FCq48EIoTPQULOMdwXCyY%2BRU6eO4cDrCDCyzG92eGaUBWeE5%2FlsAH8yMBvMh1KrRqbgvrFhNIwDXOwfGNdJQOZ4PYMtIaWAso2b2LynJHxrHYZvTsQgwwfG7Px16T9f7bi0E3FQbDZ4ECu%2BF490lmuhDpWz%2FIiuJgmQzoiWAox1N1LoK2yyHn5zlJ2IA0dnf9dfArFq0ugeYK%2BOOSgAkfhBcWKYt1osCoC%2Fk%2BsfAvCszbbZJQwCC3bCnojNgXJsqAkmLzsoBIDgqBRkAuP5ZMN88EGqfK6N%2B22omvS5AX8nCUgUtI74IfQ%2Fb3DP8cqqiGBVAoSc%2FQFiIG%2F8K825W%2F%2Bv4D2sg4qMfRFPFAAAAAElFTkSuQmCC

A docker image for Java >=17 based on Zulu JDK using Alpine base image:

Java with Docker CLI

ossyupiik/java-docker provides a Java 25 JRE and Docker CLI 29.9.2 at /usr/bin/docker for applications controlling an external Docker Engine. The shared java-docker/Dockerfile selects one of two variants with ARG VARIANT=alpine: the default alpine uses the pinned official Eclipse Temurin Alpine runtime, while zulu uses pinned Debian bookworm-slim and a verified official Azul Zulu glibc JRE archive. Both variants copy only the pinned static Docker client from the official Docker CLI image and support linux/amd64 and linux/arm64 under each published image reference. There is one build directory and one workflow for both variants, not a separate Zulu directory or workflow.

The image is runtime-only: it contains no Maven, gh, command-line or in-process Java compiler, Docker plugins or Docker daemon. Both variants default to UID/GID 10001:10001, HOME=/tmp, no entrypoint and java --version as their command. They support a read-only root filesystem with writable /tmp, without root initialization or baked-in credentials. The upstream system and Java CA stores are retained; custom trust must be provisioned explicitly rather than relying on Temurin’s root-oriented certificate entrypoint. The Zulu variant preserves the upstream JRE modules, legal notices and CDS archives, installs only the required Debian runtime libraries and system CA store without recommended packages, and keeps download tooling in a separate build stage. Jib can use either variant as its base and generate the application’s Java entrypoint without adding a Docker binary during the Maven build.

Warning
Access to a Docker Engine socket grants host-administration capabilities even when the client runs as non-root. Provision socket or remote-engine access explicitly on a dedicated trusted host; these images do not start a daemon or grant socket permissions.

The Temurin, Debian and Docker multi-platform image inputs are pinned by digest in java-docker/Dockerfile. Both architecture-specific Zulu archives are verified against pinned official SHA-256 values, and Debian package resolution uses a fixed signed snapshot. The fixed snapshot preserves package reproducibility; later security fixes require a reviewed snapshot update, rebuild and new release. Updating either variant requires reviewing its affected pins, release version and smoke-test version checks, then rerunning native AMD64 and ARM64 tests.

Build and test locally with a host JDK 25 and a local Linux Docker daemon. The default Alpine build does not require a variant argument:

docker buildx build --load --platform linux/amd64 -t java-docker:alpine-local java-docker
java java-docker/test/SmokeTest.java java-docker:alpine-local amd64 alpine

Select the Zulu variant explicitly:

docker buildx build --build-arg VARIANT=zulu --load --platform linux/amd64 -t java-docker:zulu-local java-docker
java java-docker/test/SmokeTest.java java-docker:zulu-local amd64 zulu

On a native ARM64 host, select linux/arm64 and pass arm64 to the smoke runner. The shared runner accepts java java-docker/test/SmokeTest.java IMAGE amd64 alpine|zulu, with alpine as the default when the variant argument is omitted. The old java-docker/test/smoke.sh remains a thin alias for the Java runner. Set SMOKE_HTTPS_URL=https://example.com when invoking the runner to enable the optional Java TLS trust probe, which requires network access.

Both variants are checked for metadata, Java vendor/version, Java and static Docker execution, CA trust, absence of compilers and daemon executables, and the non-root/read-only contract with all capabilities dropped and no-new-privileges enabled. Smoke tests never mount a Docker socket. SecureDirectoryStream tests are mandatory only for Zulu, on both tmpfs and a writable bind mount, including descriptor-relative reads after directory replacement and rejection of file and directory symlinks. An unsupported filesystem or runtime fails these Zulu checks rather than silently falling back to ordinary directory streams. The Alpine variant is not compatible with a strict broker requiring SecureDirectoryStream. Neither glibc nor the Java vendor alone guarantees secure directory handles on every filesystem provider; test the deployment’s actual filesystem too. These checks do not replace testing against the deployment’s Docker Engine or a supply-chain/security review.

The single java-docker.yml workflow tests both variants on native AMD64 and ARM64 Ubuntu 26.04 runners, forming a two-variant by two-architecture matrix for pull requests and changes on main. Releases use the unified tag prefix java-docker/<full-image-version>. The workflow derives the image version directly from the Git tag, selecting alpine for JAVA-alpineMAJOR.MINOR-dockerDOCKER_VERSION or zulu for JAVA-zulu-debianMAJOR-dockerDOCKER_VERSION. There is no release-version file or allowlist; malformed tag names are rejected. The full Zulu Java version includes Azul’s PSU suffix so the tag identifies the actual runtime. For example, java-docker/25.0.5-alpine3.24-docker29.9.2 maps to ossyupiik/java-docker:25.0.5-alpine3.24-docker29.9.2, and java-docker/25.0.5.0.3-zulu-debian12-docker29.9.2 maps to ossyupiik/java-docker:25.0.5.0.3-zulu-debian12-docker29.9.2. The Zulu variant is published only after merge through its release-tag workflow. Publishing requires a release commit merged into main, successful native smoke tests and the existing Docker Hub secrets and repository write permissions. A pull request, push to main or manual workflow invocation never publishes an image. Pin the published multi-platform index digest in production to preserve platform selection and reproducibility. The other Java images and their release workflow are unchanged.

H2

h2?color=00b2ef&label=Last%20Release&logoColor=00b2ef&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAACAAAAAqCAYAAADS4VmSAAAAAXNSR0IArs4c6QAABGdJREFUWEedmF2I3FQUx%2F9nZrYzq7ttMtuK32B90WpFEbtUW2T7UqqbjIgM%2BKQP%2BmAfBUEFP0H7oo%2BiIgg%2BqRUqk%2BwWRXTFj9UWoVIp7UN1H9QitTvJM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2QUOjuXKf6GzA0FpL8DvqjpJTIG7%2FCq48EIoTPQULOMdwXCyY%2BRU6eO4cDrCDCyzG92eGaUBWeE5%2FlsAH8yMBvMh1KrRqbgvrFhNIwDXOwfGNdJQOZ4PYMtIaWAso2b2LynJHxrHYZvTsQgwwfG7Px16T9f7bi0E3FQbDZ4ECu%2BF490lmuhDpWz%2FIiuJgmQzoiWAox1N1LoK2yyHn5zlJ2IA0dnf9dfArFq0ugeYK%2BOOSgAkfhBcWKYt1osCoC%2Fk%2BsfAvCszbbZJQwCC3bCnojNgXJsqAkmLzsoBIDgqBRkAuP5ZMN88EGqfK6N%2B22omvS5AX8nCUgUtI74IfQ%2Fb3DP8cqqiGBVAoSc%2FQFiIG%2F8K825W%2F%2Bv4D2sg4qMfRFPFAAAAAElFTkSuQmCC

A docker image using Yupiik Java docker (v17 as of today) and bootstraping H2 server. It enables to use it as a remote database quite easily and makes development smoother in several cases - in particular in self-hosted kubernetes environments.

Example usage:

$ docker run yupiik/h2:2.1.214 -tcp -tcpAllowOthers -tcpPort 9092 -tcpPassword secret -baseDir /opt/storage/h2 [-ifNotExists]

Then you can connect to jdbc:h2:tcp://172.17.0.2:2000/<database> from any h2 client.

About

No description or website provided.

Topics

Resources

Stars

2 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages