diff --git a/graalpy-community/Dockerfile.ol10 b/graalpy-community/Dockerfile.ol10 index ec2a7b7..e71668a 100644 --- a/graalpy-community/Dockerfile.ol10 +++ b/graalpy-community/Dockerfile.ol10 @@ -15,7 +15,7 @@ LABEL \ org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' ARG GRAALVM_VERSION=25.0.1 -ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz +ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH.tar.gz ARG TEMP_REGION="" WORKDIR /app @@ -32,7 +32,8 @@ RUN set -eux \ 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 + && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \ + && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi RUN graalpy -m venv graalenv \ diff --git a/graalpy-community/Dockerfile.ol10-slim b/graalpy-community/Dockerfile.ol10-slim index 371686c..baa52c7 100644 --- a/graalpy-community/Dockerfile.ol10-slim +++ b/graalpy-community/Dockerfile.ol10-slim @@ -14,7 +14,7 @@ LABEL \ org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' ARG GRAALVM_VERSION=25.0.1 -ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz +ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH.tar.gz ARG TEMP_REGION="" WORKDIR /app @@ -31,7 +31,8 @@ RUN set -eux \ 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 + && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \ + && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi RUN graalpy -m venv graalenv \ && echo "source graalenv/bin/activate" >> ~/.bashrc diff --git a/graalpy-community/Dockerfile.ol8 b/graalpy-community/Dockerfile.ol8 index a182c00..57caf0b 100644 --- a/graalpy-community/Dockerfile.ol8 +++ b/graalpy-community/Dockerfile.ol8 @@ -15,7 +15,7 @@ LABEL \ org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' ARG GRAALVM_VERSION=25.0.1 -ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz +ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH.tar.gz ARG TEMP_REGION="" WORKDIR /app @@ -32,7 +32,8 @@ RUN set -eux \ 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 + && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \ + && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi RUN graalpy -m venv graalenv \ && echo "source graalenv/bin/activate" >> ~/.bashrc diff --git a/graalpy-community/Dockerfile.ol8-slim b/graalpy-community/Dockerfile.ol8-slim index ed0cc0b..c917eb8 100644 --- a/graalpy-community/Dockerfile.ol8-slim +++ b/graalpy-community/Dockerfile.ol8-slim @@ -15,7 +15,7 @@ LABEL \ org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' ARG GRAALVM_VERSION=25.0.1 -ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz +ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH.tar.gz ARG TEMP_REGION="" WORKDIR /app @@ -32,7 +32,8 @@ RUN set -eux \ 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 + && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \ + && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi RUN graalpy -m venv graalenv \ && echo "source graalenv/bin/activate" >> ~/.bashrc diff --git a/graalpy-community/Dockerfile.ol9 b/graalpy-community/Dockerfile.ol9 index 09f4fba..7c6e806 100644 --- a/graalpy-community/Dockerfile.ol9 +++ b/graalpy-community/Dockerfile.ol9 @@ -15,7 +15,7 @@ LABEL \ org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' ARG GRAALVM_VERSION=25.0.1 -ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz +ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH.tar.gz ARG TEMP_REGION="" WORKDIR /app @@ -32,7 +32,8 @@ RUN set -eux \ 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 + && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \ + && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi RUN graalpy -m venv graalenv \ diff --git a/graalpy-community/Dockerfile.ol9-slim b/graalpy-community/Dockerfile.ol9-slim index ffeebf2..37d9e3e 100644 --- a/graalpy-community/Dockerfile.ol9-slim +++ b/graalpy-community/Dockerfile.ol9-slim @@ -14,7 +14,7 @@ LABEL \ org.opencontainers.image.description='GraalPy is the GraalVM high-performance implementation of the Python programming language.' ARG GRAALVM_VERSION=25.0.1 -ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-linux-amd64.tar.gz +ARG GRAALVM_PKG=https://github.com/oracle/graalpython/releases/download/graal-$GRAALVM_VERSION/graalpy-community-$GRAALVM_VERSION-GRAALVM_ARCH.tar.gz ARG TEMP_REGION="" WORKDIR /app @@ -31,7 +31,8 @@ RUN set -eux \ 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 + && if [ "$TARGETPLATFORM" == "linux/amd64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-amd64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi \ + && if [ "$TARGETPLATFORM" == "linux/arm64" ]; then (curl --fail --silent --location --retry 3 ${GRAALVM_PKG/GRAALVM_ARCH/linux-aarch64} | gunzip | tar x -C /opt/graalpy-$GRAALVM_VERSION --strip-components=1) && /opt/graalpy-$GRAALVM_VERSION/lib/truffle/post_install_hook.sh; fi RUN graalpy -m venv graalenv \ && echo "source graalenv/bin/activate" >> ~/.bashrc