Commit 1b11a72fe5b986af1de46ba33767a1b86c38f7cd
1 parent
6decf1a3
Exists in
dev
Update docker script (docker compose usage)
Showing
17 changed files
with
22 additions
and
22 deletions
Show diff stats
PYROSW.py
... | ... | @@ -106,12 +106,12 @@ PYROS_CMD = PYROS_CMD.rstrip() |
106 | 106 | if DOCKER_OUT_CONTAINER: |
107 | 107 | # cd docker/ |
108 | 108 | os.chdir('docker') |
109 | - # docker-compose up -d | |
110 | - res = subprocess.run("docker-compose exec pyros python3 pyros.py",shell=True,stdout=subprocess.DEVNULL) | |
109 | + # docker compose up -d | |
110 | + res = subprocess.run("docker compose exec pyros python3 pyros.py",shell=True,stdout=subprocess.DEVNULL) | |
111 | 111 | if res.returncode != 0: |
112 | - run('docker-compose up -d') | |
112 | + run('docker compose up -d') | |
113 | 113 | sleep(5) |
114 | - PYROS_CMD = 'docker-compose exec pyros ' + PYROS_CMD | |
114 | + PYROS_CMD = 'docker compose exec pyros ' + PYROS_CMD | |
115 | 115 | |
116 | 116 | if VENV: |
117 | 117 | does_venv_folder_exists = os.path.exists("./venv") | ... | ... |
docker/PYROS_DOCKER_BUILD.bat
docker/PYROS_DOCKER_BUILD.sh
docker/PYROS_DOCKER_INSTALL
docker/PYROS_DOCKER_INSTALL.bat
docker/PYROS_DOCKER_RUN
... | ... | @@ -13,7 +13,7 @@ echo "LOG files :" |
13 | 13 | # 1) Web server |
14 | 14 | # |
15 | 15 | # - Display log on current terminal |
16 | -#docker-compose exec pyros python3 pyros.py start webserver $@ | |
16 | +#docker compose exec pyros python3 pyros.py start webserver $@ | |
17 | 17 | # - Save log in file |
18 | 18 | docker compose exec pyros python3 pyros.py -d start -o tnc -fg webserver > ../../LOG_PYROS_webserver.log 2>&1 & |
19 | 19 | #docker exec pyros python3 pyros.py -d start -o guitalens webserver >> ../../LOG_PYROS_webserver.log 2>&1 & | ... | ... |
docker/PYROS_DOCKER_RUN_WEBSERVER_ONLY
... | ... | @@ -7,7 +7,7 @@ if ! [ $(docker ps | grep 'pyros' | wc -l) -eq 4 ] ; then |
7 | 7 | fi |
8 | 8 | |
9 | 9 | docker compose exec pyros python3 pyros.py -d start webserver $@ |
10 | -#docker-compose exec pyros python3 pyros.py -d start webserver $@ | |
10 | +#docker compose exec pyros python3 pyros.py -d start webserver $@ | |
11 | 11 | #docker compose exec pyros python3 pyros.py -d start -o tnc -fg webserver $@ |
12 | 12 | #docker exec -it pyros python3 pyros.py start webserver $@ |
13 | 13 | #docker exec -it pyros python3 pyros.py -d start -o tnc webserver $@ | ... | ... |
docker/PYROS_DOCKER_RUN_WEBSERVER_ONLY.bat
docker/PYROS_DOCKER_SHELL
docker/PYROS_DOCKER_SHELL.bat
docker/PYROS_DOCKER_START.bat
docker/PYROS_DOCKER_START.sh
... | ... | @@ -3,11 +3,11 @@ export COMPUTER_HOSTNAME=$HOSTNAME |
3 | 3 | |
4 | 4 | echo |
5 | 5 | echo "First STOP just in case:" |
6 | -docker-compose down --remove-orphans | |
6 | +docker compose down --remove-orphans | |
7 | 7 | |
8 | 8 | echo |
9 | 9 | echo "Then START:" |
10 | -docker-compose up -d | |
10 | +docker compose up -d | |
11 | 11 | |
12 | 12 | # See started containers |
13 | 13 | echo | ... | ... |
docker/PYROS_DOCKER_STOP.bat
docker/PYROS_DOCKER_TEST
docker/PYROS_DOCKER_TEST.bat
docker/PYROS_DOCKER_UPDATE
docker/PYROS_DOCKER_UPDATE.bat