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

Cu 86bygzkm5 images placement for interoperability proxy identity #289

Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e6eb5ec
Update docker-compose files and package metadata
brett-onions Apr 17, 2024
4340b7e
Update Docker Compose files and package metadata
brett-onions Apr 18, 2024
6f3de82
Update job-scheduler-ofelia image and add JOB_SCHEDULER_OFELIA_IMAGE …
brett-onions Apr 18, 2024
57bf360
Update docker-compose.yml and package-metadata.json
brett-onions Apr 18, 2024
1cc4f69
Merge branch 'CU-86byc1w20_Make-imageplacement-configurable-in-metada…
brett-onions Apr 26, 2024
f9926e6
Merge branch 'CU-86byc1vyx_Make-imageplacement-configurable-in-metada…
brett-onions Apr 26, 2024
a5c5425
Merge branch 'CU-86byc1wgy_Make-imageplacement-configurable-in-metada…
brett-onions Apr 26, 2024
bf78b83
Merge branch 'CU-86byc1w3v_Make-imageplacement-configurable-in-metada…
brett-onions Apr 26, 2024
e4e4780
chore: update OPENHIM_CONSOLE_IMAGE to v1.18.2 in package-metadata.json
brett-onions May 8, 2024
872b626
Merge branch 'main' into CU-86bygzkm5_Images-Placement-for-Interopera…
brett-onions May 8, 2024
072e671
responding to comments
brett-onions May 8, 2024
6bb3cb1
Merge branch 'main' into CU-86bygzkm5_Images-Placement-for-Interopera…
drizzentic May 8, 2024
918c7f9
fix breaking test
bradsawadye May 9, 2024
909cc9e
Clean
bradsawadye May 9, 2024
e422039
Merge branch 'main' into CU-86bygzkm5_Images-Placement-for-Interopera…
drizzentic May 14, 2024
3319148
Temporarily disable clustered mode for jempi as it is not working
bradsawadye May 15, 2024
cf9f7a7
Merge branch 'CU-86bygzkm5_Images-Placement-for-Interoperability-prox…
bradsawadye May 15, 2024
2c16701
Merge branch 'main' into CU-86bygzkm5_Images-Placement-for-Interopera…
bradsawadye May 15, 2024
21eacab
Jempi only runs in single mode ata the moment
bradsawadye May 15, 2024
c6539fb
Merge branch 'CU-86bygzkm5_Images-Placement-for-Interoperability-prox…
bradsawadye May 15, 2024
98d6e13
Remove repeating of test
bradsawadye May 15, 2024
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"

services:
keycloak-postgres-1:
Expand All @@ -7,10 +7,10 @@ services:
deploy:
placement:
constraints:
- "node.labels.name==node-1"
- "node.labels.name==${KEYCLOAK_POSTGRES_1}"

keycloak-postgres-2:
image: bitnami/postgresql-repmgr:14
image: ${POSTGRES_IMAGE}
environment:
POSTGRESQL_PASSWORD: ${KC_POSTGRESQL_PASSWORD}
POSTGRESQL_USERNAME: ${KC_POSTGRESQL_USERNAME}
Expand All @@ -22,12 +22,12 @@ services:
REPMGR_PRIMARY_HOST: ${KC_REPMGR_PRIMARY_HOST}
REPMGR_PARTNER_NODES: ${KC_REPMGR_PARTNER_NODES}
volumes:
- 'keycloak-postgres-2-data:/bitnami/postgresql'
- "keycloak-postgres-2-data:/bitnami/postgresql"
deploy:
placement:
constraints:
- "node.labels.name==node-2"
replicas: 1
- "node.labels.name==${KEYCLOAK_POSTGRES_2}"
replicas: ${POSTGRES_REPLICAS}
resources:
limits:
cpus: ${KC_POSTGRES_CPU_LIMIT}
Expand All @@ -39,9 +39,8 @@ services:
default:
keycloak_backup_net: {}


keycloak-postgres-3:
image: bitnami/postgresql-repmgr:14
image: ${POSTGRES_IMAGE}
environment:
POSTGRESQL_PASSWORD: ${KC_POSTGRESQL_PASSWORD}
POSTGRESQL_USERNAME: ${KC_POSTGRESQL_USERNAME}
Expand All @@ -53,12 +52,12 @@ services:
REPMGR_PRIMARY_HOST: ${KC_REPMGR_PRIMARY_HOST}
REPMGR_PARTNER_NODES: ${KC_REPMGR_PARTNER_NODES}
volumes:
- 'keycloak-postgres-3-data:/bitnami/postgresql'
- "keycloak-postgres-3-data:/bitnami/postgresql"
deploy:
placement:
constraints:
- "node.labels.name==node-3"
replicas: 1
- "node.labels.name==${KEYCLOAK_POSTGRES_3}"
replicas: ${POSTGRES_REPLICAS}
resources:
limits:
cpus: ${KC_POSTGRES_CPU_LIMIT}
Expand Down
4 changes: 2 additions & 2 deletions identity-access-manager-keycloak/docker-compose-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
keycloak-postgres-1:
image: bitnami/postgresql-repmgr:14
image: ${POSTGRES_IMAGE}
environment:
POSTGRESQL_PASSWORD: ${KC_POSTGRESQL_PASSWORD}
POSTGRESQL_USERNAME: ${KC_POSTGRESQL_USERNAME}
Expand All @@ -17,7 +17,7 @@ services:
volumes:
- "keycloak-postgres-1-data:/bitnami/postgresql"
deploy:
replicas: 1
replicas: ${POSTGRES_REPLICAS}
resources:
limits:
cpus: ${KC_POSTGRES_CPU_LIMIT}
Expand Down
8 changes: 4 additions & 4 deletions identity-access-manager-keycloak/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: '3.9'
version: "3.9"

services:
identity-access-manager-keycloak:
image: keycloak/keycloak:20.0
image: ${KEYCLOAK_IMAGE}
command:
[
"start",
"--proxy=edge",
"--hostname-url=${KC_FRONTEND_URL}",
"--import-realm"
"--import-realm",
]
hostname: identity-access-manager-keycloak
healthcheck:
Expand Down Expand Up @@ -44,7 +44,7 @@ services:
KC_OPENHIM_ROOT_URL: ${KC_OPENHIM_ROOT_URL}
deploy:
placement:
max_replicas_per_node: 1
max_replicas_per_node: ${KEYCLOAK_MAX_REPLICAS_PER_NODE}
networks:
reverse-proxy:
public:
Expand Down
8 changes: 8 additions & 0 deletions identity-access-manager-keycloak/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
"version": "0.0.1",
"dependencies": ["database-postgres"],
"environmentVariables": {
"POSTGRES_IMAGE": "bitnami/postgresql-repmgr:14",
"KEYCLOAK_POSTGRES_1": "node-1",
"KEYCLOAK_POSTGRES_2": "node-2",
"KEYCLOAK_POSTGRES_3": "node-3",
"POSTGRES_REPLICAS": "1",
"KEYCLOAK_IMAGE": "keycloak/keycloak:20.0",
"KEYCLOAK_REPLICAS": "1",
"KEYCLOAK_MAX_REPLICAS_PER_NODE": "1",
"KEYCLOAK_ADMIN": "admin",
"KEYCLOAK_ADMIN_PASSWORD": "dev_password_only",
"KC_FRONTEND_URL": "http://localhost:9088",
Expand Down
26 changes: 13 additions & 13 deletions interoperability-layer-openhim/docker-compose-mongo.cluster.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
version: '3.9'
version: "3.9"

services:
mongo-1:
command: ['--replSet', 'mongo-set', '--wiredTigerCacheSizeGB', '0.5']
command: ["--replSet", "mongo-set", "--wiredTigerCacheSizeGB", "0.5"]
deploy:
placement:
constraints:
- "node.labels.name==node-1"
- "node.labels.name==${MONGO_1_PLACEMENT}"

mongo-2:
image: mongo:4.2
image: ${MONGO_IMAGE}
volumes:
- 'openhim-mongo-02:/data/db'
- 'openhim-mongo-02-config:/data/configdb'
command: ['--replSet', 'mongo-set', '--wiredTigerCacheSizeGB', '0.5']
- "openhim-mongo-02:/data/db"
- "openhim-mongo-02-config:/data/configdb"
command: ["--replSet", "mongo-set", "--wiredTigerCacheSizeGB", "0.5"]
deploy:
placement:
constraints:
- "node.labels.name==node-2"
- "node.labels.name==${MONGO_2_PLACEMENT}"
replicas: 1
resources:
limits:
Expand All @@ -32,15 +32,15 @@ services:
mongo_backup_net:

mongo-3:
image: mongo:4.2
image: ${MONGO_IMAGE}
volumes:
- 'openhim-mongo-03:/data/db'
- 'openhim-mongo-03-config:/data/configdb'
command: ['--replSet', 'mongo-set', '--wiredTigerCacheSizeGB', '0.5']
- "openhim-mongo-03:/data/db"
- "openhim-mongo-03-config:/data/configdb"
command: ["--replSet", "mongo-set", "--wiredTigerCacheSizeGB", "0.5"]
deploy:
placement:
constraints:
- "node.labels.name==node-3"
- "node.labels.name==${MONGO_3_PLACEMENT}"
replicas: 1
resources:
limits:
Expand Down
4 changes: 2 additions & 2 deletions interoperability-layer-openhim/docker-compose-mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: "3.9"

services:
mongo-1:
image: mongo:4.2
command: ['--replSet', 'mongo-set', '--wiredTigerCacheSizeGB', '0.5']
image: ${MONGO_IMAGE}
command: ["--replSet", "mongo-set", "--wiredTigerCacheSizeGB", "0.5"]
volumes:
- "openhim-mongo-01:/data/db"
- "openhim-mongo-01-config:/data/configdb"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '3.9'
version: "3.9"

services:
await-helper:
image: jembi/await-helper:1.0.1
image: ${AWAIT_HELPER_IMAGE}
deploy:
replicas: 1
restart_policy:
condition: none
command: '-k http://mongo-1:27017'
command: "-k http://mongo-1:27017"
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '3.9'
version: "3.9"

services:
await-helper:
image: jembi/await-helper:1.0.1
image: ${AWAIT_HELPER_IMAGE}
deploy:
replicas: 1
restart_policy:
condition: none
command: '-k https://openhim-core:8080/heartbeat'
command: "-k https://openhim-core:8080/heartbeat"
8 changes: 4 additions & 4 deletions interoperability-layer-openhim/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.9"

services:
openhim-core:
image: jembi/openhim-core:v8.4.0
image: ${OPENHIM_CORE_IMAGE}
networks:
kafka:
hapi-fhir:
Expand All @@ -25,7 +25,7 @@ services:
deploy:
replicas: ${OPENHIM_CORE_INSTANCES}
placement:
max_replicas_per_node: 1
max_replicas_per_node: ${OPENHIM_CORE_MAX_REPLICAS_PER_NODE}
resources:
limits:
cpus: ${OPENHIM_CPU_LIMIT}
Expand All @@ -39,7 +39,7 @@ services:
- prometheus-port=8080

openhim-console:
image: ${OPENHIM_CONSOLE_VERSION}
image: ${OPENHIM_CONSOLE_IMAGE}
brett-onions marked this conversation as resolved.
Show resolved Hide resolved
environment:
OPENHIM_CORE_MEDIATOR_HOSTNAME: ${OPENHIM_CORE_MEDIATOR_HOSTNAME}
OPENHIM_MEDIATOR_API_PORT: ${OPENHIM_MEDIATOR_API_PORT}
Expand All @@ -56,7 +56,7 @@ services:
deploy:
replicas: ${OPENHIM_CONSOLE_INSTANCES}
placement:
max_replicas_per_node: 1
max_replicas_per_node: ${OPENHIM_CONSOLE_MAX_REPLICAS_PER_NODE}
resources:
limits:
cpus: ${OPENHIM_CONSOLE_CPU_LIMIT}
Expand Down
9 changes: 9 additions & 0 deletions interoperability-layer-openhim/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,18 @@
"type": "infrastructure",
"dependencies": [],
"environmentVariables": {
"OPENHIM_CORE_IMAGE": "jembi/openhim-core:v8.4.0",
"OPENHIM_CONSOLE_IMAGE": "jembi/openhim-console:v1.19.0",
brett-onions marked this conversation as resolved.
Show resolved Hide resolved
"MONGO_IMAGE": "mongo:4.2",
"AWAIT_HELPER_IMAGE": "jembi/await-helper:1.0.1",
"MONGO_1_PLACEMENT": "node-1",
"MONGO_2_PLACEMENT": "node-2",
"MONGO_3_PLACEMENT": "node-3",
"MONGO_SET_COUNT": "1",
"OPENHIM_CORE_INSTANCES": "1",
"OPENHIM_CORE_MAX_REPLICAS_PER_NODE": "1",
"OPENHIM_CONSOLE_INSTANCES": "1",
"OPENHIM_CONSOLE_MAX_REPLICAS_PER_NODE": "1",
"OPENHIM_CORE_MEDIATOR_HOSTNAME": "localhost",
"OPENHIM_MEDIATOR_API_PORT": "8080",
"OPENHIM_CPU_LIMIT": "0",
Expand Down
6 changes: 3 additions & 3 deletions job-scheduler-ofelia/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
job-scheduler-ofelia:
image: mcuadros/ofelia:v0.3.6
image: ${JOB_SCHEDULER_OFELIA_IMAGE}
command: daemon --config=/tmp/config.ini
configs:
- target: /tmp/config.ini
Expand All @@ -14,5 +14,5 @@ configs:
ofelia-config.ini:
file: ./config.ini
name: ofelia-config.ini-${ofelia_config_ini_DIGEST:?err}
labels:
labels:
name: ofelia
1 change: 1 addition & 0 deletions job-scheduler-ofelia/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"version": "0.0.1",
"dependencies": [],
"environmentVariables": {
"JOB_SCHEDULER_OFELIA_IMAGE": "mcuadros/ofelia:v0.3.6",
"RENEWAL_EMAIL": "[email protected]",
"STAGING": "true",
"DOMAIN_NAME": "localhost",
Expand Down
4 changes: 2 additions & 2 deletions openhim-mapping-mediator/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.9'
version: "3.9"

services:
openhim-mapping-mediator:
image: jembi/openhim-mediator-mapping:v3.3.0
image: ${OPENHIM_MAPPING_MEDIATOR_IMAGE}
environment:
OPENHIM_REGISTER: ${OPENHIM_REGISTER}
MONGO_URL: ${OPENHIM_MONGO_URL}
Expand Down
1 change: 1 addition & 0 deletions openhim-mapping-mediator/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"version": "0.0.1",
"dependencies": ["interoperability-layer-openhim"],
"environmentVariables": {
"OPENHIM_MAPPING_MEDIATOR_IMAGE": "jembi/openhim-mediator-mapping:v3.3.0",
"OPENHIM_URL": "https://openhim-core:8080",
"OPENHIM_USERNAME": "[email protected]",
"OPENHIM_MONGO_URL": "mongodb://mongo-1:27017/openhim",
Expand Down
Loading