Skip to content

Commit 79c31bc

Browse files
chore: update GraalVM image B to GraalVM for JDK 23 (#967)
* chore: update GraalVM image B to GraalVM for JDK 23 * fix dockerfile based on https://github.com/googleapis/java-shared-config/pull/877/files * upgrade graalvm b yaml
1 parent b29c8ff commit 79c31bc

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.cloudbuild/graalvm-b.Dockerfile

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

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

17-
RUN gu install native-image && \
18-
yum update -y && \
19-
yum install -y wget unzip git && \
17+
# native-image comes out of the box
18+
RUN native-image --version
19+
20+
RUN microdnf update -y oraclelinux-release-el9 && \
21+
microdnf install -y wget unzip git && \
2022
# Install maven
2123
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 && \
2224
unzip /tmp/maven.zip -d /tmp/maven && \
@@ -28,20 +30,22 @@ ENV PATH $PATH:/usr/local/lib/maven/bin
2830

2931
# Install gcloud SDK
3032
COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
31-
RUN yum install -y google-cloud-sdk
33+
RUN microdnf install -y google-cloud-sdk
3234

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

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

3943
# Install terraform
4044
# See also https://www.hashicorp.com/official-packaging-guide
4145
COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo
42-
RUN yum -y install terraform
46+
RUN microdnf -y install terraform
4347

4448
# Install jq
45-
RUN yum -y install jq
49+
RUN microdnf -y install jq
4650

4751
WORKDIR /workspace

.cloudbuild/graalvm-b.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ commandTests:
1717
- name: "version"
1818
command: ["java", "-version"]
1919
# java -version outputs to stderr...
20-
expectedError: ["openjdk version \"17.0.8\"", "GraalVM CE 22.3.3"]
20+
expectedError: ["openjdk version \"23.0.1\"", "GraalVM CE 23.0.1"]
2121
- name: "maven"
2222
command: ["mvn", "-version"]
2323
expectedOutput: ["Apache Maven 3.9.4"]

0 commit comments

Comments
 (0)