Mercurial > hg > orthanc-tests
annotate NewTests/PostgresUpgrades/docker-compose.yml @ 599:f3475c3e42e5
run integ tests after a PG downgrade
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 18 Jan 2024 17:46:54 +0100 |
parents | b1e1c7149a37 |
children | 3e15e950c462 |
rev | line source |
---|---|
596 | 1 version: "3" |
2 services: | |
3 | |
4 # Orthanc with PG plugin v2 | |
5 orthanc-pg-15-2: | |
6 image: osimis/orthanc:18.4.3 | |
7 container_name: orthanc-pg-15-2 | |
8 depends_on: [pg-15] | |
9 restart: unless-stopped | |
10 ports: ["8049:8042"] | |
11 volumes: ["storage-orthanc-pg-15:/var/lib/orthanc/db"] | |
12 environment: | |
13 VERBOSE_ENABLED: "true" | |
14 PG_HOST: "pg-15" | |
15 PG_LOCK: "false" | |
16 PG_INDEX_ENABLED: "true" | |
17 AC_AUTHENTICATION_ENABLED: "false" | |
599
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
18 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
19 # Orthanc previous version |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
20 orthanc-pg-15-61: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
21 image: osimis/orthanc:24.1.2 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
22 container_name: orthanc-pg-15-61 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
23 depends_on: [pg-15] |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
24 restart: unless-stopped |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
25 ports: ["8052:8042"] |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
26 volumes: ["storage-orthanc-pg-15:/var/lib/orthanc/db"] |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
27 environment: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
28 VERBOSE_ENABLED: "true" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
29 PG_HOST: "pg-15" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
30 PG_LOCK: "false" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
31 PG_INDEX_ENABLED: "true" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
32 AC_AUTHENTICATION_ENABLED: "false" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
33 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
34 # Orthanc previous version to run the integration tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
35 orthanc-pg-15-61-for-integ-tests: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
36 image: osimis/orthanc:24.1.2 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
37 container_name: orthanc-pg-15-61-for-integ-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
38 depends_on: [pg-15] |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
39 restart: unless-stopped |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
40 ports: ["8053:8042"] |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
41 volumes: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
42 - "storage-orthanc-pg-15:/var/lib/orthanc/db" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
43 - "./orthanc-for-integ-tests.json:/etc/orthanc/orthanc.json" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
44 - ./docker-entrypoint-integ-tests.sh:/docker-entrypoint-integ-tests.sh |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
45 entrypoint: /docker-entrypoint-integ-tests.sh |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
46 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
47 environment: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
48 VERBOSE_ENABLED: "true" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
49 PG_HOST: "pg-15" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
50 PG_LOCK: "false" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
51 PG_INDEX_ENABLED: "true" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
52 AC_AUTHENTICATION_ENABLED: "false" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
53 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
54 orthanc-tests: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
55 image: jodogne/orthanc-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
56 container_name: orthanc-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
57 depends_on: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
58 - orthanc-pg-15-61-for-integ-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
59 volumes: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
60 - ../../:/tests/orthanc-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
61 - ./wait-for-it.sh:/scripts/wait-for-it.sh |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
62 - ./run-integ-tests-from-docker.sh:/scripts/run-integ-tests-from-docker.sh |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
63 entrypoint: /scripts/run-integ-tests-from-docker.sh |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
64 |
596 | 65 # Orthanc latest version |
66 orthanc-pg-15-under-tests: | |
67 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} | |
68 container_name: orthanc-pg-15-under-tests | |
69 depends_on: [pg-15] | |
70 restart: unless-stopped | |
71 ports: ["8050:8042"] | |
72 volumes: ["storage-orthanc-pg-15:/var/lib/orthanc/db"] | |
73 environment: | |
74 VERBOSE_ENABLED: "true" | |
75 ORTHANC__AUTHENTICATION_ENABLED: "false" | |
76 ORTHANC__POSTGRESQL: | | |
77 { | |
78 "Host": "pg-15", | |
79 "TransactionMode": "READ COMMITTED" | |
80 } | |
81 | |
82 | |
83 pg-15: | |
84 image: postgres:15 | |
85 container_name: pg-15 | |
86 restart: unless-stopped | |
87 ports: ["5439:5432"] | |
599
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
88 volumes: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
89 - "storage-pg-15:/var/lib/postgresql/data" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
90 - "./downgrade.sh:/scripts/downgrade.sh" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
91 - "./downgrade.sql:/scripts/downgrade.sql" |
596 | 92 environment: |
93 POSTGRES_HOST_AUTH_METHOD: "trust" | |
94 healthcheck: | |
95 test: pg_isready -U postgres -d postgres | |
96 interval: 1s | |
97 timeout: 1s | |
98 retries: 10 | |
99 | |
100 | |
101 # Orthanc latest version | |
102 orthanc-pg-9-under-tests: | |
103 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} | |
104 container_name: orthanc-pg-9-under-tests | |
105 depends_on: [pg-9] | |
106 restart: unless-stopped | |
107 ports: ["8051:8042"] | |
108 volumes: ["storage-orthanc-pg-9:/var/lib/orthanc/db"] | |
109 environment: | |
110 VERBOSE_ENABLED: "true" | |
111 ORTHANC__AUTHENTICATION_ENABLED: "false" | |
112 ORTHANC__POSTGRESQL: | | |
113 { | |
114 "Host": "pg-9", | |
115 "TransactionMode": "READ COMMITTED" | |
116 } | |
117 | |
118 | |
119 pg-9: | |
120 image: postgres:9.5 | |
121 container_name: pg-9 | |
122 restart: unless-stopped | |
123 ports: ["5440:5432"] | |
124 volumes: ["storage-pg-9:/var/lib/postgresql/data"] | |
125 environment: | |
126 POSTGRES_HOST_AUTH_METHOD: "trust" | |
127 healthcheck: | |
128 test: pg_isready -U postgres -d postgres | |
129 interval: 1s | |
130 timeout: 1s | |
131 retries: 10 | |
132 | |
133 volumes: | |
134 storage-orthanc-pg-15: | |
135 storage-pg-15: | |
136 storage-orthanc-pg-9: | |
137 storage-pg-9: |