-
Notifications
You must be signed in to change notification settings - Fork 37
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 #93 from brahimhaddou/master
Update GraalVM dockerfiles
- Loading branch information
Showing
53 changed files
with
130 additions
and
1,476 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ LABEL \ | |
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG GRAALVM_VERSION=24.0.2 | ||
ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz | ||
|
||
WORKDIR /app | ||
|
@@ -26,7 +26,7 @@ ENV LANG=en_US.UTF-8 \ | |
|
||
RUN set -eux \ | ||
&& apt-get update -y \ | ||
&& apt-get install -y locales ca-certificates curl tar gzip libz-dev libssl-dev gcc make unzip patch \ | ||
&& apt-get install -y locales ca-certificates curl tar gzip libz-dev libssl-dev gcc g++ make unzip patch \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
|
@@ -37,7 +37,7 @@ RUN set -eux \ | |
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \ | ||
&& locale-gen | ||
|
||
RUN graalpy -m venv graalenv && \ | ||
echo "source graalenv/bin/activate" >> ~/.bashrc | ||
RUN graalpy -m venv graalenv \ | ||
&& echo "source graalenv/bin/activate" >> ~/.bashrc | ||
|
||
CMD ["graalpy"] |
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 |
---|---|---|
|
@@ -13,27 +13,28 @@ LABEL \ | |
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG GRAALVM_VERSION=24.0.2 | ||
ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz | ||
ARG TEMP_REGION="" | ||
|
||
WORKDIR /app | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
PATH=/opt/graalpy-$GRAALVM_VERSION/bin:$PATH | ||
PATH=/opt/graalpy-$GRAALVM_VERSION/bin:/opt/rh/devtoolset-10/root/usr/bin:$PATH | ||
|
||
RUN set -eux \ | ||
&& echo "$TEMP_REGION" > /etc/yum/vars/ociregion \ | ||
&& yum update -y oraclelinux-release-el7 \ | ||
&& yum install -y curl tar unzip gzip zlib openssl-devel gcc make patch glibc-langpack-en \ | ||
&& yum install -y oracle-softwarecollection-release-el7 \ | ||
&& yum install -y curl tar unzip gzip zlib openssl-devel gcc devtoolset-10-gcc-c++ make patch glibc-langpack-en \ | ||
&& echo "" > /etc/yum/vars/ociregion \ | ||
&& rm -rf /var/cache/yum | ||
|
||
RUN set -eux \ | ||
&& mkdir -p /opt/graalpy-$GRAALVM_VERSION \ | ||
&& curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1 | ||
|
||
RUN graalpy -m venv graalenv && \ | ||
echo "source graalenv/bin/activate" >> ~/.bashrc | ||
RUN graalpy -m venv graalenv \ | ||
&& echo "source graalenv/bin/activate" >> ~/.bashrc | ||
|
||
ENTRYPOINT ["graalpy"] |
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 |
---|---|---|
|
@@ -14,27 +14,28 @@ LABEL \ | |
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG GRAALVM_VERSION=24.0.2 | ||
ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz | ||
ARG TEMP_REGION="" | ||
|
||
WORKDIR /app | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
PATH=/opt/graalpy-$GRAALVM_VERSION/bin:$PATH | ||
PATH=/opt/graalpy-$GRAALVM_VERSION/bin:/opt/rh/devtoolset-10/root/usr/bin:$PATH | ||
|
||
RUN set -eux \ | ||
&& echo "$TEMP_REGION" > /etc/yum/vars/ociregion \ | ||
&& yum update -y oraclelinux-release-el7 \ | ||
&& yum install -y curl tar unzip gzip zlib openssl-devel gcc make patch glibc-langpack-en \ | ||
&& yum install -y oracle-softwarecollection-release-el7 \ | ||
&& yum install -y curl tar unzip gzip zlib openssl-devel gcc devtoolset-10-gcc-c++ make patch glibc-langpack-en \ | ||
&& echo "" > /etc/yum/vars/ociregion \ | ||
&& rm -rf /var/cache/yum | ||
|
||
RUN set -eux \ | ||
&& mkdir -p /opt/graalpy-$GRAALVM_VERSION \ | ||
&& curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1 | ||
|
||
RUN graalpy -m venv graalenv && \ | ||
echo "source graalenv/bin/activate" >> ~/.bashrc | ||
RUN graalpy -m venv graalenv \ | ||
&& echo "source graalenv/bin/activate" >> ~/.bashrc | ||
|
||
CMD [ "graalpy"] |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ LABEL \ | |
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG GRAALVM_VERSION=24.0.2 | ||
ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz | ||
ARG TEMP_REGION="" | ||
|
||
|
@@ -26,15 +26,15 @@ ENV LANG=en_US.UTF-8 \ | |
RUN set -eux \ | ||
&& echo "$TEMP_REGION" > /etc/dnf/vars/ociregion \ | ||
&& yum update -y oraclelinux-release-el8 \ | ||
&& yum install -y curl tar unzip gzip zlib openssl-devel gcc make patch glibc-langpack-en \ | ||
&& yum install -y curl tar unzip gzip zlib openssl-devel gcc gcc-c++ make patch glibc-langpack-en \ | ||
&& echo "" > /etc/dnf/vars/ociregion \ | ||
&& rm -rf /var/cache/yum | ||
|
||
RUN set -eux \ | ||
&& mkdir -p /opt/graalpy-$GRAALVM_VERSION \ | ||
&& curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1 | ||
|
||
RUN graalpy -m venv graalenv && \ | ||
echo "source graalenv/bin/activate" >> ~/.bashrc | ||
RUN graalpy -m venv graalenv \ | ||
&& echo "source graalenv/bin/activate" >> ~/.bashrc | ||
|
||
CMD [ "graalpy"] |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ LABEL \ | |
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG GRAALVM_VERSION=24.0.2 | ||
ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz | ||
ARG TEMP_REGION="" | ||
|
||
|
@@ -26,15 +26,15 @@ ENV LANG=en_US.UTF-8 \ | |
RUN set -eux \ | ||
&& echo "$TEMP_REGION" > /etc/dnf/vars/ociregion \ | ||
&& microdnf update -y oraclelinux-release-el8 \ | ||
&& microdnf install -y curl tar unzip gzip zlib openssl-devel gcc make patch glibc-langpack-en \ | ||
&& microdnf install -y curl tar unzip gzip zlib openssl-devel gcc gcc-c++ make patch glibc-langpack-en \ | ||
&& echo "" > /etc/dnf/vars/ociregion \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
RUN set -eux \ | ||
&& mkdir -p /opt/graalpy-$GRAALVM_VERSION \ | ||
&& curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1 | ||
|
||
RUN graalpy -m venv graalenv && \ | ||
echo "source graalenv/bin/activate" >> ~/.bashrc | ||
RUN graalpy -m venv graalenv \ | ||
&& echo "source graalenv/bin/activate" >> ~/.bashrc | ||
|
||
CMD [ "graalpy"] |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ LABEL \ | |
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG GRAALVM_VERSION=24.0.2 | ||
ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz | ||
ARG TEMP_REGION="" | ||
|
||
|
@@ -26,7 +26,7 @@ ENV LANG=en_US.UTF-8 \ | |
RUN set -eux \ | ||
&& echo "$TEMP_REGION" > /etc/dnf/vars/ociregion \ | ||
&& dnf install oraclelinux-release-el9 \ | ||
&& dnf install -y curl tar unzip gzip zlib openssl-devel gcc make patch glibc-langpack-en libxcrypt-compat \ | ||
&& dnf install -y curl tar unzip gzip zlib openssl-devel gcc gcc-c++ make patch glibc-langpack-en libxcrypt-compat \ | ||
&& echo "" > /etc/dnf/vars/ociregion \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
|
@@ -35,7 +35,7 @@ RUN set -eux \ | |
&& curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1 | ||
|
||
|
||
RUN graalpy -m venv graalenv && \ | ||
echo "source graalenv/bin/activate" >> ~/.bashrc | ||
RUN graalpy -m venv graalenv \ | ||
&& echo "source graalenv/bin/activate" >> ~/.bashrc | ||
|
||
CMD ["graalpy"] |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ LABEL \ | |
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG GRAALVM_VERSION=24.0.2 | ||
ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz | ||
ARG TEMP_REGION="" | ||
|
||
|
@@ -25,15 +25,15 @@ ENV LANG=en_US.UTF-8 \ | |
RUN set -eux \ | ||
&& echo "$TEMP_REGION" > /etc/dnf/vars/ociregion \ | ||
&& microdnf install oraclelinux-release-el9 \ | ||
&& microdnf install -y curl tar unzip gzip zlib openssl-devel gcc make patch glibc-langpack-en libxcrypt-compat \ | ||
&& microdnf install -y curl tar unzip gzip zlib openssl-devel gcc gcc-c++ make patch glibc-langpack-en libxcrypt-compat \ | ||
&& echo "" > /etc/dnf/vars/ociregion \ | ||
&& rm -rf /var/cache/dnf | ||
|
||
RUN set -eux \ | ||
&& mkdir -p /opt/graalpy-$GRAALVM_VERSION \ | ||
&& curl --fail --silent --location --retry 3 $GRAALVM_PKG | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1 | ||
|
||
RUN graalpy -m venv graalenv && \ | ||
echo "source graalenv/bin/activate" >> ~/.bashrc | ||
RUN graalpy -m venv graalenv \ | ||
&& echo "source graalenv/bin/activate" >> ~/.bashrc | ||
|
||
CMD [ "graalpy"] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -15,7 +15,9 @@ LABEL \ | |
org.opencontainers.image.title='GraalVM Community Edition' \ | ||
org.opencontainers.image.authors='GraalVM Sustaining Team <[email protected]>' \ | ||
org.opencontainers.image.description='GraalVM is a universal virtual machine for running applications written in JavaScript, Python, Ruby, R, JVM-based languages like Java, Scala, Clojure, Kotlin, and LLVM-based languages such as C and C++.' | ||
|
||
|
||
ARG TARGETPLATFORM | ||
|
||
RUN yum update -y oraclelinux-release-el7 \ | ||
&& yum install -y oraclelinux-developer-release-el7 oracle-softwarecollection-release-el7 \ | ||
&& yum-config-manager --enable ol7_developer \ | ||
|
@@ -27,21 +29,20 @@ RUN yum update -y oraclelinux-release-el7 \ | |
|
||
RUN fc-cache -f -v | ||
|
||
ARG GRAALVM_VERSION=23.0.0 | ||
ARG JDK_BUILD=17.0.7 | ||
ARG JAVA_VERSION=java17 | ||
ARG GRAALVM_PKG=https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-$JDK_BUILD/graalvm-community-jdk-$JDK_BUILD_GRAALVM_ARCH_bin.tar.gz | ||
ARG TARGETPLATFORM | ||
ARG JDK_MAJOR_VERSION=22 | ||
ARG JDK_VERSION=22.0.2 | ||
ARG JDK_BUILD=+9.1 | ||
ARG GRAALVM_PKG=https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${JDK_VERSION}/graalvm-community-jdk-${JDK_VERSION}_GRAALVM_ARCH_bin.tar.gz | ||
|
||
ENV LANG=en_US.UTF-8 \ | ||
JAVA_HOME=/opt/graalvm-community-$JAVA_VERSION | ||
JAVA_HOME=/opt/graalvm-community-java$JDK_MAJOR_VERSION | ||
|
||
COPY gu-wrapper.sh /usr/local/bin/gu | ||
RUN set -eux \ | ||
&& if [ "$TARGETPLATFORM" == "linux/amd64" ]; then GRAALVM_PKG=${GRAALVM_PKG/GRAALVM_ARCH/linux-x64}; fi \ | ||
&& if [ "$TARGETPLATFORM" == "linux/arm64" ]; then GRAALVM_PKG=${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64}; fi \ | ||
&& curl --fail --silent --location --retry 3 ${GRAALVM_PKG} \ | ||
| gunzip | tar x -C /opt/ \ | ||
| gunzip | tar x -C /opt/ \ | ||
&& mv /opt/graalvm-community-openjdk-$JDK_VERSION$JDK_BUILD $JAVA_HOME \ | ||
# Set alternative links | ||
&& mkdir -p "/usr/java" \ | ||
&& ln -sfT "$JAVA_HOME" /usr/java/default \ | ||
|
@@ -50,7 +51,6 @@ RUN set -eux \ | |
base="$(basename "$bin")"; \ | ||
[ ! -e "/usr/bin/$base" ]; \ | ||
alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; \ | ||
done \ | ||
&& chmod +x /usr/local/bin/gu | ||
done | ||
|
||
CMD java -version |
Oops, something went wrong.