-
Notifications
You must be signed in to change notification settings - Fork 3
/
startup.sh
executable file
·25 lines (22 loc) · 1.46 KB
/
startup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
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 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 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 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 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 down -v
else
echo "Invalid option $1
Help:
init starts the docker containers and configures OpenHIM
up starts the docker containers
up-dev starts the docker containers with updated files.
down stops the docker containers
destroy shutdown the docker containers and deletes volumes
"
fi