Skip to content

Commit 2779584

Browse files
authored
Update documentation for Temurin version 25 (#2641)
1 parent 3e4d74e commit 2779584

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

eclipse-temurin/content.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Yes, it's possible for all image flavors except for Windows-based images. The fo
1919
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:
2020

2121
```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
2323
```
2424

2525
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
3232

3333
# How to use this Image
3434

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:
3636

3737
```dockerfile
38-
FROM %%IMAGE%%:21
38+
FROM %%IMAGE%%:25
3939
RUN mkdir /opt/app
4040
COPY japp.jar /opt/app
4141
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
5656
# Example
5757
FROM <base image>
5858
ENV JAVA_HOME=/opt/java/openjdk
59-
COPY --from=%%IMAGE%%:21 $JAVA_HOME $JAVA_HOME
59+
COPY --from=%%IMAGE%%:25 $JAVA_HOME $JAVA_HOME
6060
ENV PATH="${JAVA_HOME}/bin:${PATH}"
6161
```
6262

@@ -66,7 +66,7 @@ On OpenJDK 21+, a JRE can be generated using `jlink`, see the following Dockerfi
6666

6767
```dockerfile
6868
# Example of custom Java runtime using jlink in a multi-stage container build
69-
FROM %%IMAGE%%:21 as jre-build
69+
FROM %%IMAGE%%:25 as jre-build
7070

7171
# Create a custom Java runtime
7272
RUN $JAVA_HOME/bin/jlink \
@@ -92,7 +92,7 @@ CMD ["java", "-jar", "/opt/app/japp.jar"]
9292
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:
9393

9494
```dockerfile
95-
FROM %%IMAGE%%:21.0.2_13-jdk
95+
FROM %%IMAGE%%:25
9696
CMD ["java", "-jar", "/opt/app/japp.jar"]
9797
```
9898

0 commit comments

Comments
 (0)