Mercurial > hg > orthanc-tests
annotate NewTests/PostgresUpgrades/docker-compose.yml @ 612:575aa420f866
fix worklist tests for python2
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 01 Feb 2024 09:41:57 +0100 |
parents | 3e15e950c462 |
children | a5882a40ccb6 |
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" |
601
3e15e950c462
new transfer tests in the concurrency section
Alain Mazy <am@osimis.io>
parents:
599
diff
changeset
|
29 ORTHANC__POSTGRESQL__HOST: "pg-15" |
3e15e950c462
new transfer tests in the concurrency section
Alain Mazy <am@osimis.io>
parents:
599
diff
changeset
|
30 ORTHANC__AUTHENTICATION_ENABLED: "false" |
599
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
31 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
32 # 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
|
33 orthanc-pg-15-61-for-integ-tests: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
34 image: osimis/orthanc:24.1.2 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
35 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
|
36 depends_on: [pg-15] |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
37 restart: unless-stopped |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
38 ports: ["8053:8042"] |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
39 volumes: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
40 - "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
|
41 - "./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
|
42 - ./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
|
43 entrypoint: /docker-entrypoint-integ-tests.sh |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
44 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
45 environment: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
46 VERBOSE_ENABLED: "true" |
601
3e15e950c462
new transfer tests in the concurrency section
Alain Mazy <am@osimis.io>
parents:
599
diff
changeset
|
47 ORTHANC__POSTGRESQL__HOST: "pg-15" |
3e15e950c462
new transfer tests in the concurrency section
Alain Mazy <am@osimis.io>
parents:
599
diff
changeset
|
48 ORTHANC__AUTHENTICATION_ENABLED: "false" |
599
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
49 |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
50 orthanc-tests: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
51 image: jodogne/orthanc-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
52 container_name: orthanc-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
53 depends_on: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
54 - orthanc-pg-15-61-for-integ-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
55 volumes: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
56 - ../../:/tests/orthanc-tests |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
57 - ./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
|
58 - ./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
|
59 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
|
60 |
596 | 61 # Orthanc latest version |
62 orthanc-pg-15-under-tests: | |
63 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} | |
64 container_name: orthanc-pg-15-under-tests | |
65 depends_on: [pg-15] | |
66 restart: unless-stopped | |
67 ports: ["8050:8042"] | |
68 volumes: ["storage-orthanc-pg-15:/var/lib/orthanc/db"] | |
69 environment: | |
70 VERBOSE_ENABLED: "true" | |
71 ORTHANC__POSTGRESQL: | | |
72 { | |
73 "Host": "pg-15", | |
74 "TransactionMode": "READ COMMITTED" | |
75 } | |
601
3e15e950c462
new transfer tests in the concurrency section
Alain Mazy <am@osimis.io>
parents:
599
diff
changeset
|
76 ORTHANC__AUTHENTICATION_ENABLED: "false" |
596 | 77 |
78 | |
79 pg-15: | |
80 image: postgres:15 | |
81 container_name: pg-15 | |
82 restart: unless-stopped | |
599
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
83 volumes: |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
84 - "storage-pg-15:/var/lib/postgresql/data" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
85 - "./downgrade.sh:/scripts/downgrade.sh" |
f3475c3e42e5
run integ tests after a PG downgrade
Alain Mazy <am@osimis.io>
parents:
596
diff
changeset
|
86 - "./downgrade.sql:/scripts/downgrade.sql" |
596 | 87 environment: |
88 POSTGRES_HOST_AUTH_METHOD: "trust" | |
89 healthcheck: | |
90 test: pg_isready -U postgres -d postgres | |
91 interval: 1s | |
92 timeout: 1s | |
93 retries: 10 | |
94 | |
95 | |
96 # Orthanc latest version | |
97 orthanc-pg-9-under-tests: | |
98 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} | |
99 container_name: orthanc-pg-9-under-tests | |
100 depends_on: [pg-9] | |
101 restart: unless-stopped | |
102 ports: ["8051:8042"] | |
103 volumes: ["storage-orthanc-pg-9:/var/lib/orthanc/db"] | |
104 environment: | |
105 VERBOSE_ENABLED: "true" | |
106 ORTHANC__POSTGRESQL: | | |
107 { | |
108 "Host": "pg-9", | |
109 "TransactionMode": "READ COMMITTED" | |
110 } | |
601
3e15e950c462
new transfer tests in the concurrency section
Alain Mazy <am@osimis.io>
parents:
599
diff
changeset
|
111 ORTHANC__AUTHENTICATION_ENABLED: "false" |
596 | 112 |
113 | |
114 pg-9: | |
115 image: postgres:9.5 | |
116 container_name: pg-9 | |
117 restart: unless-stopped | |
118 volumes: ["storage-pg-9:/var/lib/postgresql/data"] | |
119 environment: | |
120 POSTGRES_HOST_AUTH_METHOD: "trust" | |
121 healthcheck: | |
122 test: pg_isready -U postgres -d postgres | |
123 interval: 1s | |
124 timeout: 1s | |
125 retries: 10 | |
126 | |
127 volumes: | |
128 storage-orthanc-pg-15: | |
129 storage-pg-15: | |
130 storage-orthanc-pg-9: | |
131 storage-pg-9: |