Skip to content

feat: update GraalVM image B to GraalVM for JDK 23 #967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions .cloudbuild/graalvm-b.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM ghcr.io/graalvm/graalvm-ce:ol7-java17-22.3.3-b1
FROM ghcr.io/graalvm/graalvm-community:23.0.1-ol9-20241015

RUN gu install native-image && \
yum update -y && \
yum install -y wget unzip git && \
# native-image comes out of the box
RUN native-image --version

RUN microdnf update -y oraclelinux-release-el9 && \
microdnf install -y wget unzip git && \
# Install maven
wget -q https://archive.apache.org/dist/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.zip -O /tmp/maven.zip && \
unzip /tmp/maven.zip -d /tmp/maven && \
Expand All @@ -28,20 +30,22 @@ ENV PATH $PATH:/usr/local/lib/maven/bin

# Install gcloud SDK
COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
RUN yum install -y google-cloud-sdk
RUN microdnf install -y google-cloud-sdk

# Adding the package path to local
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin

# Install docker
RUN yum install -y docker-engine docker-cli
# See also https://docs.docker.com/engine/install/rhel/#set-up-the-repository
COPY docker-ce.repo /etc/yum.repos.d/docker-ce.repo
RUN microdnf install -y docker-ce docker-ce-cli

# Install terraform
# See also https://www.hashicorp.com/official-packaging-guide
COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo
RUN yum -y install terraform
RUN microdnf -y install terraform

# Install jq
RUN yum -y install jq
RUN microdnf -y install jq

WORKDIR /workspace
2 changes: 1 addition & 1 deletion .cloudbuild/graalvm-b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ commandTests:
- name: "version"
command: ["java", "-version"]
# java -version outputs to stderr...
expectedError: ["openjdk version \"17.0.8\"", "GraalVM CE 22.3.3"]
expectedError: ["openjdk version \"23.0.1\"", "GraalVM CE 23.0.1"]
- name: "maven"
command: ["mvn", "-version"]
expectedOutput: ["Apache Maven 3.9.4"]
Expand Down
Loading