Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 58 lines (52 sloc) 1.63 KB
# Command Line Interface to start all services associated with the Getting-Started Tutorial
# For this tutorial the commands are merely a convenience script to run docker-compose
set -e
loadData () {
echo ""
stoppingContainers () {
echo "Stopping containers"
docker-compose --log-level ERROR -p fiware down -v --remove-orphans
if (( $# != 1 )); then
echo "Illegal number of parameters"
echo "usage: services [create|start|stop]"
exit 1
case "${command}" in
echo "usage: services [create|start|stop]"
echo -e "Starting seven containers \033[1;34mOrion\033[0m, \033[1;34mQuantumLeap\033[0m, \033[1;36mIoT-Agent\033[0m, \033[1;30mTutorial\033[0m, a \033[1;30mGrafana\033[0m metrics dashboard and \033[1;30mCrateDB\033[0m and \033[1;30mMongoDB\033[0m databases."
echo -e "- \033[1;34mOrion\033[0m is the context broker"
echo -e "- \033[1;34mQuantumLeap\033[0m will write to CrateDB"
echo -e "- \033[1;30mGrafana\033[0m will read from CrateDB"
echo -e "- \033[1;36mIoT-Agent\033[0m is configured for the UltraLight Protocol"
echo -e "- \033[1;30mTutorial\033[0m acts as a series of dummy IoT Sensors over HTTP"
echo ""
docker-compose --log-level ERROR -p fiware up -d --remove-orphans
echo -e "Now open \033[4mhttp://localhost:3000/device/monitor\033[0m"
echo "Pulling Docker images"
docker-compose --log-level ERROR -p fiware pull
echo "Command not Found."
echo "usage: services [create|start|stop]"
exit 127;