Skip to content

Commit

Permalink
Using Oracle GraalVM container images (#210)
Browse files Browse the repository at this point in the history
* Using Oracle GraalVM container images

* Using Oracle GraalVM container images
  • Loading branch information
sachin-pikle authored Sep 5, 2023
1 parent d5dae4b commit e0592fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spring-native-image/Dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using Oracle GraalVM for JDK 17 Community Edition
FROM container-registry.oracle.com/graalvm/native-image-community:17-ol8 AS builder
# Using Oracle GraalVM for JDK 17
FROM container-registry.oracle.com/graalvm/native-image:17-ol8 AS builder

# Set the working directory to /home/app
WORKDIR /build
Expand Down
4 changes: 2 additions & 2 deletions spring-native-image/Dockerfiles/Dockerfile.jvm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using Oracle GraalVM for JDK 17 Community Edition
FROM container-registry.oracle.com/graalvm/jdk-community:17-ol8
# Using Oracle GraalVM for JDK 17
FROM container-registry.oracle.com/graalvm/jdk:17-ol8

# JAR file will be specified by passing in a build time argument to docker build
ARG APP_FILE
Expand Down
4 changes: 2 additions & 2 deletions spring-native-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ By default, the demo uses the [Native Build Tools Maven plugin](https://graalvm.
sdk install java 17.0.8-graal
```

2. (Optional) Install and run Docker. See [Get Docker](https://docs.docker.com/get-docker/#installation) for more details. Configure it to [allow non-root user](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user) if you are on Linux.
2. (Optional) Install and run a Docker-API compatible container runtime such as [Rancher Desktop](https://docs.rancherdesktop.io/getting-started/installation/), [Docker](https://www.docker.io/gettingstarted/), or [Podman](https://podman.io/docs/installation). If you are using Docker, configure it to [allow non-root user access](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user) if you are on Linux.

3. Download the demos repository or clone it as follows:

Expand Down Expand Up @@ -72,7 +72,7 @@ This demo is built using Maven.

### (Optional) Containerize the JAR

The following steps (5-8) show how you can easily containerize the JAR built in the previous step using the GraalVM JDK container image `container-registry.oracle.com/graalvm/jdk-community:17-ol8` as the JVM.
The following steps (5-8) show how you can easily containerize the JAR built in the previous step using the Oracle GraalVM JDK container image `container-registry.oracle.com/graalvm/jdk:17-ol8`.

5. Run this command to package the JAR as a Docker container:

Expand Down

0 comments on commit e0592fe

Please sign in to comment.