Skip to content

Commit

Permalink
chore(#123): restore script to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Jun 13, 2024
1 parent d7760d8 commit a993ba4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@

if [ "$1" == "init" ]; then
# start up docker containers
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.openmrs.yml up -d --build
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml -f ./docker/docker-compose.mediator.yml up -d --build
elif [ "$1" == "up" ]; then
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml -f ./docker/docker-compose.openmrs.yml up -d
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml up -d
elif [ "$1" == "up-dev" ]; then
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.openmrs.yml up -d --build
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml -f ./docker/docker-compose.mediator.yml up -d --build
elif [ "$1" == "down" ]; then
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml -f ./docker/docker-compose.openmrs.yml stop
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml stop
elif [ "$1" == "destroy" ]; then
docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml -f ./docker/docker-compose.openmrs.yml down -v
else

docker compose -p chis-interop -f ./docker/docker-compose.yml -f ./docker/docker-compose.mediator.yml -f ./docker/docker-compose.cht-core.yml -f ./docker/docker-compose.cht-couchdb.yml down -v
else
echo "Invalid option $1
Help:
init starts the docker containers and configures OpenHIM
Expand Down

0 comments on commit a993ba4

Please sign in to comment.