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

Update java #729

Merged
merged 28 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8fcf3bf
Update java
jesperancinha Jan 12, 2025
65a992f
Merge branch 'master' into update-java
jesperancinha Jan 12, 2025
be72851
Merge branch 'master' into update-java
jesperancinha Jan 12, 2025
1ef7344
Updates Makefile
jesperancinha Jan 12, 2025
3bf889a
Updates Makefile
jesperancinha Jan 12, 2025
a048b4a
Updates deps
jesperancinha Jan 12, 2025
da7ad99
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 12, 2025
9ae60a3
Merge branch 'master' into update-java
jesperancinha Jan 12, 2025
e603f85
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 16, 2025
470afd8
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 16, 2025
e4a4af1
Updates deps
jesperancinha Jan 16, 2025
cc4b6d2
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 16, 2025
3e58fa6
Merge branch 'master' into update-java
jesperancinha Jan 16, 2025
9114eb4
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 17, 2025
aa7911d
Update java
jesperancinha Jan 19, 2025
53df123
Merge branch 'update-java' of github.com:jesperancinha/vma-archiver i…
jesperancinha Jan 19, 2025
c3e2d2a
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 19, 2025
6b1a142
Update pom.xml
jesperancinha Jan 19, 2025
d2b7e04
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 19, 2025
224f533
Merge branch 'master' into update-java
jesperancinha Jan 19, 2025
9a2ac38
Merge remote-tracking branch 'origin/master' into update-java
jesperancinha Jan 19, 2025
7e36122
Merge branch 'master' into update-java
jesperancinha Jan 19, 2025
c52852e
Merge branch 'master' into update-java
jesperancinha Jan 23, 2025
a5ce777
bash to sh
jesperancinha Jan 23, 2025
87cde19
bash to sh
jesperancinha Jan 23, 2025
f29f8d1
bash to sh
jesperancinha Jan 23, 2025
845f125
Maybe with nc
jesperancinha Jan 23, 2025
2dba191
Fixup for all health checks
jesperancinha Jan 23, 2025
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
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ jobs:
- checkout

- run:
name: Install SDK 20
command: wget https://download.java.net/java/GA/jdk20.0.1/b4887098932d415489976708ad6d1a4b/9/GPL/openjdk-20.0.1_linux-x64_bin.tar.gz &&
tar xvf openjdk-20.0.1_linux-x64_bin.tar.gz &&
sudo mv jdk-20*/ /opt/jdk20 &&
export JAVA_HOME=/opt/jdk20 &&
name: Install SDK 21
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 &&
tar -xvf OpenJDK21U-jdk_x64_linux_hotspot_21.0.5_11.tar.gz &&
sudo mv jdk-21*/ /opt/jdk21 &&
export JAVA_HOME=/opt/jdk21 &&
export PATH=$PATH:$JAVA_HOME/bin

- run:
name: Build
command: export JAVA_HOME=/opt/jdk20 &&
command: export JAVA_HOME=/opt/jdk21 &&
export PATH=$PATH:$JAVA_HOME/bin &&
mvn -B -DskipTests clean package

- run:
name: Test
command: export JAVA_HOME=/opt/jdk20 &&
command: export JAVA_HOME=/opt/jdk21 &&
export PATH=$PATH:$JAVA_HOME/bin &&
mvn test

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/vma-archiver-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'
- name: Locust
run: make install
Expand All @@ -40,10 +40,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'
- name: Locust
run: make install
Expand All @@ -69,10 +69,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'
- name: Locust
run: make install
Expand All @@ -99,10 +99,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'
- name: Locust
run: make install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vma-archiver-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'

- name: Build and Test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vma-archiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'adopt'
- name: Build and Test
run: mvn clean install jacoco:prepare-agent package jacoco:report
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
SHELL := /bin/bash
GITHUB_RUN_ID ?=123
include Makefile.mk

b: build-npm build-maven
buildw:
Expand Down
5 changes: 5 additions & 0 deletions Makefile.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SHELL := /bin/bash
GITHUB_RUN_ID ?=123

b:
mvn clean install
8 changes: 4 additions & 4 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ services:
reservations:
memory: 400M
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8081' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8081 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down Expand Up @@ -195,7 +195,7 @@ services:
reservations:
memory: 400M
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8082' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8082 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down Expand Up @@ -229,7 +229,7 @@ services:
reservations:
memory: 400M
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8083' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8083 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down Expand Up @@ -263,7 +263,7 @@ services:
reservations:
memory: 400M
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8084' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8084 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ services:
jofisaes-vma-control:
condition: service_healthy
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8081' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8081 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down Expand Up @@ -180,7 +180,7 @@ services:
jofisaes-vma-control:
condition: service_healthy
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8082' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8082 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down Expand Up @@ -209,7 +209,7 @@ services:
jofisaes-vma-control:
condition: service_healthy
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8083' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8083 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down Expand Up @@ -238,7 +238,7 @@ services:
jofisaes-vma-control:
condition: service_healthy
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8084' || exit 1
test: ["CMD", "sh", "-c", "(timeout 10s nc -z 127.0.0.1 8084 || [ $? -eq 4 ]) && exit 0 || exit 1"]
interval: 30s
timeout: 20m
retries: 40
Expand Down
2 changes: 1 addition & 1 deletion docker-images/nginx/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

sed -i 's/${VMA_BACKEND_1}/'"$(getent hosts jofisaes-vma-backend-img-1 | cut -d' ' -f1)"'/g' /etc/nginx/nginx.conf
sed -i 's/${VMA_BACKEND_2}/'"$(getent hosts jofisaes-vma-backend-img-2 | cut -d' ' -f1)"'/g' /etc/nginx/nginx.conf
Expand Down
2 changes: 1 addition & 1 deletion docker-images/psql/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

cd /var/lib/postgresql || exit

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<name>VMA Parent</name>

<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
Expand All @@ -31,7 +31,7 @@
<springdoc-openapi-starter.version>2.8.3</springdoc-openapi-starter.version>

<omni-coveragereporter-maven-plugin.version>0.4.4</omni-coveragereporter-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
</properties>
<modules>
<module>vma-play</module>
Expand Down
1 change: 1 addition & 0 deletions vma-play/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../Makefile.mk
2 changes: 1 addition & 1 deletion vma-service-backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:17-slim-buster
FROM eclipse-temurin:21-alpine

WORKDIR /root

Expand Down
2 changes: 1 addition & 1 deletion vma-service-backend/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

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
2 changes: 1 addition & 1 deletion vma-service-event-listener/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:17-slim-buster
FROM eclipse-temurin:21-alpine

WORKDIR /root

Expand Down
2 changes: 1 addition & 1 deletion vma-service-event-listener/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

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
2 changes: 1 addition & 1 deletion vma-service-websockets/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:17-slim-buster
FROM eclipse-temurin:21-alpine

WORKDIR /root

Expand Down
2 changes: 1 addition & 1 deletion vma-service-websockets/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

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
Loading