From f5a3e1b3f7868196919779366206e2188bc20a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Rossi?= Date: Thu, 9 Jul 2026 09:41:01 +0200 Subject: [PATCH] use new image with graalvm for api gateway --- .gitea/workflows/maven-compile.yml | 2 +- .gitea/workflows/maven-release.yml | 2 +- Dockerfile.ci | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/maven-compile.yml b/.gitea/workflows/maven-compile.yml index 11d7dc0..c3be71c 100644 --- a/.gitea/workflows/maven-compile.yml +++ b/.gitea/workflows/maven-compile.yml @@ -18,7 +18,7 @@ jobs: compile: runs-on: ubuntu-latest container: - image: artifacts.biters.it:8443/biters/gitea-ci-maven:21 + image: artifacts.biters.it:8443/biters/gitea-ci-maven-native:21 credentials: username: ${{ secrets.MAVEN_USERNAME }} password: ${{ secrets.MAVEN_PASSWORD }} diff --git a/.gitea/workflows/maven-release.yml b/.gitea/workflows/maven-release.yml index 231bd76..353f0b3 100644 --- a/.gitea/workflows/maven-release.yml +++ b/.gitea/workflows/maven-release.yml @@ -28,7 +28,7 @@ jobs: release: runs-on: ubuntu-latest container: - image: artifacts.biters.it:8443/biters/gitea-ci-maven:21 + image: artifacts.biters.it:8443/biters/gitea-ci-maven-native:21 credentials: username: ${{ secrets.MAVEN_USERNAME }} password: ${{ secrets.MAVEN_PASSWORD }} diff --git a/Dockerfile.ci b/Dockerfile.ci index ca4bb3d..7d6299f 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -1,7 +1,14 @@ FROM maven:3.9-eclipse-temurin-21 +# GraalVM come JDK secondaria per native-image (letta via GRAALVM_HOME) +ENV GRAALVM_HOME=/opt/graalvm +RUN mkdir -p "$GRAALVM_HOME" \ + && curl -fsSL "https://download.oracle.com/graalvm/21/latest/graalvm-jdk-21_linux-x64_bin.tar.gz" \ + | tar -xz --strip-components=1 -C "$GRAALVM_HOME" \ + && "$GRAALVM_HOME/bin/native-image" --version + RUN apt-get update \ - && apt-get install -y --no-install-recommends curl ca-certificates git jq \ + && apt-get install -y --no-install-recommends curl ca-certificates git jq build-essential zlib1g-dev \ && curl -sL "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" \ -o /usr/local/bin/yq && chmod +x /usr/local/bin/yq \ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \