88set -e
99
1010stoppingContainers () {
11- echo " Stopping containers"
12- docker-compose --log-level ERROR -f docker-compose/kurento-with-filters.yml -p fiware down -v --remove-orphans
11+ echo " Stopping running containers"
12+ docker compose -f docker-compose/kurento-with-filters.yml -p fiware down -v --remove-orphans
1313}
1414startingContainers () {
15- echo -e " Starting two containers - \033[1;35mKurento\033[0m and \033[1mKurento-Examples (${command} )\033[0m"
15+ echo -e " Starting containers: - \033[1;35mKurento\033[0m and \033[1mKurento-Examples (${command} )\033[0m"
1616 echo -e " - \033[1;35mKurento\033[0m is a Media Server"
1717 echo -e " - \033[1mKurento-Examples\033[0m displays a web app to access the web-cam"
1818 echo " "
19- TUTORIAL_NAME=${command} docker-compose --log-level ERROR -f docker-compose/kurento-with-filters.yml -p fiware up -d --remove-orphans
19+ TUTORIAL_NAME=${command} docker compose -f docker-compose/kurento-with-filters.yml -p fiware up -d --remove-orphans
2020 echo " "
2121 echo -e " Now open \033[4mhttps://localhost:8443\033[0m"
2222}
@@ -37,11 +37,11 @@ case "${command}" in
3737 " start" )
3838 export $( cat .env | grep " #" -v)
3939 stoppingContainers;
40- echo -e " Starting two containers - \033[1;35mKurento\033[0m and \033[1mKurento-Examples (hello-world)\033[0m"
40+ echo -e " Starting containers: - \033[1;35mKurento\033[0m and \033[1mKurento-Examples (hello-world)\033[0m"
4141 echo -e " - \033[1;35mKurento\033[0m is a Media Server"
4242 echo -e " - \033[1mKurento-Examples\033[0m displays a web app to access the web-cam"
4343 echo " "
44- docker-compose --log-level ERROR -f docker-compose/kurento.yml -p fiware up -d --remove-orphans
44+ docker compose -f docker-compose/kurento.yml -p fiware up -d --remove-orphans
4545 echo " "
4646 echo -e " Now open \033[4mhttps://localhost:8443\033[0m"
4747 ;;
@@ -55,8 +55,8 @@ case "${command}" in
5555 ;;
5656 " hello-world" )
5757 stoppingContainers;
58- echo -e " Starting two containers - \033[1;35mKurento\033[0m and \033[1mKurento-Examples (hello-world)\033[0m"
59- docker-compose --log-level ERROR -f docker-compose/kurento.yml -p fiware up -d --remove-orphans
58+ echo -e " Starting containers: - \033[1;35mKurento\033[0m and \033[1mKurento-Examples (hello-world)\033[0m"
59+ docker compose -f docker-compose/kurento.yml -p fiware up -d --remove-orphans
6060 echo " "
6161 echo -e " Now open \033[4mhttps://localhost:8443\033[0m"
6262 ;;
@@ -92,7 +92,7 @@ case "${command}" in
9292 export $( cat .env | grep " #" -v)
9393 echo " Pulling Docker images"
9494 docker pull curlimages/curl
95- docker-compose --log-level ERROR -f docker-compose/kurento.yml -p fiware pull
96- docker-compose --log-level ERROR -f docker-compose/kurento-with-filters.yml -p fiware pull
95+ docker compose -f docker-compose/kurento.yml -p fiware pull
96+ docker compose -f docker-compose/kurento-with-filters.yml -p fiware pull
9797 ;;
9898esac
0 commit comments