From fca8ddb0f4ab7fcdebc28d83a362c17fad242d2d Mon Sep 17 00:00:00 2001 From: Houssem Ben Ali Date: Thu, 30 May 2024 16:22:43 +0200 Subject: [PATCH 1/2] POC: GraalVM CI images --- jdk/graal21-ubuntu24/Dockerfile | 24 ++ jdk/graal21-ubuntu24/tests/goss.yaml | 15 + jdk/graal21-ubuntu24/tests/test_image.sh | 6 + maven/graal21-maven39-ubuntu24/Dockerfile | 46 +++ .../docker-entrypoint.sh | 9 + maven/graal21-maven39-ubuntu24/releases.json | 356 ++++++++++++++++++ .../graal21-maven39-ubuntu24/tests/goss.yaml | 23 ++ .../tests/test_image.sh | 6 + 8 files changed, 485 insertions(+) create mode 100644 jdk/graal21-ubuntu24/Dockerfile create mode 100644 jdk/graal21-ubuntu24/tests/goss.yaml create mode 100755 jdk/graal21-ubuntu24/tests/test_image.sh create mode 100644 maven/graal21-maven39-ubuntu24/Dockerfile create mode 100644 maven/graal21-maven39-ubuntu24/docker-entrypoint.sh create mode 100644 maven/graal21-maven39-ubuntu24/releases.json create mode 100644 maven/graal21-maven39-ubuntu24/tests/goss.yaml create mode 100755 maven/graal21-maven39-ubuntu24/tests/test_image.sh diff --git a/jdk/graal21-ubuntu24/Dockerfile b/jdk/graal21-ubuntu24/Dockerfile new file mode 100644 index 0000000..b7ed318 --- /dev/null +++ b/jdk/graal21-ubuntu24/Dockerfile @@ -0,0 +1,24 @@ +# Dockerizing a graal21 images with: +# +# - Graal VM 21 +# +# build : docker build -t exoplatform/ci:graal21-ubuntu24 . +# +FROM exoplatform/ci:base-ubuntu24 +LABEL MAINTAINER "eXo Platform " + +ENV TERM xterm + +ENV JDK_MAJOR_VERSION 21 + +# Install OpenJDK Java 21 SDK +RUN apt-get -qq update && \ + apt-get -qq -y install gnupg ca-certificates curl + +RUN mkdir -p /usr/lib/jvm/graalvm${JDK_MAJOR_VERSION} +RUN curl -fsSL https://download.oracle.com/graalvm/${JDK_MAJOR_VERSION}/latest/graalvm-jdk-${JDK_MAJOR_VERSION}_linux-x64_bin.tar.gz \ + | tar xzf - -C /usr/lib/jvm/graalvm${JDK_MAJOR_VERSION} --strip-components=1 + + +ENV JAVA_HOME /usr/lib/jvm/graalvm${JDK_MAJOR_VERSION} +ENV PATH="${PATH}:${JAVA_HOME}/bin" diff --git a/jdk/graal21-ubuntu24/tests/goss.yaml b/jdk/graal21-ubuntu24/tests/goss.yaml new file mode 100644 index 0000000..da66621 --- /dev/null +++ b/jdk/graal21-ubuntu24/tests/goss.yaml @@ -0,0 +1,15 @@ +file: + /usr/lib/jvm: + title: Validating the presence of JVM directory + exists: true +package: + git: + installed: true + title: Check that git is installed +command: + java -version: + exit-status: 0 + stdout: [] + stderr: + - graal version "21 + timeout: 0 \ No newline at end of file diff --git a/jdk/graal21-ubuntu24/tests/test_image.sh b/jdk/graal21-ubuntu24/tests/test_image.sh new file mode 100755 index 0000000..a3d9261 --- /dev/null +++ b/jdk/graal21-ubuntu24/tests/test_image.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +i=0 +time dgoss run -it exoplatform/ci:graal21-ubuntu24 /bin/cat || ((i++)) + +exit $i \ No newline at end of file diff --git a/maven/graal21-maven39-ubuntu24/Dockerfile b/maven/graal21-maven39-ubuntu24/Dockerfile new file mode 100644 index 0000000..162c70c --- /dev/null +++ b/maven/graal21-maven39-ubuntu24/Dockerfile @@ -0,0 +1,46 @@ +# Dockerizing a graal21-maven39-ubuntu24 images with: +# - ubuntu24 +# - Graal VM 21 +# - Maven 3.9 +# +# build : docker build -t exoplatform/ci:graal21-maven39-ubuntu24 . +# +FROM exoplatform/ci:graal21-ubuntu24 +LABEL MAINTAINER "eXo Platform " + +# CI Tools version +ENV MAVEN_VERSION 3.9.6 +# Install Maven +RUN mkdir -p /usr/share/maven \ + && curl -fsSL http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \ + | tar xzf - -C /usr/share/maven --strip-components=1 \ + && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn + +# Workaround to be able to execute others command than "mvn" as entrypoint +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint +RUN chown ${EXO_CI_USER}:${EXO_GROUP} /usr/bin/docker-entrypoint \ + && chmod u+x /usr/bin/docker-entrypoint + +USER ${EXO_CI_USER} + +RUN mkdir -p ${HOME}/.web3j/solc +COPY releases.json ${HOME}/.web3j/solc/ +RUN chown ${EXO_CI_USER}:${EXO_GROUP} ${HOME}/.web3j + +# Custom configuration for Maven +ENV M2_HOME=/usr/share/maven +ENV MAVEN_OPTS="-Dmaven.repo.local=${HOME}/.m2/repository -Xms1G -Xmx2G -XX:MaxMetaspaceSize=1G -Dcom.sun.media.jai.disableMediaLib=true -Djava.io.tmpdir=${EXO_CI_TMP_DIR} -Dmaven.artifact.threads=10 -Djava.awt.headless=true --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.util.regex=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED" +ENV PATH=$JAVA_HOME/bin:$M2_HOME/bin:$PATH + +# Create needed directories for Maven & git +RUN mkdir -p ${HOME}/.m2/repository \ + && mkdir -p ${HOME}/.ssh \ + && mkdir -p ${HOME}/.gnupg \ + && chmod 700 ${HOME}/.gnupg + +WORKDIR ${EXO_CI_DATA_DIR} + +# Workaround to be able to execute others command than "mvn" as entrypoint +ENTRYPOINT ["/usr/bin/docker-entrypoint"] + +CMD ["mvn", "--help"] diff --git a/maven/graal21-maven39-ubuntu24/docker-entrypoint.sh b/maven/graal21-maven39-ubuntu24/docker-entrypoint.sh new file mode 100644 index 0000000..8058642 --- /dev/null +++ b/maven/graal21-maven39-ubuntu24/docker-entrypoint.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +# Hack for Jenkins Pipeline: authorize cat without absolute path +if [[ "$1" == "/"* ]] || [[ "$1" == "cat" ]]; then + exec "$@" +fi + +exec mvn "$@" diff --git a/maven/graal21-maven39-ubuntu24/releases.json b/maven/graal21-maven39-ubuntu24/releases.json new file mode 100644 index 0000000..d3c3366 --- /dev/null +++ b/maven/graal21-maven39-ubuntu24/releases.json @@ -0,0 +1,356 @@ +[ + { + "version": "0.4.16", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.16/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.16/solc-static-linux" + }, + { + "version": "0.4.17", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.17/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.17/solc-static-linux" + }, + { + "version": "0.4.18", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.18/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.18/solc-static-linux" + }, + { + "version": "0.4.19", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.19/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.19/solc-static-linux" + }, + { + "version": "0.4.20", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.20/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.20/solc-static-linux" + }, + { + "version": "0.4.21", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.21/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.21/solc-static-linux" + }, + { + "version": "0.4.22", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.22/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.22/solc-static-linux" + }, + { + "version": "0.4.23", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.23/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.23/solc-static-linux" + }, + { + "version": "0.4.24", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.24/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.24/solc-static-linux" + }, + { + "version": "0.4.25", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.4.25/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.4.25/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.25/solc-static-linux" + }, + { + "version": "0.4.26", + "windows_url": "", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.4.26/solc-static-linux" + }, + { + "version": "0.5.0", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.0/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.0/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.0/solc-static-linux" + }, + { + "version": "0.5.1", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.1/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.1/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.1/solc-static-linux" + }, + { + "version": "0.5.2", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.2/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.2/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.2/solc-static-linux" + }, + { + "version": "0.5.3", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.3/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.3/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.3/solc-static-linux" + }, + { + "version": "0.5.4", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.4/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.4/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.4/solc-static-linux" + }, + { + "version": "0.5.5", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.5/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.5/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.5/solc-static-linux" + }, + { + "version": "0.5.6", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.6/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.6/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.6/solc-static-linux" + }, + { + "version": "0.5.7", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.7/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.7/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.7/solc-static-linux" + }, + { + "version": "0.5.8", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.8/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.8/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.8/solc-static-linux" + }, + { + "version": "0.5.9", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.9/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.9/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.9/solc-static-linux" + }, + { + "version": "0.5.10", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.10/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.10/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.10/solc-static-linux" + }, + { + "version": "0.5.11", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.11/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.11/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.11/solc-static-linux" + }, + { + "version": "0.5.12", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.12/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.12/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.12/solc-static-linux" + }, + { + "version": "0.5.13", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.13/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.13/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.13/solc-static-linux" + }, + { + "version": "0.5.14", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.14/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.14/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.14/solc-static-linux" + }, + { + "version": "0.5.15", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.15/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.15/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.15/solc-static-linux" + }, + { + "version": "0.5.16", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.16/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.5.16/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.16/solc-static-linux" + }, + { + "version": "0.5.17", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.5.17/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.5.17/solc-static-linux" + }, + { + "version": "0.6.0", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.0/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.6.0/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.0/solc-static-linux" + }, + { + "version": "0.6.1", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.1/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.6.1/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.1/solc-static-linux" + }, + { + "version": "0.6.2", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.2/solidity-windows.zip", + "mac_url": "https://github.com/web3j/solidity-darwin-binaries/releases/download/v0.6.2/solc_mac", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.2/solc-static-linux" + }, + { + "version": "0.6.3", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.3/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.3/solc-static-linux" + }, + { + "version": "0.6.4", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.4/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.4/solc-static-linux" + }, + { + "version": "0.6.5", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.5/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.5/solc-static-linux" + }, + { + "version": "0.6.6", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.6/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.6/solc-static-linux" + }, + { + "version": "0.6.7", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.7/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.7/solc-static-linux" + }, + { + "version": "0.6.8", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.8/solidity-windows.zip", + "mac_url": "", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.8/solc-static-linux" + }, + { + "version": "0.6.9", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.9/solidity-windows.zip", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.6.9/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.9/solc-static-linux" + }, + { + "version": "0.6.10", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.10/solidity-windows.zip", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.6.10/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.10/solc-static-linux" + }, + { + "version": "0.6.11", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.11/solidity-windows.zip", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.6.11/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.11/solc-static-linux" + }, + { + "version": "0.6.12", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.6.12/solidity-windows.zip", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.6.12/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.6.12/solc-static-linux" + }, + { + "version": "0.7.0", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.7.0/solidity-windows.zip", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.7.0/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.7.0/solc-static-linux" + }, + { + "version": "0.7.1", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.7.1/solidity-windows.zip", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.7.1/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.7.1/solc-static-linux" + }, + { + "version": "0.7.2", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.7.2/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.7.2/solc-static-linux" + }, + { + "version": "0.7.3", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.7.3/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.7.3/solc-static-linux" + }, + { + "version": "0.7.4", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.7.4/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.7.4/solc-static-linux" + }, + { + "version": "0.7.5", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.7.5/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.7.5/solc-static-linux" + }, + { + "version": "0.7.6", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.7.6/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.7.6/solc-static-linux" + }, + { + "version": "0.8.0", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.0/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.0/solc-static-linux" + }, + { + "version": "0.8.1", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.1/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.1/solc-static-linux" + }, + { + "version": "0.8.2", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.2/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.2/solc-static-linux" + }, + { + "version": "0.8.3", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.3/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.3/solc-static-linux" + }, + { + "version": "0.8.4", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.4/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.4/solc-static-linux" + }, + { + "version": "0.8.5", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.5/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.5/solc-static-linux" + }, + { + "version": "0.8.6", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.6/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.6/solc-static-linux" + }, + { + "version": "0.8.7", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.7/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.7/solc-static-linux" + }, + { + "version": "0.8.8", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.8/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.8/solc-static-linux" + }, + { + "version": "0.8.9", + "windows_url": "", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.9/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.9/solc-static-linux" + } +] \ No newline at end of file diff --git a/maven/graal21-maven39-ubuntu24/tests/goss.yaml b/maven/graal21-maven39-ubuntu24/tests/goss.yaml new file mode 100644 index 0000000..ca80e20 --- /dev/null +++ b/maven/graal21-maven39-ubuntu24/tests/goss.yaml @@ -0,0 +1,23 @@ +file: + /home/ciagent/.m2/repository: + title: Validating the presence Maven repository folder + exists: true + /home/ciagent/.m2/settings.xml: + title: Validating the absence of eXo USER settings file + exists: false + /usr/share/maven/conf/settings.xml: + title: Validating the presence of eXo GLOBAL settings file + exists: true +package: + git: + installed: true + title: Check that git is installed +command: + mvn --version: + exit-status: 0 + stdout: + - 3.9.6 + - 21.0.2 + - "Default locale: en_US, platform encoding: UTF-8" + stderr: [] + timeout: 0 \ No newline at end of file diff --git a/maven/graal21-maven39-ubuntu24/tests/test_image.sh b/maven/graal21-maven39-ubuntu24/tests/test_image.sh new file mode 100755 index 0000000..8cbf6ca --- /dev/null +++ b/maven/graal21-maven39-ubuntu24/tests/test_image.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +i=0 +time dgoss run -it exoplatform/ci:jdk21-maven39-ubuntu24 cat || ((i++)) + +exit $i \ No newline at end of file From 53fda4528dec72e4d482a5e070e3cb5fefa408d9 Mon Sep 17 00:00:00 2001 From: Houssem Ben Ali Date: Thu, 30 May 2024 16:23:54 +0200 Subject: [PATCH 2/2] Fix goss image --- maven/graal21-maven39-ubuntu24/tests/test_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maven/graal21-maven39-ubuntu24/tests/test_image.sh b/maven/graal21-maven39-ubuntu24/tests/test_image.sh index 8cbf6ca..f2c6fae 100755 --- a/maven/graal21-maven39-ubuntu24/tests/test_image.sh +++ b/maven/graal21-maven39-ubuntu24/tests/test_image.sh @@ -1,6 +1,6 @@ #!/bin/bash i=0 -time dgoss run -it exoplatform/ci:jdk21-maven39-ubuntu24 cat || ((i++)) +time dgoss run -it exoplatform/ci:graal21-maven39-ubuntu24 cat || ((i++)) exit $i \ No newline at end of file