-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from keeganwitt/noble
Add Noble images (closes #312)
- Loading branch information
Showing
18 changed files
with
431 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
FROM ubuntu:noble | ||
|
||
CMD ["gradle"] | ||
|
||
ENV GRADLE_HOME=/opt/gradle | ||
|
||
RUN set -o errexit -o nounset \ | ||
&& echo "Renaming ubuntu user and group to gradle" \ | ||
&& groupmod --new-name gradle ubuntu \ | ||
&& mkdir /home/gradle \ | ||
&& usermod --login gradle --home /home/gradle --groups gradle ubuntu \ | ||
&& chown gradle /home/gradle \ | ||
&& mkdir /home/gradle/.gradle \ | ||
&& chown --recursive gradle:gradle /home/gradle \ | ||
&& chmod --recursive o+rwx /home/gradle \ | ||
\ | ||
&& echo "Symlinking root Gradle cache to gradle Gradle cache" \ | ||
&& ln --symbolic /home/gradle/.gradle /root/.gradle | ||
|
||
VOLUME /home/gradle/.gradle | ||
|
||
WORKDIR /home/gradle | ||
|
||
RUN set -o errexit -o nounset \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install --yes --no-install-recommends \ | ||
binutils \ | ||
ca-certificates \ | ||
curl \ | ||
fontconfig \ | ||
locales \ | ||
p11-kit \ | ||
tzdata \ | ||
unzip \ | ||
wget \ | ||
\ | ||
gcc \ | ||
libc-dev \ | ||
libz-dev \ | ||
zlib1g-dev \ | ||
\ | ||
bzr \ | ||
git \ | ||
git-lfs \ | ||
mercurial \ | ||
openssh-client \ | ||
subversion \ | ||
&& rm --recursive --force /var/lib/apt/lists/* \ | ||
\ | ||
&& echo "Testing VCSes" \ | ||
&& which bzr \ | ||
&& which git \ | ||
&& which git-lfs \ | ||
&& which hg \ | ||
&& which svn | ||
|
||
ENV JAVA_HOME=/opt/java/graalvm | ||
ENV JAVA_VERSION=17.0.9 | ||
RUN set -o errexit -o nounset \ | ||
&& mkdir /opt/java \ | ||
\ | ||
&& echo "Downloading GraalVM" \ | ||
&& GRAALVM_AMD64_DOWNLOAD_SHA256=e47ba7229cef02393e19d5b8f46f7f1cab4829dd17bfe84d5431fc8ff0e22a96 \ | ||
&& GRAALVM_AARCH64_DOWNLOAD_SHA256=c3281b21f5220c2f76cf6fa0d646bc42e2d729af2c022bb06e557a613ba16102 \ | ||
&& ARCHITECTURE=$(dpkg --print-architecture) \ | ||
&& if [ "${ARCHITECTURE}" = "amd64" ]; then GRAALVM_ARCHITECTURE=linux-x64; fi \ | ||
&& if [ "${ARCHITECTURE}" = "arm64" ]; then GRAALVM_ARCHITECTURE=linux-aarch64; fi \ | ||
&& GRAALVM_PKG=https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${JAVA_VERSION}/graalvm-community-jdk-${JAVA_VERSION}_${GRAALVM_ARCHITECTURE}_bin.tar.gz \ | ||
&& wget --no-verbose --output-document=graalvm.tar.gz "${GRAALVM_PKG}" \ | ||
\ | ||
&& echo "Checking GraalVM download hash" \ | ||
&& if [ "${ARCHITECTURE}" = "amd64" ]; then GRAALVM_DOWNLOAD_SHA256="${GRAALVM_AMD64_DOWNLOAD_SHA256}"; fi \ | ||
&& if [ "${ARCHITECTURE}" = "arm64" ]; then GRAALVM_DOWNLOAD_SHA256="${GRAALVM_AARCH64_DOWNLOAD_SHA256}"; fi \ | ||
&& echo "${GRAALVM_DOWNLOAD_SHA256} *graalvm.tar.gz" | sha256sum --check - \ | ||
\ | ||
&& echo "Installing GraalVM" \ | ||
&& tar --extract --gunzip --file graalvm.tar.gz \ | ||
&& rm graalvm.tar.gz \ | ||
&& mv graalvm-* "${JAVA_HOME}" \ | ||
&& for bin in "$JAVA_HOME/bin/"*; do \ | ||
base="$(basename "$bin")"; \ | ||
[ ! -e "/usr/bin/$base" ]; \ | ||
update-alternatives --install "/usr/bin/${base}" "${base}" "${bin}" 1; \ | ||
done \ | ||
\ | ||
&& echo "Testing GraalVM installation" \ | ||
&& java --version \ | ||
&& javac --version \ | ||
&& gu --version \ | ||
&& native-image --version | ||
|
||
ENV GRADLE_VERSION=8.12.1 | ||
ARG GRADLE_DOWNLOAD_SHA256=8d97a97984f6cbd2b85fe4c60a743440a347544bf18818048e611f5288d46c94 | ||
RUN set -o errexit -o nounset \ | ||
&& echo "Downloading Gradle" \ | ||
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \ | ||
\ | ||
&& echo "Checking Gradle download hash" \ | ||
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \ | ||
\ | ||
&& echo "Installing Gradle" \ | ||
&& unzip gradle.zip \ | ||
&& rm gradle.zip \ | ||
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \ | ||
&& ln --symbolic "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle | ||
|
||
USER gradle | ||
|
||
RUN set -o errexit -o nounset \ | ||
&& echo "Testing Gradle installation" \ | ||
&& gradle --version | ||
|
||
USER root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
FROM eclipse-temurin:17-jdk-noble | ||
|
||
CMD ["gradle"] | ||
|
||
ENV GRADLE_HOME=/opt/gradle | ||
|
||
RUN set -o errexit -o nounset \ | ||
&& echo "Renaming ubuntu user and group to gradle" \ | ||
&& groupmod --new-name gradle ubuntu \ | ||
&& mkdir /home/gradle \ | ||
&& usermod --login gradle --home /home/gradle --groups gradle ubuntu \ | ||
&& chown gradle /home/gradle \ | ||
&& mkdir /home/gradle/.gradle \ | ||
&& chown --recursive gradle:gradle /home/gradle \ | ||
&& chmod --recursive o+rwx /home/gradle \ | ||
\ | ||
&& echo "Symlinking root Gradle cache to gradle Gradle cache" \ | ||
&& ln --symbolic /home/gradle/.gradle /root/.gradle | ||
|
||
VOLUME /home/gradle/.gradle | ||
|
||
WORKDIR /home/gradle | ||
|
||
RUN set -o errexit -o nounset \ | ||
&& apt-get update \ | ||
&& apt-get install --yes --no-install-recommends \ | ||
unzip \ | ||
wget \ | ||
\ | ||
bzr \ | ||
git \ | ||
git-lfs \ | ||
mercurial \ | ||
openssh-client \ | ||
subversion \ | ||
&& rm --recursive --force /var/lib/apt/lists/* \ | ||
\ | ||
&& echo "Testing VCSes" \ | ||
&& which bzr \ | ||
&& which git \ | ||
&& which git-lfs \ | ||
&& which hg \ | ||
&& which svn | ||
|
||
ENV GRADLE_VERSION=8.12.1 | ||
ARG GRADLE_DOWNLOAD_SHA256=8d97a97984f6cbd2b85fe4c60a743440a347544bf18818048e611f5288d46c94 | ||
RUN set -o errexit -o nounset \ | ||
&& echo "Downloading Gradle" \ | ||
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \ | ||
\ | ||
&& echo "Checking Gradle download hash" \ | ||
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum --check - \ | ||
\ | ||
&& echo "Installing Gradle" \ | ||
&& unzip gradle.zip \ | ||
&& rm gradle.zip \ | ||
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \ | ||
&& ln --symbolic "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle | ||
|
||
USER gradle | ||
|
||
RUN set -o errexit -o nounset \ | ||
&& echo "Testing Gradle installation" \ | ||
&& gradle --version | ||
|
||
USER root |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.