zkt21/z1/start-app.sh

29 lines
590 B
Bash
Raw Normal View History

2021-04-04 21:07:05 +00:00
#!/bin/bash
#tento script pripravi a spusti vsetko, po jeho ukonceni je aplikacia beziaca a funkcna
echo "Starting setup"
docker-machine create -d virtualbox dev;
docker-compose up --build -d
docker-compose run web /usr/local/bin/python create_db.py
echo "Setup and install finished"
echo "Looking for web app IP"
echo "-"
echo "--"
echo "---"
echo "----"
echo "-----"
echo "------"
echo "-------"
echo "--------"
echo "---------"
echo "----------"
echo "-----------"
echo "------------"
echo "Go to port 8000 of this address:"
docker inspect z1_web_1 | grep "IPAddress"