Mercurial > hg > orthanc-tests
comparison 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 |
comparison
equal
deleted
inserted
replaced
598:b9ae7c59fee9 | 599:f3475c3e42e5 |
---|---|
13 VERBOSE_ENABLED: "true" | 13 VERBOSE_ENABLED: "true" |
14 PG_HOST: "pg-15" | 14 PG_HOST: "pg-15" |
15 PG_LOCK: "false" | 15 PG_LOCK: "false" |
16 PG_INDEX_ENABLED: "true" | 16 PG_INDEX_ENABLED: "true" |
17 AC_AUTHENTICATION_ENABLED: "false" | 17 AC_AUTHENTICATION_ENABLED: "false" |
18 | 18 |
19 # Orthanc previous version | |
20 orthanc-pg-15-61: | |
21 image: osimis/orthanc:24.1.2 | |
22 container_name: orthanc-pg-15-61 | |
23 depends_on: [pg-15] | |
24 restart: unless-stopped | |
25 ports: ["8052:8042"] | |
26 volumes: ["storage-orthanc-pg-15:/var/lib/orthanc/db"] | |
27 environment: | |
28 VERBOSE_ENABLED: "true" | |
29 PG_HOST: "pg-15" | |
30 PG_LOCK: "false" | |
31 PG_INDEX_ENABLED: "true" | |
32 AC_AUTHENTICATION_ENABLED: "false" | |
33 | |
34 # Orthanc previous version to run the integration tests | |
35 orthanc-pg-15-61-for-integ-tests: | |
36 image: osimis/orthanc:24.1.2 | |
37 container_name: orthanc-pg-15-61-for-integ-tests | |
38 depends_on: [pg-15] | |
39 restart: unless-stopped | |
40 ports: ["8053:8042"] | |
41 volumes: | |
42 - "storage-orthanc-pg-15:/var/lib/orthanc/db" | |
43 - "./orthanc-for-integ-tests.json:/etc/orthanc/orthanc.json" | |
44 - ./docker-entrypoint-integ-tests.sh:/docker-entrypoint-integ-tests.sh | |
45 entrypoint: /docker-entrypoint-integ-tests.sh | |
46 | |
47 environment: | |
48 VERBOSE_ENABLED: "true" | |
49 PG_HOST: "pg-15" | |
50 PG_LOCK: "false" | |
51 PG_INDEX_ENABLED: "true" | |
52 AC_AUTHENTICATION_ENABLED: "false" | |
53 | |
54 orthanc-tests: | |
55 image: jodogne/orthanc-tests | |
56 container_name: orthanc-tests | |
57 depends_on: | |
58 - orthanc-pg-15-61-for-integ-tests | |
59 volumes: | |
60 - ../../:/tests/orthanc-tests | |
61 - ./wait-for-it.sh:/scripts/wait-for-it.sh | |
62 - ./run-integ-tests-from-docker.sh:/scripts/run-integ-tests-from-docker.sh | |
63 entrypoint: /scripts/run-integ-tests-from-docker.sh | |
64 | |
19 # Orthanc latest version | 65 # Orthanc latest version |
20 orthanc-pg-15-under-tests: | 66 orthanc-pg-15-under-tests: |
21 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} | 67 image: ${ORTHANC_IMAGE_UNDER_TESTS:-osimis/orthanc:latest} |
22 container_name: orthanc-pg-15-under-tests | 68 container_name: orthanc-pg-15-under-tests |
23 depends_on: [pg-15] | 69 depends_on: [pg-15] |
37 pg-15: | 83 pg-15: |
38 image: postgres:15 | 84 image: postgres:15 |
39 container_name: pg-15 | 85 container_name: pg-15 |
40 restart: unless-stopped | 86 restart: unless-stopped |
41 ports: ["5439:5432"] | 87 ports: ["5439:5432"] |
42 volumes: ["storage-pg-15:/var/lib/postgresql/data"] | 88 volumes: |
89 - "storage-pg-15:/var/lib/postgresql/data" | |
90 - "./downgrade.sh:/scripts/downgrade.sh" | |
91 - "./downgrade.sql:/scripts/downgrade.sql" | |
43 environment: | 92 environment: |
44 POSTGRES_HOST_AUTH_METHOD: "trust" | 93 POSTGRES_HOST_AUTH_METHOD: "trust" |
45 healthcheck: | 94 healthcheck: |
46 test: pg_isready -U postgres -d postgres | 95 test: pg_isready -U postgres -d postgres |
47 interval: 1s | 96 interval: 1s |