28 lines
701 B
YAML
28 lines
701 B
YAML
# Development Ecosystem Docker Compose
|
|
#
|
|
# Usage:
|
|
# docker compose build # Build the image
|
|
# docker compose up gui # Run the GUI (requires X11)
|
|
# docker compose up test # Run installation tests
|
|
#
|
|
# Before running GUI, allow Docker access to X11:
|
|
# xhost +local:docker
|
|
|
|
services:
|
|
gui:
|
|
build: .
|
|
container_name: development-hub-gui
|
|
environment:
|
|
- DISPLAY=${DISPLAY}
|
|
volumes:
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
|
- ~/.config:/root/.config # Persist settings
|
|
network_mode: host # Needed for some X11 setups
|
|
|
|
test:
|
|
build: .
|
|
container_name: development-hub-test
|
|
environment:
|
|
- QT_QPA_PLATFORM=offscreen
|
|
command: /test.sh
|