You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eclipse-temurin/content.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Yes, it's possible for all image flavors except for Windows-based images. The fo
19
19
You need to put your CA certificates into `/certificates` directory inside the container (e.g. by using a volume) and opt-in into CA certificate processing by setting the environment variable `USE_SYSTEM_CA_CERTS` on the container to any value (if you are overriding the entrypoint script, please make sure you call `/__cacert_entrypoint.sh` to enable the processing). Using Docker CLI this might look like this:
20
20
21
21
```console
22
-
$ docker run -v $(pwd)/certs:/certificates/ -e USE_SYSTEM_CA_CERTS=1 %%IMAGE%%:21
22
+
$ docker run -v $(pwd)/certs:/certificates/ -e USE_SYSTEM_CA_CERTS=1 %%IMAGE%%:25
23
23
```
24
24
25
25
When run like this, your certificates will get added to both the JVM truststore and to the system CA store (e.g. for use by `curl` and other CLI tools). However, if you are running your containers in a restricted-by-default environment (such as Red Hat OpenShift), there will be some small differences:
@@ -32,10 +32,10 @@ While this feature has been tested in multiple scenarios, there is always a chan
32
32
33
33
# How to use this Image
34
34
35
-
To run a pre-built jar file with the latest OpenJDK 21, use the following Dockerfile:
35
+
To run a pre-built jar file with the latest OpenJDK 25, use the following Dockerfile:
36
36
37
37
```dockerfile
38
-
FROM %%IMAGE%%:21
38
+
FROM %%IMAGE%%:25
39
39
RUN mkdir /opt/app
40
40
COPY japp.jar /opt/app
41
41
CMD ["java", "-jar", "/opt/app/japp.jar"]
@@ -56,7 +56,7 @@ If you are using a distribution that we don't provide an image for you can copy
56
56
# Example
57
57
FROM <base image>
58
58
ENV JAVA_HOME=/opt/java/openjdk
59
-
COPY --from=%%IMAGE%%:21 $JAVA_HOME $JAVA_HOME
59
+
COPY --from=%%IMAGE%%:25 $JAVA_HOME $JAVA_HOME
60
60
ENV PATH="${JAVA_HOME}/bin:${PATH}"
61
61
```
62
62
@@ -66,7 +66,7 @@ On OpenJDK 21+, a JRE can be generated using `jlink`, see the following Dockerfi
66
66
67
67
```dockerfile
68
68
# Example of custom Java runtime using jlink in a multi-stage container build
If you want to place the jar file on the host file system instead of inside the container, you can mount the host path onto the container by using the following commands:
0 commit comments