use new image with graalvm for api gateway
This commit is contained in:
@@ -18,7 +18,7 @@ jobs:
|
|||||||
compile:
|
compile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: artifacts.biters.it:8443/biters/gitea-ci-maven:21
|
image: artifacts.biters.it:8443/biters/gitea-ci-maven-native:21
|
||||||
credentials:
|
credentials:
|
||||||
username: ${{ secrets.MAVEN_USERNAME }}
|
username: ${{ secrets.MAVEN_USERNAME }}
|
||||||
password: ${{ secrets.MAVEN_PASSWORD }}
|
password: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: artifacts.biters.it:8443/biters/gitea-ci-maven:21
|
image: artifacts.biters.it:8443/biters/gitea-ci-maven-native:21
|
||||||
credentials:
|
credentials:
|
||||||
username: ${{ secrets.MAVEN_USERNAME }}
|
username: ${{ secrets.MAVEN_USERNAME }}
|
||||||
password: ${{ secrets.MAVEN_PASSWORD }}
|
password: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
|
|||||||
+8
-1
@@ -1,7 +1,14 @@
|
|||||||
FROM maven:3.9-eclipse-temurin-21
|
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 \
|
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" \
|
&& curl -sL "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" \
|
||||||
-o /usr/local/bin/yq && chmod +x /usr/local/bin/yq \
|
-o /usr/local/bin/yq && chmod +x /usr/local/bin/yq \
|
||||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
|
|||||||
Reference in New Issue
Block a user