Blame view

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

# if no container is running
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
10
11
12
13
14
15

# Update source code
# - GuitastroGuitastro
echo "Updating Guitastro source code"
(cd ../vendor/guitastro/ ; git pull)
# - PyROS
echo "Updating PyROS source code"
0977ece6   Alexis Koralewski   Adding git pull i...
16
git pull
f11ebe06   Etienne Pallier   Dockerfile cleanu...
17
18

# Update BD, doc, ...
e1e75163   Alexis Koralewski   fixing issue with...
19
docker exec -it pyros python3 pyros.py update