Commit 5af4dcdf0c62dee9e0599ee7165143d7fc06a71e

Authored by Alexis Koralewski
1 parent 1db8bdb9
Exists in dev

commenting checks until issues are fixed

docker/PYROS_DOCKER_INSTALL.bat
1 1 #!/bin/bash
2 2 # if no container is running
3   -if ! docker ps | grep -q 'db_pyros|pyros'
4   -then
5   - ./PYROS_DOCKER_START.bat
6   -fi
7   -# while db container isn't ready to execute queries, wait 5 seconds
8   -while ! docker inspect db_pyros | jq '.[].State.Health.Status' | grep -q 'healthy'
9   -do
10   - sleep 5
11   -done
  3 +# if ! docker ps | grep -q 'db_pyros|pyros'
  4 +# then
  5 +# ./PYROS_DOCKER_START.bat
  6 +# fi
  7 +# # while db container isn't ready to execute queries, wait 5 seconds
  8 +# while ! docker inspect db_pyros | jq '.[].State.Health.Status' | grep -q 'healthy'
  9 +# do
  10 +# sleep 5
  11 +# done
12 12 # db container is ready to execture queries, we can start the installation
13 13 docker exec -it pyros python3 pyros.py install
14 14 \ No newline at end of file
... ...
docker/PYROS_DOCKER_RUN.bat
1 1 #!/bin/bash
2 2  
3 3 # if no container is running
4   -if ! docker ps | grep -q 'db_pyros|pyros'
5   -then
6   - ./PYROS_DOCKER_START.bat
7   -fi
  4 +# if ! docker ps | grep -q 'db_pyros|pyros'
  5 +# then
  6 +# ./PYROS_DOCKER_START.bat
  7 +# fi
8 8 docker exec -it pyros python3 pyros.py start webserver
9 9  
... ...
docker/PYROS_DOCKER_SHELL.bat
1 1 #!/bin/bash
2 2  
3   -# if no container is running
4   -if ! docker ps | grep -q 'db_pyros|pyros'
5   -then
6   - ./PYROS_DOCKER_START.bat
7   -fi
  3 +@REM # if no container is running
  4 +@REM if ! docker ps | grep -q 'db_pyros|pyros'
  5 +@REM then
  6 +@REM ./PYROS_DOCKER_START.bat
  7 +@REM fi
8 8 docker exec -it pyros bash
9 9  
... ...
docker/PYROS_DOCKER_TEST.bat
1 1 #!/bin/bash
2 2  
3   -# if no container is running
4   -if ! docker ps | grep -q 'db_pyros|pyros'
5   -then
6   - ./PYROS_DOCKER_START.bat
7   -fi
  3 +@REM # if no container is running
  4 +@REM if ! docker ps | grep -q 'db_pyros|pyros'
  5 +@REM then
  6 +@REM ./PYROS_DOCKER_START.bat
  7 +@REM fi
8 8 docker exec -it pyros python3 pyros.py test
9 9  
... ...
docker/PYROS_DOCKER_UPDATE.bat
1 1 #!/bin/bash
2 2  
3 3 # if no container is running
4   -if ! docker ps | grep -q 'db_pyros|pyros'
5   -then
6   - ./PYROS_DOCKER_START.bat
7   -fi
  4 +#if ! docker ps | grep -q 'db_pyros|pyros'
  5 +#then
  6 +# ./PYROS_DOCKER_START.bat
  7 +#fi
8 8 docker exec -it pyros python3 pyros.py update
9 9  
... ...