forked from fedelibre/LilyDev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
97 lines (84 loc) · 2.42 KB
/
docker-compose.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.7'
volumes:
lilypond-build:
services:
lilydev:
container_name: lilydev
hostname: lilydev
image: lilypond-dev
build:
context: .
target: lilypond-dev
# LILYPOND_BUILD_DIR informs certain helper scripts that the build
# directory is not the source directory.
environment:
- LILYPOND_BUILD_DIR=/home/user/lilypond-build
- PYTHONPATH=/home/user/lilypond-src/python
ports:
- "127.0.0.1:10445:445/tcp" # SMB
security_opt:
- seccomp:unconfined
ulimits:
core: -1
volumes:
- type: bind
source: ${LILY_SRC_DIR}
target: /home/user/lilypond-src
- type: volume
source: lilypond-build
target: /home/user/lilypond-build
# HOST_GID and HOST_UID are set in the "do" wrapper script.
entrypoint: /bin/bash -c "\
sudo service smbd start \
&& sudo usermod -g ${HOST_GID:-X} -u ${HOST_UID:-X} user \
&& tail -f /dev/null"
stdin_open: false
tty: false
user: user
working_dir: /home/user/lilypond-build
lilypond:
container_name: lilypond
hostname: lilypond
image: lilypond
build:
context: .
target: lilypond
environment:
- PYTHONPATH=/home/user/lilypond-src/python
volumes:
- type: bind
source: ${HOST_EXTRA_FONTS_DIR:-/dev/null}
target: /usr/share/fonts/host/extra
read_only: true
- type: bind
source: ${HOST_SYSTEM_FONTS_DIR:-/dev/null}
target: /usr/share/fonts/host/system
read_only: true
- type: volume
source: lilypond-build
target: /home/user/lilypond-build
read_only: true
- type: bind
source: ${LILY_SRC_DIR}
target: /home/user/lilypond-src
read_only: true
- type: bind
source: ${USER_BUILD_DIR}
target: /home/user/user-build
consistency: delegated
- type: bind
source: ${USER_FONTS_DIR:-/dev/null}
target: /home/user/.local/share/fonts
read_only: true
- type: bind
source: ${USER_SRC_DIR}
target: /home/user/user-src
read_only: true
# HOST_GID and HOST_UID are set in the "do" wrapper script.
entrypoint: /bin/bash -c "\
sudo usermod -g ${HOST_GID:-X} -u ${HOST_UID:-X} user \
&& tail -f /dev/null"
stdin_open: false
tty: false
user: user
working_dir: /home/user/user-build