Skip to content

Commit b58a72f

Browse files
Merge pull request #729 from jesperancinha/update-java
Update java
2 parents d95c875 + 2dba191 commit b58a72f

File tree

18 files changed

+44
-39
lines changed

18 files changed

+44
-39
lines changed

.circleci/config.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ jobs:
1818
- checkout
1919

2020
- run:
21-
name: Install SDK 20
22-
command: wget https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_linux-x64_bin.tar.gz &&
23-
tar xvf openjdk-20.0.1_linux-x64_bin.tar.gz &&
24-
sudo mv jdk-20*/ /opt/jdk20 &&
25-
export JAVA_HOME=/opt/jdk20 &&
21+
name: Install SDK 21
22+
command: wget https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz &&
23+
tar -xvf OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz &&
24+
sudo mv jdk-21*/ /opt/jdk21 &&
25+
export JAVA_HOME=/opt/jdk21 &&
2626
export PATH=$PATH:$JAVA_HOME/bin
2727

2828
- run:
2929
name: Build
30-
command: export JAVA_HOME=/opt/jdk20 &&
30+
command: export JAVA_HOME=/opt/jdk21 &&
3131
export PATH=$PATH:$JAVA_HOME/bin &&
3232
mvn -B -DskipTests clean package
3333

3434
- run:
3535
name: Test
36-
command: export JAVA_HOME=/opt/jdk20 &&
36+
command: export JAVA_HOME=/opt/jdk21 &&
3737
export PATH=$PATH:$JAVA_HOME/bin &&
3838
mvn test
3939

.github/workflows/vma-archiver-e2e.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up JDK 17
14+
- name: Set up JDK 21
1515
uses: actions/setup-java@v4
1616
with:
17-
java-version: '17'
17+
java-version: '21'
1818
distribution: 'adopt'
1919
- name: Locust
2020
run: make install
@@ -40,10 +40,10 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v4
43-
- name: Set up JDK 17
43+
- name: Set up JDK 21
4444
uses: actions/setup-java@v4
4545
with:
46-
java-version: '17'
46+
java-version: '21'
4747
distribution: 'adopt'
4848
- name: Locust
4949
run: make install
@@ -69,10 +69,10 @@ jobs:
6969
runs-on: ubuntu-latest
7070
steps:
7171
- uses: actions/checkout@v4
72-
- name: Set up JDK 17
72+
- name: Set up JDK 21
7373
uses: actions/setup-java@v4
7474
with:
75-
java-version: '17'
75+
java-version: '21'
7676
distribution: 'adopt'
7777
- name: Locust
7878
run: make install
@@ -99,10 +99,10 @@ jobs:
9999
runs-on: ubuntu-latest
100100
steps:
101101
- uses: actions/checkout@v4
102-
- name: Set up JDK 17
102+
- name: Set up JDK 21
103103
uses: actions/setup-java@v4
104104
with:
105-
java-version: '17'
105+
java-version: '21'
106106
distribution: 'adopt'
107107
- name: Locust
108108
run: make install

.github/workflows/vma-archiver-pull-request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19-
- name: Set up JDK 17
19+
- name: Set up JDK 21
2020
uses: actions/setup-java@v4
2121
with:
22-
java-version: '17'
22+
java-version: '21'
2323
distribution: 'adopt'
2424

2525
- name: Build and Test

.github/workflows/vma-archiver.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Set up JDK 17
15+
- name: Set up JDK 21
1616
uses: actions/setup-java@v4
1717
with:
18-
java-version: '17'
18+
java-version: '21'
1919
distribution: 'adopt'
2020
- name: Build and Test
2121
run: mvn clean install jacoco:prepare-agent package jacoco:report

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
SHELL := /bin/bash
2-
GITHUB_RUN_ID ?=123
1+
include Makefile.mk
32

43
b: build-npm build-maven
54
buildw:

Makefile.mk

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SHELL := /bin/bash
2+
GITHUB_RUN_ID ?=123
3+
4+
b:
5+
mvn clean install

docker-compose-local.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ services:
159159
reservations:
160160
memory: 400M
161161
healthcheck:
162-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8081' || exit 1
162+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8081 || [ $? -eq 4 ]) && exit 0 || exit 1"]
163163
interval: 30s
164164
timeout: 20m
165165
retries: 40
@@ -195,7 +195,7 @@ services:
195195
reservations:
196196
memory: 400M
197197
healthcheck:
198-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8082' || exit 1
198+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8082 || [ $? -eq 4 ]) && exit 0 || exit 1"]
199199
interval: 30s
200200
timeout: 20m
201201
retries: 40
@@ -229,7 +229,7 @@ services:
229229
reservations:
230230
memory: 400M
231231
healthcheck:
232-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8083' || exit 1
232+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8083 || [ $? -eq 4 ]) && exit 0 || exit 1"]
233233
interval: 30s
234234
timeout: 20m
235235
retries: 40
@@ -263,7 +263,7 @@ services:
263263
reservations:
264264
memory: 400M
265265
healthcheck:
266-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8084' || exit 1
266+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8084 || [ $? -eq 4 ]) && exit 0 || exit 1"]
267267
interval: 30s
268268
timeout: 20m
269269
retries: 40

docker-compose.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ services:
149149
jofisaes-vma-control:
150150
condition: service_healthy
151151
healthcheck:
152-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8081' || exit 1
152+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8081 || [ $? -eq 4 ]) && exit 0 || exit 1"]
153153
interval: 30s
154154
timeout: 20m
155155
retries: 40
@@ -180,7 +180,7 @@ services:
180180
jofisaes-vma-control:
181181
condition: service_healthy
182182
healthcheck:
183-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8082' || exit 1
183+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8082 || [ $? -eq 4 ]) && exit 0 || exit 1"]
184184
interval: 30s
185185
timeout: 20m
186186
retries: 40
@@ -209,7 +209,7 @@ services:
209209
jofisaes-vma-control:
210210
condition: service_healthy
211211
healthcheck:
212-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8083' || exit 1
212+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8083 || [ $? -eq 4 ]) && exit 0 || exit 1"]
213213
interval: 30s
214214
timeout: 20m
215215
retries: 40
@@ -238,7 +238,7 @@ services:
238238
jofisaes-vma-control:
239239
condition: service_healthy
240240
healthcheck:
241-
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8084' || exit 1
241+
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8084 || [ $? -eq 4 ]) && exit 0 || exit 1"]
242242
interval: 30s
243243
timeout: 20m
244244
retries: 40

docker-images/nginx/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
sed -i 's/${VMA_BACKEND_1}/'"$(getent hosts jofisaes-vma-backend-img-1 | cut -d' ' -f1)"'/g' /etc/nginx/nginx.conf
44
sed -i 's/${VMA_BACKEND_2}/'"$(getent hosts jofisaes-vma-backend-img-2 | cut -d' ' -f1)"'/g' /etc/nginx/nginx.conf

docker-images/psql/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
cd /var/lib/postgresql || exit
44

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<name>VMA Parent</name>
1111

1212
<properties>
13-
<java.version>17</java.version>
13+
<java.version>21</java.version>
1414
<maven.compiler.source>${java.version}</maven.compiler.source>
1515
<maven.compiler.target>${java.version}</maven.compiler.target>
1616
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
@@ -31,7 +31,7 @@
3131
<springdoc-openapi-starter.version>2.8.3</springdoc-openapi-starter.version>
3232

3333
<omni-coveragereporter-maven-plugin.version>0.4.4</omni-coveragereporter-maven-plugin.version>
34-
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
34+
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
3535
</properties>
3636
<modules>
3737
<module>vma-play</module>

vma-play/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ../Makefile.mk

vma-service-backend/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:17-slim-buster
1+
FROM eclipse-temurin:21-alpine
22

33
WORKDIR /root
44

vma-service-backend/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
java -jar -Dapplication.schema.host=${VMA_SCHEMA_REGISTRY} -Dapplication.postgres.host=jofisaes-vma-haproxy-lb -Dspring.profiles.active=${VMA_BACKEND_PROFILE} -Dserver.port="${VMA_PORT}" vma-service-backend.jar

vma-service-event-listener/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:17-slim-buster
1+
FROM eclipse-temurin:21-alpine
22

33
WORKDIR /root
44

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
java -jar -Dapplication.schema.host=${VMA_SCHEMA_REGISTRY} -Dapplication.postgres.host=jofisaes-vma-haproxy-lb -Dspring.profiles.active=docker -Dserver.port="${VMA_PORT}" vma-service-event-listener.jar

vma-service-websockets/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:17-slim-buster
1+
FROM eclipse-temurin:21-alpine
22

33
WORKDIR /root
44

vma-service-websockets/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
java -jar -Dapplication.schema.host=${VMA_SCHEMA_REGISTRY} -Dapplication.postgres.host=jofisaes-vma-haproxy-lb -Dspring.profiles.active=${VMA_BACKEND_PROFILE} -Dserver.port="${VMA_PORT}" vma-service-websockets.jar

0 commit comments

Comments
 (0)