Skip to content

Commit 900acf7

Browse files
committed
Rm 3831 use cdoc2 liquibase image
1 parent b31eae3 commit 900acf7

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed

test/config/server/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CDOC2_SERVERS_TAG=v1.4.1-rc.1-74cbc827e3cf08c2f4a51711a2072b6344f9aee1

test/config/server/docker-compose.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,31 @@
1-
version: '3.4'
2-
31
services:
42
cdoc2-postgres:
53
container_name: cdoc2-postgres-bats
6-
# Instruction to build local cdoc2-db: https://github.com/open-eid/cdoc2-capsule-server/server-db/README.md
7-
image: cdoc2-db:version3
4+
image: postgres
5+
healthcheck:
6+
test: [ "CMD-SHELL", "pg_isready -d postgres -U postgres" ]
7+
interval: 5s
8+
timeout: 10s
9+
retries: 120
810
restart: always
911
ports:
1012
- "7432:5432"
1113
environment:
1214
POSTGRES_DB: postgres
1315
POSTGRES_PASSWORD: postgres
14-
PGDATA: postgres
16+
POSTGRES_USER: postgres
17+
18+
db-init:
19+
image: ghcr.io/open-eid/cdoc2-server-liquibase:${CDOC2_SERVERS_TAG}
20+
depends_on:
21+
cdoc2-postgres:
22+
condition: service_healthy
23+
command: --url jdbc:postgresql://cdoc2-postgres/postgres --username=postgres --password=postgres --defaultsFile=liquibase.properties update
24+
1525

1626
cdoc2-put-server:
1727
container_name: cdoc2-put-server-bats
18-
image: ghcr.io/open-eid/cdoc2-put-server:v1.4.0-docker.0-7b16600584da49d0a504f7cdaa1066ba41f2b20e
28+
image: ghcr.io/open-eid/cdoc2-put-server:${CDOC2_SERVERS_TAG}
1929
ports:
2030
- "8443:8443"
2131
# monitoring
@@ -34,7 +44,9 @@ services:
3444
# - JAVA_OPTS=-Djavax.net.debug=ssl:handshake:verbose:keymanager:trustmanager -Djava.security.debug=access:stack
3545
depends_on:
3646
cdoc2-postgres:
37-
condition: service_started
47+
condition: service_healthy
48+
db-init:
49+
condition: service_completed_successfully
3850
# curl is not installed on image, and following healthcheck will fail
3951
# healthcheck:
4052
# test: curl -k --silent --fail --connect-timeout 1 https://localhost:18443/actuator/health|grep UP
@@ -46,7 +58,7 @@ services:
4658

4759
cdoc2-get-server:
4860
container_name: cdoc2-get-server-bats
49-
image: ghcr.io/open-eid/cdoc2-get-server:v1.4.0-docker.0-7b16600584da49d0a504f7cdaa1066ba41f2b20e
61+
image: ghcr.io/open-eid/cdoc2-get-server:${CDOC2_SERVERS_TAG}
5062
ports:
5163
- "8444:8444"
5264
# monitoring
@@ -63,7 +75,9 @@ services:
6375
# - JAVA_OPTS=-Djavax.net.debug=ssl:handshake:verbose:keymanager:trustmanager -Djava.security.debug=access:stack
6476
depends_on:
6577
cdoc2-postgres:
66-
condition: service_started
78+
condition: service_healthy
79+
db-init:
80+
condition: service_completed_successfully
6781
mem_limit: 1g
6882

6983

test/config/server/serverconf/application-get-server.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Configuration file for running from cdoc2-capsule-server directory, see README.md
2-
debug=true
2+
#debug=true
3+
4+
#Enable when running on Java21 to improve througput by ~20%
5+
spring.threads.virtual.enabled=true
6+
37
# The format used for the keystore. It could be set to JKS in case it is a JKS file
48
server.ssl.key-store-type=PKCS12
59
# The path to the keystore containing the certificate

test/config/server/serverconf/application-put-server.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#Enable when running on Java21 to improve througput by ~20%
2+
spring.threads.virtual.enabled=true
3+
14
# Configuration file for running from put-server directory, see README.md
25
# The format used for the keystore. It could be set to JKS in case it is a JKS file
36
server.ssl.key-store-type=PKCS12

0 commit comments

Comments
 (0)