Skip to content

Commit

Permalink
Move tutorial Docker service to own compose file again
Browse files Browse the repository at this point in the history
This is due to VSCode not supporting docker profiles (yet?).
Thus we have issues setting up a nice DevContainer that doesn't start the demo as well.
  • Loading branch information
orzechow committed Nov 15, 2024
1 parent de67f41 commit 293270b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
13 changes: 13 additions & 0 deletions demo/docker-compose.tutorial.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
tutorial:
image: ghcr.io/kit-mrt/arbitration_graphs_pacman_tutorial:$VERSION
env_file: .env
ports:
- "8080:8080"
volumes:
- .:/home/blinky/demo
- $HOME/.Xauthority:/home/blinky/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix
environment:
- DISPLAY=$DISPLAY

13 changes: 3 additions & 10 deletions demo/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
services:
tutorial:
image: ghcr.io/kit-mrt/arbitration_graphs_pacman_tutorial:$VERSION
env_file: .env
ports:
- "8080:8080"
volumes:
- .:/home/blinky/demo
- $HOME/.Xauthority:/home/blinky/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix
environment:
- DISPLAY=$DISPLAY
extends:
file: docker-compose.tutorial.yaml
service: tutorial
#
# This makes sure `docker compose up` only runs the demo service
# Use `docker compose run --rm --service-ports tutorial` to run the tutorial
Expand Down

0 comments on commit 293270b

Please sign in to comment.