Blame view

docker/PYROS_DOCKER_UPDATE 615 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..."
2da110b4   Etienne Pallier   fix call to START...
7
8
    ./PYROS_DOCKER_START.sh
    #./PYROS_DOCKER_START.bat
e1e75163   Alexis Koralewski   fixing issue with...
9
fi
f11ebe06   Etienne Pallier   Dockerfile cleanu...
10

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

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

3be8b2fc   Alexis Koralewski   Add git pull of o...
19
20
21
22
23
24
echo "Updating observatory source code"
for dir in ../../PYROS_OBSERVATORY/*
do
    git pull
done

7407f600   Etienne Pallier   petites ameliorat...
25
# 3) pyros.py update => update BD + doc + Guitastro requirements
1b11a72f   Alexis Koralewski   Update docker scr...
26
docker compose exec pyros python3 pyros.py update
e1e75163   Alexis Koralewski   fixing issue with...