Skip to content

Commit 9236b36

Browse files
Merge pull request #38 from clj-codes/chore/update-jdk-21
chore: update jdk to 21
2 parents 720cbc6 + 11a80a4 commit 9236b36

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/flyio-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- name: Prepare java
3131
uses: actions/setup-java@v4
3232
with:
33-
distribution: 'adopt'
34-
java-version: '11'
33+
distribution: 'temurin'
34+
java-version: '21'
3535

3636
- name: Install clojure cli
3737
uses: DeLaGuardo/setup-clojure@master
@@ -58,8 +58,8 @@ jobs:
5858
- name: Prepare java
5959
uses: actions/setup-java@v4
6060
with:
61-
distribution: 'adopt'
62-
java-version: '11'
61+
distribution: 'temurin'
62+
java-version: '21'
6363

6464
- name: Install clojure cli
6565
uses: DeLaGuardo/setup-clojure@master

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Prepare java
2828
uses: actions/setup-java@v4
2929
with:
30-
distribution: 'adopt'
31-
java-version: '11'
30+
distribution: 'temurin'
31+
java-version: '21'
3232

3333
- name: Install clojure cli
3434
uses: DeLaGuardo/setup-clojure@master

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Dockerfile for fly.io deploy
22

3-
FROM openjdk:11-slim-buster AS runtime
3+
FROM eclipse-temurin:21 AS runtime
44
COPY service.jar /app.jar
55

6-
ENV JAVA_OPTS="-XX:+UseContainerSupport -XX:InitialRAMPercentage=50 -XX:MaxRAMPercentage=90 -XshowSettings:vm"
6+
ENV JAVA_OPTS="-XX:+UseContainerSupport -XX:InitialRAMPercentage=50 -XX:MaxRAMPercentage=90 -XshowSettings:vm --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED"
77

88
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -jar /app.jar"]

0 commit comments

Comments
 (0)