-
Notifications
You must be signed in to change notification settings - Fork 2
/
plotlabserver.yaml
33 lines (32 loc) · 1000 Bytes
/
plotlabserver.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
plotlabserver:
privileged: true
image: plotlabserver:${PLOTLABSERVER_TAG}
container_name: plotlabserver
hostname: plotlabserver
user: ${UID}:${GID}
build:
context: ${PLOTLABSERVER_MAKEFILE_PATH}
dockerfile: Dockerfile.plotlabserver
network: host
args:
- UID=${UID}
- GID=${GID}
- PLOTLABSERVER_TAG=${PLOTLABSERVER_TAG}
network_mode: "host"
ipc: "host"
#entrypoint: sh -c 'xeyes'
#entrypoint: sh -c '(xeyes &) && ./plotlabserver'
#entrypoint: sh -c 'tail -f /dev/null'
#entrypoint: sh -c 'glxgears'
environment:
#- DISPLAY_MODE=${DISPLAY_MODE:-native}
# - DISPLAY_MODE=${DISPLAY_MODE:-window_manager}
#- DISPLAY_MODE=${DISPLAY_MODE:-headless}
- DISPLAY=${DISPLAY}
#- LIBGL_ALWAYS_SOFTWARE=1
- UID=${UID}
- GID=${GID}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ${PLOTLABSERVER_MAKEFILE_PATH}/.log:/var/log/plotlabserver