Blame view

docker/PYROS_DOCKER_UPDATE 483 Bytes
e64cdd09   ALEXIS-PC\alexis   improving check a...
1
#!/usr/bin/env bash
e1e75163   Alexis Koralewski   fixing issue with...
2

7407f600   Etienne Pallier   petites ameliorat...
3
# If no container is running Start it
e64cdd09   ALEXIS-PC\alexis   improving check a...
4
if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ]
e1e75163   Alexis Koralewski   fixing issue with...
5
then
da7c081d   Alexis Koralewski   remove extension ...
6
7
    echo "db_pyros or pyros weren't running, starting them..."
    ./PYROS_DOCKER_START.bat
e1e75163   Alexis Koralewski   fixing issue with...
8
fi
f11ebe06   Etienne Pallier   Dockerfile cleanu...
9

7407f600   Etienne Pallier   petites ameliorat...
10
# 1) Update Guitastro
f11ebe06   Etienne Pallier   Dockerfile cleanu...
11
12
echo "Updating Guitastro source code"
(cd ../vendor/guitastro/ ; git pull)
7407f600   Etienne Pallier   petites ameliorat...
13
14

# 2) Update PyROS
f11ebe06   Etienne Pallier   Dockerfile cleanu...
15
echo "Updating PyROS source code"
0977ece6   Alexis Koralewski   Adding git pull i...
16
git pull
f11ebe06   Etienne Pallier   Dockerfile cleanu...
17

7407f600   Etienne Pallier   petites ameliorat...
18
# 3) pyros.py update => update BD + doc + Guitastro requirements
e1e75163   Alexis Koralewski   fixing issue with...
19
docker exec -it pyros python3 pyros.py update