Commit ec4214ffc5990beb8f88152c826d43c92fcd7aa6
1 parent
4faed281
Exists in
dev
Renaming pyros containers (pma & db)
Showing
9 changed files
with
18 additions
and
15 deletions
Show diff stats
CHANGELOG
docker/PYROS_DOCKER_INSTALL
@@ -3,19 +3,19 @@ | @@ -3,19 +3,19 @@ | ||
3 | # if no container is running | 3 | # if no container is running |
4 | if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] | 4 | if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] |
5 | then | 5 | then |
6 | - echo "db_pyros or pyros weren't running, starting them..." | 6 | + echo "pyros-db or pyros weren't running, starting them..." |
7 | ./PYROS_DOCKER_START.bat | 7 | ./PYROS_DOCKER_START.bat |
8 | fi | 8 | fi |
9 | 9 | ||
10 | # while db container isn't ready to execute queries, wait 5 seconds | 10 | # while db container isn't ready to execute queries, wait 5 seconds |
11 | -if ! docker inspect db_pyros --format='{{.State.Health.Status}}' | grep -q 'healthy' | 11 | +if ! docker inspect pyros-db --format='{{.State.Health.Status}}' | grep -q 'healthy' |
12 | then | 12 | then |
13 | echo "db service isn't ready yet, waiting until it's ready..." | 13 | echo "db service isn't ready yet, waiting until it's ready..." |
14 | fi | 14 | fi |
15 | -while ! docker inspect db_pyros --format='{{.State.Health.Status}}' | grep -q 'healthy' | 15 | +while ! docker inspect pyros-db --format='{{.State.Health.Status}}' | grep -q 'healthy' |
16 | do | 16 | do |
17 | sleep 5 | 17 | sleep 5 |
18 | - heal_status=$(docker inspect db_pyros --format='{{.State.Health.Status}}') | 18 | + heal_status=$(docker inspect pyros-db --format='{{.State.Health.Status}}') |
19 | echo "Current status : $heal_status" | 19 | echo "Current status : $heal_status" |
20 | done | 20 | done |
21 | 21 |
docker/PYROS_DOCKER_RUN
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | #if no container is running | 3 | #if no container is running |
4 | -if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] | 4 | +if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 3 ] |
5 | then | 5 | then |
6 | - echo "db_pyros or pyros weren't running, starting them..." | 6 | + echo "pyros-db or pyros weren't running, starting them..." |
7 | ./PYROS_DOCKER_START.bat | 7 | ./PYROS_DOCKER_START.bat |
8 | fi | 8 | fi |
9 | 9 |
docker/PYROS_DOCKER_RUN_WEBSERVER_ONLY
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | #if no container is running | 3 | #if no container is running |
4 | -if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] | 4 | +if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 3 ] |
5 | then | 5 | then |
6 | - echo "db_pyros or pyros weren't running, starting them..." | 6 | + echo "pyros-db or pyros weren't running, starting them..." |
7 | ./PYROS_DOCKER_START.bat | 7 | ./PYROS_DOCKER_START.bat |
8 | fi | 8 | fi |
9 | docker exec -it pyros python3 pyros.py -d start webserver $@ | 9 | docker exec -it pyros python3 pyros.py -d start webserver $@ |
10 | #docker exec -it pyros python3 pyros.py start webserver $@ | 10 | #docker exec -it pyros python3 pyros.py start webserver $@ |
11 | #docker exec -it pyros python3 pyros.py -d start -o tnc webserver $@ | 11 | #docker exec -it pyros python3 pyros.py -d start -o tnc webserver $@ |
12 | - | 12 | +s |
docker/PYROS_DOCKER_SHELL
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | #if no container is running | 3 | #if no container is running |
4 | if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] | 4 | if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] |
5 | then | 5 | then |
6 | - echo "db_pyros or pyros weren't running, starting them..." | 6 | + echo "pyros-db or pyros weren't running, starting them..." |
7 | ./PYROS_DOCKER_START.bat | 7 | ./PYROS_DOCKER_START.bat |
8 | fi | 8 | fi |
9 | docker exec -it pyros bash $@ | 9 | docker exec -it pyros bash $@ |
docker/PYROS_DOCKER_TEST
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | # if no container is running | 3 | # if no container is running |
4 | if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] | 4 | if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] |
5 | then | 5 | then |
6 | - echo "db_pyros or pyros weren't running, starting them..." | 6 | + echo "pyros-db or pyros weren't running, starting them..." |
7 | ./PYROS_DOCKER_START.bat | 7 | ./PYROS_DOCKER_START.bat |
8 | fi | 8 | fi |
9 | docker exec -it pyros python3 pyros.py test $@ | 9 | docker exec -it pyros python3 pyros.py test $@ |
docker/PYROS_DOCKER_UPDATE
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | # If no container is running Start it | 3 | # If no container is running Start it |
4 | -if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] | 4 | +if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 3 ] |
5 | then | 5 | then |
6 | - echo "db_pyros or pyros weren't running, starting them..." | 6 | + echo "pyros-db or pyros weren't running, starting them..." |
7 | ./PYROS_DOCKER_START.bat | 7 | ./PYROS_DOCKER_START.bat |
8 | fi | 8 | fi |
9 | 9 |
docker/docker-compose.yml
@@ -7,7 +7,7 @@ services: | @@ -7,7 +7,7 @@ services: | ||
7 | image: mysql:8.0.28 | 7 | image: mysql:8.0.28 |
8 | command: --default-authentication-plugin=mysql_native_password | 8 | command: --default-authentication-plugin=mysql_native_password |
9 | restart: always | 9 | restart: always |
10 | - container_name: db_pyros | 10 | + container_name: pyros-db |
11 | environment: | 11 | environment: |
12 | # note : as db is an image of mysql, this root password will be set on the first installation on the image, if the value is changed, it will not be updated in the database | 12 | # note : as db is an image of mysql, this root password will be set on the first installation on the image, if the value is changed, it will not be updated in the database |
13 | - "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}" | 13 | - "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}" |
@@ -69,7 +69,7 @@ services: | @@ -69,7 +69,7 @@ services: | ||
69 | restart: always | 69 | restart: always |
70 | phpmyadmin: | 70 | phpmyadmin: |
71 | image: phpmyadmin/phpmyadmin | 71 | image: phpmyadmin/phpmyadmin |
72 | - container_name: pma | 72 | + container_name: pyros-pma |
73 | links: | 73 | links: |
74 | - db | 74 | - db |
75 | environment: | 75 | environment: |