-
Notifications
You must be signed in to change notification settings - Fork 2.2k
add eclipse-temurin and deprecate adoptopenjdk #2008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| This image is officially deprecated in favor of [the `temurin-compliance` image](https://hub.docker.com/_/temurin-compliance/), and will receive no further updates after 2021-08-01 (Aug 01, 2021). Please adjust your usage accordingly. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Official Images for OpenJDK binaries built by Eclipse Temurin. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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` | ||
|
|
||
| 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 | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [Adoptium Slack](https://adoptium.net/slack.html) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| https://github.com/adoptium/containers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| [Adoptium](%%GITHUB-REPO%%) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.