Skip to content

Commit

Permalink
Merge pull request #237 from jembi/fix-new-openhim-console-dockerfile
Browse files Browse the repository at this point in the history
feat: Remove envsubst logic from openhim-console
  • Loading branch information
michaelloosen committed May 25, 2023
2 parents a27c9ad + b03246c commit c3dd152
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
12 changes: 1 addition & 11 deletions interoperability-layer-openhim/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
memory: ${OPENHIM_MEMORY_RESERVE}

openhim-console:
image: jembi/openhim-console:v1.16.2
image: jembi/openhim-console:v1.17.0
environment:
OPENHIM_CORE_MEDIATOR_HOSTNAME: ${OPENHIM_CORE_MEDIATOR_HOSTNAME}
OPENHIM_MEDIATOR_API_PORT: ${OPENHIM_MEDIATOR_API_PORT}
Expand All @@ -43,9 +43,6 @@ services:
keycloak:
public:
default:
configs:
- source: console-default.json
target: /usr/share/nginx/html/config/default.json
deploy:
replicas: ${OPENHIM_CONSOLE_INSTANCES}
placement:
Expand All @@ -58,13 +55,6 @@ services:
cpus: ${OPENHIM_CONSOLE_CPU_RESERVE}
memory: ${OPENHIM_CONSOLE_MEMORY_RESERVE}

configs:
console-default.json:
file: ./importer/volume/default.json
name: console.config-${console_config_DIGEST:?err}
labels:
name: openhim

networks:
reverse-proxy:
name: reverse-proxy_public
Expand Down
19 changes: 0 additions & 19 deletions interoperability-layer-openhim/importer/volume/default-env.json

This file was deleted.

7 changes: 0 additions & 7 deletions interoperability-layer-openhim/swarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ function import_sources() {
source "${UTILS_PATH}/log.sh"
}

function prepare_console_config() {
# Replace env vars
envsubst <"${COMPOSE_FILE_PATH}/importer/volume/default-env.json" >"${COMPOSE_FILE_PATH}/importer/volume/default.json"
}

function initialize_package() {
local mongo_cluster_compose_filename=""
local mongo_dev_compose_filename=""
Expand All @@ -60,8 +55,6 @@ function initialize_package() {
try "${COMPOSE_FILE_PATH}/initiate-replica-set.sh $STACK" throw "Fatal: Initiate Mongo replica set failed"
fi

prepare_console_config

docker::deploy_service $STACK "${COMPOSE_FILE_PATH}" "docker-compose.yml" "$openhim_dev_compose_filename"

log info "Waiting OpenHIM Core to be running and responding"
Expand Down

0 comments on commit c3dd152

Please sign in to comment.