2024-03-14 19:32:39 -05:00
|
|
|
# Java 21 development container image
|
|
|
|
# Written by Wyatt J. Miller, 2023
|
|
|
|
# This image is opinionated, but you're welcome to customize as much as you like
|
|
|
|
|
|
|
|
# Start with the Fedora 39 custom image
|
|
|
|
FROM scm.wyattjmiller.com/wymiller/base_container:latest
|
|
|
|
|
|
|
|
# Label it right, ya know?
|
|
|
|
ENV NAME=custom_java_21_base_image VERSION=1.0
|
|
|
|
LABEL com.github.containers.toolbox="true" \
|
|
|
|
com.redhat.component="$NAME" \
|
|
|
|
name="$NAME" \
|
|
|
|
version="$VERSION" \
|
|
|
|
usage="Java currrent custom developer images" \
|
|
|
|
summary="Wyatt's custom Java 21 image" \
|
|
|
|
maintainer="Wyatt J. Miller <wyatt@wyattjmiller.com>" \
|
2024-03-14 19:51:24 -05:00
|
|
|
vendor="Miller Web Solutions"
|
2024-03-14 19:32:39 -05:00
|
|
|
|
2024-03-22 11:50:59 -05:00
|
|
|
# Set environment variables
|
|
|
|
ENV GRADLE_VERSION=8.6
|
|
|
|
ENV GRADLE_HOME=/opt/gradle
|
|
|
|
ENV PATH="${PATH}:${GRADLE_HOME}/bin"
|
|
|
|
|
2024-04-04 21:56:55 -05:00
|
|
|
# Install the latest Java and the latest Java development files
|
2024-03-14 19:32:39 -05:00
|
|
|
RUN dnf install java-21-openjdk java-21-openjdk-devel -y -q && dnf clean all
|
2024-03-22 11:50:59 -05:00
|
|
|
|
|
|
|
# Download and install Gradle
|
|
|
|
RUN wget -q "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" -O gradle.zip && \
|
|
|
|
unzip -q gradle.zip -d /opt && \
|
|
|
|
mv "/opt/gradle-${GRADLE_VERSION}" "${GRADLE_HOME}" && \
|
|
|
|
rm gradle.zip
|