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

Added dev option for isanteplus #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion packages/database-mysql/swarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ function initialize_package() {

(
# Deploy the MySQL service using the base compose file and optionally the dev file
docker::deploy_service "$STACK" "${COMPOSE_FILE_PATH}" "docker-compose.yml" "" "$mysql_dev_compose_filename"
if [ "${MYSQL_USE_LOCAL}" == "false" ]; then
docker::deploy_service "$STACK" "${COMPOSE_FILE_PATH}" "docker-compose.yml" "" "$mysql_dev_compose_filename"
fi
# docker::deploy_service "$STACK" "${COMPOSE_FILE_PATH}" "docker-compose.yml" "" "$mysql_dev_compose_filename"
) ||
{
log error "Failed to deploy package"
Expand Down
6 changes: 6 additions & 0 deletions packages/emr-isanteplus/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
isanteplus:
ports:
- target: 8080
published: 8090
mode: host
20 changes: 9 additions & 11 deletions packages/emr-isanteplus/swarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,22 @@ function import_sources() {
}

function initialize_package() {


# if [ "${MODE}" == "dev" ]; then
# log info "Running package in DEV mode"
# postgres_dev_compose_filename="docker-compose-postgres.dev.yml"
# hapi_fhir_dev_compose_filename="docker-compose.dev.yml"
# else
log info "Running package in PROD mode"
#fi
isanteplus_compose_dev_filename=""

if [ "${MODE}" == "dev" ]; then
log info "Running package in DEV mode"
isanteplus_compose_dev_filename="docker-compose.dev.yml"
else
log info "Running package in PROD mode"
fi

# if [ "${CLUSTERED_MODE}" == "true" ]; then
# postgres_cluster_compose_filename="docker-compose-postgres.cluster.yml"
# fi

(
#docker::deploy_service "$STACK" "${COMPOSE_FILE_PATH}" "docker-compose-mysql.yml"

docker::deploy_service "$STACK" "${COMPOSE_FILE_PATH}" "docker-compose.yml"
docker::deploy_service "$STACK" "${COMPOSE_FILE_PATH}" "docker-compose.yml" "${isanteplus_compose_dev_filename}"
) ||
{
log error "Failed to deploy package"
Expand Down
Loading