File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 ./services create || true
2929 - name : Run Script
3030 run : |
31- ./services start && ./services stop
31+ ./services start test && ./services stop test
Original file line number Diff line number Diff line change 22#
33# Command Line Interface to start all services associated with the Getting-Started Tutorial
44#
5- # For this tutorial the commands are merely a convenience script to run docker-compose
6- #
5+ # For this tutorial the commands are merely a convenience script to run ${dockerCmd}#
76
87set -e
98
10- if (( $# != 1 )) ; then
11- echo " Illegal number of parameters"
9+ dockerCmd=" docker compose"
10+ if (( $# == 2 )) ; then
11+ dockerCmd=" docker-compose"
12+ fi
13+
14+ if (( $# < 1 )) ; then echo " Illegal number of parameters"
1215 echo " usage: services [create|start|stop]"
1316 exit 1
1417fi
@@ -111,13 +114,13 @@ addDatabaseIndex () {
111114startContainers () {
112115 echo " "
113116 export IDM_HTTPS_ENABLED=" $1 "
114- docker-compose -f docker-compose.yml up -d --remove-orphans
117+ ${dockerCmd} -f docker-compose.yml up -d --remove-orphans
115118 echo " "
116119}
117120
118121stoppingContainers () {
119122 echo " Stopping running containers"
120- docker-compose -f docker-compose.yml down -v --remove-orphans
123+ ${dockerCmd} -f docker-compose.yml down -v --remove-orphans
121124 echo " "
122125 echo " Removing Authzforce Domains"
123126 for dir in ./authzforce/domains/* ; do
@@ -163,7 +166,7 @@ case "${command}" in
163166 export $( cat .env | grep " #" -v)
164167 echo " Pulling Docker images"
165168 docker pull curlimages/curl
166- docker-compose pull
169+ ${dockerCmd} pull
167170 ;;
168171 * )
169172 echo " Command not Found."
You can’t perform that action at this time.
0 commit comments