relaunch.sh 293 Bytes
Newer Older
carignani's avatar
carignani committed
1
#!/bin/bash
2
3
4
5
6
CNT=$(docker ps | grep tosca-ie | cut -d " " -f1)

if [ "$CNT" != "" ] ; then
    docker stop "$CNT"
fi
7
8
9
10
11

if [ "$1" == "stop" ] ; then
    exit 0
fi 

12
13
docker build -t tosca-ie-sample:latest .

carignani's avatar
carignani committed
14
docker run -d --restart unless-stopped -t -p 5000:5000 --env-file ./env tosca-ie-sample
15