From 90bc35873f4f8ee95c2f23e0e1644b7084ac525d Mon Sep 17 00:00:00 2001 From: Alexis Koralewski Date: Tue, 30 Aug 2022 11:51:21 +0200 Subject: [PATCH] Add fix hostname to pyros container (hostname of local machine), updating PYROS_DOCKER_START shell and batch script to set this variable --- docker/PYROS_DOCKER_START.bat | 3 ++- docker/PYROS_DOCKER_START.sh | 4 ++++ docker/docker-compose.yml | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 docker/PYROS_DOCKER_START.sh diff --git a/docker/PYROS_DOCKER_START.bat b/docker/PYROS_DOCKER_START.bat index d053fdb..371a1f6 100755 --- a/docker/PYROS_DOCKER_START.bat +++ b/docker/PYROS_DOCKER_START.bat @@ -1,3 +1,4 @@ -export CURRENT_UID=$(id -u) +set CURRENT_UID=1001 +set COMPUTER_HOSTNAME=%COMPUTERNAME% docker-compose down --remove-orphans docker-compose up -d diff --git a/docker/PYROS_DOCKER_START.sh b/docker/PYROS_DOCKER_START.sh new file mode 100755 index 0000000..0745c73 --- /dev/null +++ b/docker/PYROS_DOCKER_START.sh @@ -0,0 +1,4 @@ +export CURRENT_UID=$(id -u) +export COMPUTER_HOSTNAME=$HOSTNAME +docker-compose down --remove-orphans +docker-compose up -d diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index d1483a1..f44ea54 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -45,6 +45,7 @@ services: context: .. #filename: Dockerfile container_name: pyros + hostname: ${COMPUTER_HOSTNAME} # tty is the -t option in docker exec tty: true # stdin_open is the -i option in docker exec -- libgit2 0.21.2