From f10eb69a75eb12059e00732e938b4d0a4bca6a66 Mon Sep 17 00:00:00 2001 From: snbenge Date: Sun, 19 Apr 2020 19:18:25 -0400 Subject: [PATCH] additional file that can be used to setup ubuntu GUI with docker --- src/docker-compose.ubuntu | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/docker-compose.ubuntu diff --git a/src/docker-compose.ubuntu b/src/docker-compose.ubuntu new file mode 100644 index 0000000..d23a477 --- /dev/null +++ b/src/docker-compose.ubuntu @@ -0,0 +1,27 @@ +# Docker Compose + +# docker-compose.yml format version +version: '3' + +# Define services +services: + # Python Development Container + python-dev: + # Use Dockerfile in current folder + build: . + # Mount ros-dev folder on host to app folder in container + volumes: + - ./control:/app/control + - ./dataset:/app/dataset + - ./localization:/app/localization + - ./planning:/app/planning + - ./semantic:/app/semantic + - ./visualization:/app/visualization + - /tmp/.X11-unix/:/tmp/.X11-unix + # Set DISPLAY variable and network mode for GUIs + environment: + - DISPLAY=$DISPLAY + #- DISPLAY=${IP_ADDRESS}:0.0 + network_mode: "host" + # Set working directory in container to app folder + working_dir: /app