Commit 90bc35873f4f8ee95c2f23e0e1644b7084ac525d

Authored by Alexis Koralewski
1 parent 5137b9c9
Exists in dev

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
1   -export CURRENT_UID=$(id -u)
  1 +set CURRENT_UID=1001
  2 +set COMPUTER_HOSTNAME=%COMPUTERNAME%
2 3 docker-compose down --remove-orphans
3 4 docker-compose up -d
... ...
docker/PYROS_DOCKER_START.sh 0 → 100755
... ... @@ -0,0 +1,4 @@
  1 +export CURRENT_UID=$(id -u)
  2 +export COMPUTER_HOSTNAME=$HOSTNAME
  3 +docker-compose down --remove-orphans
  4 +docker-compose up -d
... ...
docker/docker-compose.yml
... ... @@ -45,6 +45,7 @@ services:
45 45 context: ..
46 46 #filename: Dockerfile
47 47 container_name: pyros
  48 + hostname: ${COMPUTER_HOSTNAME}
48 49 # tty is the -t option in docker exec
49 50 tty: true
50 51 # stdin_open is the -i option in docker exec
... ...