Skip to content

Commit 95db82e

Browse files
committed
Upgrade to use the Docker Engine compose command
1 parent 0b22745 commit 95db82e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

services

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ addDatabaseIndex () {
111111
startContainers () {
112112
echo ""
113113
export IDM_HTTPS_ENABLED="$1"
114-
docker-compose --log-level ERROR -p fiware up -d --remove-orphans
114+
docker compose -p fiware up -d --remove-orphans
115115
echo ""
116116
}
117117

118118
stoppingContainers () {
119-
echo "Stopping containers"
120-
docker-compose --log-level ERROR -p fiware down -v --remove-orphans
119+
echo "Stopping running containers"
120+
docker compose -p fiware down -v --remove-orphans
121121
}
122122

123123
command="$1"
@@ -128,7 +128,7 @@ case "${command}" in
128128
"start")
129129
export $(cat .env | grep "#" -v)
130130
stoppingContainers
131-
echo -e "Starting six containers \033[1;34mOrion\033[0m, \033[1;36mIoT-Agent\033[0m,\033[1;31mKeyrock\033[0m, \033[1mTutorial\033[0m and \033[1mMongoDB\033[0m and \033[1mMySQL\033[0m databases."
131+
echo -e "Starting containers: \033[1;34mOrion\033[0m, \033[1;36mIoT-Agent\033[0m,\033[1;31mKeyrock\033[0m, \033[1mTutorial\033[0m and \033[1mMongoDB\033[0m and \033[1mMySQL\033[0m databases."
132132
echo -e "- \033[1;34mOrion\033[0m is the context broker"
133133
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
134134
echo -e "- \033[1mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
@@ -150,7 +150,7 @@ case "${command}" in
150150
export $(cat .env | grep "#" -v)
151151
echo "Pulling Docker images"
152152
docker pull curlimages/curl
153-
docker-compose --log-level ERROR -p fiware pull
153+
docker compose -p fiware pull
154154
;;
155155
*)
156156
echo "Command not Found."

0 commit comments

Comments
 (0)