HUB
Sign inSign up

mbopm/docker-dind-openjdk-alpine

By mbopm

•Updated 9 days ago
Archived

moved to mbopm/docker-dind

Image
Developer tools
0

10K+

mbopm/docker-dind-openjdk-alpine repository overview

⁠docker-dind-openjdk-alpine

Alpine latest with OpenJDK JDK 21 with docker in docker available. This way you can run testcontainers based tests inside the container without having to worry about how to get a working docker environment. This image is meant as build container for applications and not to run server applications inside.

To run a gradle build you can easily do something like this:

FROM mbopm/docker-dind-openjdk-alpine-jdk21:latest
COPY ./ ./
CMD dockerd-entrypoint.sh & ./gradlew build --no-daemon --stacktrace --info

The dockerd-entrypoint.sh & in front is important to have docker properly started for the test. In all tests docker was much faster than every gradle step that would rely on it. So that possible race condition was no problem in all runs.


Tag summary
Recent tags
Content type
Image
Digest
sha256:5743660a4…
Size
280.9 MB
Last updated
17 days ago
docker pull mbopm/docker-dind-openjdk-alpine:latest