Blame view

docker/PYROS_DOCKER_RUN_WEBSERVER_ONLY 629 Bytes
a9d06e6f   Etienne Pallier   new PYROS_DOCKER_...
1
2
#!/usr/bin/env bash

a1cd846d   Alexis Koralewski   add export on pyr...
3
4
5
export CURRENT_UID=$(id -u)
export COMPUTER_HOSTNAME=$HOSTNAME

a9d06e6f   Etienne Pallier   new PYROS_DOCKER_...
6
#if no container is running
e7016f79   Etienne Pallier   cleanup Dockerfil...
7
if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 4 ] ; then
ec4214ff   Alexis Koralewski   Renaming pyros co...
8
    echo "pyros-db or pyros weren't running, starting them..."
b1e4e4dd   Etienne Pallier   Renamed scripts P...
9
10
    ./PYROS_DOCKER_START
    #./PYROS_DOCKER_START.bat
a9d06e6f   Etienne Pallier   new PYROS_DOCKER_...
11
fi
e7016f79   Etienne Pallier   cleanup Dockerfil...
12
13

docker compose exec pyros python3 pyros.py -d start webserver $@
1b11a72f   Alexis Koralewski   Update docker scr...
14
#docker compose exec pyros python3 pyros.py -d start webserver $@
e7016f79   Etienne Pallier   cleanup Dockerfil...
15
#docker compose exec pyros python3 pyros.py -d start -o tnc -fg webserver $@
68c3cc1e   Etienne Pallier   ajout commentaire...
16
17
#docker exec -it pyros python3 pyros.py start webserver $@
#docker exec -it pyros python3 pyros.py -d start -o tnc webserver $@