-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (68 loc) · 1.98 KB
/
docker-compose.yml
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
x-3dframe: &3dframe-defaults
image: ghcr.io/arroyodev-llc/threedframe:latest
tty: true
privileged: true
init: true
build: &3dframe-build
context: .
target: workspace
args:
BLENDER_MAJOR: 3.2
BLENDER_VERSION: 3.2.1
BLENDER_ARCH: linux-x64
environment:
DISPLAY: $DISPLAY
WAYLAND_DISPLAY: $WAYLAND_DISPLAY
TERM: xterm-256color
COLORTERM: truecolor
3DFRAME_RENDERS_DIR: /data/renders
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libGL.so
devices:
- /dev/dri:/dev/dri
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ./threedframe:/app/threedframe
- ./tests:/app/tests
- ./data:/data/models
- ./renders:/data/renders
- ./.direnv/ipython:/data/.ipython
- ./openscad.conf:/data/.config/OpenSCAD/OpenSCAD.conf
x-3dframe-util: &3dframe-util
<<: *3dframe-defaults
profiles:
- util
x-3dframe-mcg: &3dframe-mcg
<<: *3dframe-defaults
image: ghcr.io/arroyodev-llc/threedframe:mcg
build:
<<: *3dframe-build
args:
BLENDER_MAJOR: 3.2
BLENDER_VERSION: 3.2.1
BLENDER_ARCH: linux-x64
OPENSCAD_REPO: "https://github.com/parvit/openscad.git"
OPENSCAD_REV: "feature_multicore_geometry"
services:
3dframe:
<<: *3dframe-defaults
3dframe-mcg:
<<: *3dframe-mcg
entrypoint: ["/docker-entrypoint.sh"]
command: ["sleep", "21600"]
shell:
<<: *3dframe-util
entrypoint: ["/docker-entrypoint.sh"]
command: ["bash"]
openscad:
<<: *3dframe-util
entrypoint: ["/docker-entrypoint.sh"]
command: ["openscad"]
open3d:
<<: *3dframe-util
entrypoint: ["/docker-entrypoint.sh", "open3d"]
test:
<<: *3dframe-util
image: ghcr.io/arroyodev-llc/threedframe:test
build:
<<: *3dframe-build
target: test-runner