Blame view

docker/PYROS_DOCKER_UPDATE 487 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
e1d22a59   Alexis Koralewski   Change redis cont...
4
if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 4 ]
e1e75163   Alexis Koralewski   fixing issue with...
5
then
ec4214ff   Alexis Koralewski   Renaming pyros co...
6
    echo "pyros-db or pyros weren't running, starting them..."
da7c081d   Alexis Koralewski   remove extension ...
7
    ./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
23a61124   Alexis Koralewski   Change obsconfig ...
19
docker-compose exec pyros python3 pyros.py update
e1e75163   Alexis Koralewski   fixing issue with...