Skip to content
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

feat(superchain): switch to JDK 20 #4082

Merged
merged 5 commits into from
May 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions superchain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ RUN apt-get update
&& rm -rf $(pip cache dir) \
&& rm -rf /var/lib/apt/lists/*

# Install JDK8 (Amazon Corretto 8)
# Install JDK20 (Amazon Corretto 20)
COPY superchain/gpg/corretto.asc /tmp/corretto.asc
RUN apt-key add /tmp/corretto.asc && rm /tmp/corretto.asc \
&& echo "deb https://apt.corretto.aws stable main" > /etc/apt/sources.list.d/amazon-corretto.list \
&& apt-get update \
&& mkdir -p /usr/share/man/man1 \
&& apt-get -y install java-1.8.0-amazon-corretto-jdk \
&& apt-get -y install java-1.20.0-amazon-corretto-jdk \
&& rm -rf /usr/share/man/man1 \
&& rm -rf /var/lib/apt/lists/*

Expand Down
11 changes: 10 additions & 1 deletion superchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ The previous image tags have been discontinued:
- `:node14` (users shoudl migrate to `:1-buster-slim-node14`)
- `:node14-nightly` (users shoudl migrate to `:1-buster-slim-node14-nightly`)

## Building

This docker image must be built from the package root with the Dockerfile set to
`superchain/Dockerfile`:

```
jsii$ docker build . -f superchain/Dockerfile
```

## NodeJS and NPM

We build multiple versions of this image, for different versions of Node. They are available as:
Expand All @@ -60,7 +69,7 @@ If you are building this image from source, you can control the Node version wit
`NODE_MAJOR_VERSION` build argument:

```
docker build [...] --build-arg NODE_MAJOR_VERSION=14 .
jsii$ docker build [...] --build-arg NODE_MAJOR_VERSION=16 . -f superchain/Dockerfile
```

## Included Tools & Utilities
Expand Down
Loading