Skip to content
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
1 change: 1 addition & 0 deletions adoptopenjdk/deprecated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This image is officially deprecated in favor of [the `eclipse-temurin` image](https://hub.docker.com/_/eclipse-temurin/), and will receive no further updates after 2021-08-01 (Aug 01, 2021). Please adjust your usage accordingly.
1 change: 1 addition & 0 deletions eclipse-temurin/README-short.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Official Images for OpenJDK binaries built by Eclipse Temurin.
90 changes: 90 additions & 0 deletions eclipse-temurin/content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
## Overview

The images in this repository contain OpenJDK binaries that are built by Eclipse Temurin.

# What is Eclipse Temurin ?

The Eclipse Temurin project provides code and processes that support the building of runtime binaries and associated technologies that are high performance, enterprise-caliber, cross-platform, open-source licensed, and Java SE TCK-tested for general use across the Java ecosystem.

# Images

Current there are only JDK (Java Developer Kit) images. On OpenJDK 11+ JRE's can be produced using `jlink` (see usage below).

### Multi-Arch Image

Docker Images for the following architectures are now available:

- `amd64`, `windows-amd64`, `arm64v8`, `ppc64le`

More architecures will be available shortly.

# How to use this Image

To run a pre-built jar file with the latest OpenJDK 11, use the following Dockerfile:

```dockerfile
FROM %%IMAGE%%:11
RUN mkdir /opt/app
COPY japp.jar /opt/app
CMD ["java", "-jar", "/opt/app/japp.jar"]
```

You can build and run the Docker Image as shown in the following example:

```console
docker build -t japp .
docker run -it --rm japp
```

### Using a different base Image

If you are using a distribution that we don't provide an image for you can copy the JDK using a similar Dockerfile to the one below:

```dockerfile
# Example
FROM <base image>
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=%%IMAGE%%:11 $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"
```

### Creating a JRE using jlink

On OpenJDK 11+, a JRE can be generated using `jlink`, see the following Dockerfile:

```dockerfile
# Example of custom Java runtime using jlink in a multi-stage container build
FROM %%IMAGE%%:11 as jre-build

# Create a custom Java runtime
RUN $JAVA_HOME/bin/jlink \
--add-modules java.base \
--strip-debug \
--no-man-pages \
--no-header-files \
--compress=2 \
--output /javaruntime

# Define your base image
FROM debian:buster-slim
ENV JAVA_HOME=/opt/java/openjdk
ENV PATH "${JAVA_HOME}/bin:${PATH}"
COPY --from=jre-build /javaruntime $JAVA_HOME

# Continue with your application deployment
RUN mkdir /opt/app
COPY japp.jar /opt/app
CMD ["java", "-jar", "/opt/app/japp.jar"]
```

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:

```dockerfile
FROM %%IMAGE%%:11.0.12_7-jdk
CMD ["java", "-jar", "/opt/app/japp.jar"]
```

```console
docker build -t japp .
docker run -it -v /path/on/host/system/jars:/opt/app japp
```
1 change: 1 addition & 0 deletions eclipse-temurin/get-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Adoptium Slack](https://adoptium.net/slack.html)
1 change: 1 addition & 0 deletions eclipse-temurin/github-repo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/adoptium/containers
1 change: 1 addition & 0 deletions eclipse-temurin/issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[GitHub](%%GITHUB-REPO%%/issues); The [adoptium support](https://adoptium.net/support.html) page has more information on quality, roadmap and support levels for Eclipse Temurin builds;
5 changes: 5 additions & 0 deletions eclipse-temurin/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The Dockerfiles and associated scripts are licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).

Licenses for the products installed within the images:

- OpenJDK: The project license is GNU GPL v2 with Classpath Exception.
Binary file added eclipse-temurin/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions eclipse-temurin/maintainer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Adoptium](%%GITHUB-REPO%%)