Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.89 KB
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
# JustPlay Pack Editor — containerised toolchain (host Rust/Node untouched).
#
# docker compose up web # Vite dev server → http://localhost:1420 (use any browser)
# docker compose run --rm build # build the Linux .deb bundle into ./out
# docker compose run --rm app # native window via cargo tauri dev (needs host X server)
#
# The player repo is mounted read-only at /player so `npm run sync:player` can refresh
# the vendored renderers from inside the container.
name: justplay-editor
services:
web:
build:
context: .
dockerfile: docker/Dockerfile
image: justplay-editor-toolchain
working_dir: /app
command: bash -c "npm install && npm run dev"
environment:
- JUSTPLAY_PLAYER_DIR=/player
ports:
- "1420:1420"
- "1421:1421"
volumes:
- .:/app
- ../justplay-sy:/player:ro
- cargo-registry:/usr/local/cargo/registry
build:
image: justplay-editor-toolchain
build:
context: .
dockerfile: docker/Dockerfile
working_dir: /app
command: >
bash -c "npm install &&
cargo tauri build --bundles deb &&
mkdir -p out &&
cp -rv src-tauri/target/release/bundle/deb/* out/ &&
echo 'Bundle(s) in ./out:' && ls -la out/"
environment:
- JUSTPLAY_PLAYER_DIR=/player
volumes:
- .:/app
- ../justplay-sy:/player:ro
- cargo-registry:/usr/local/cargo/registry
app:
image: justplay-editor-toolchain
build:
context: .
dockerfile: docker/Dockerfile
working_dir: /app
command: bash -c "npm install && cargo tauri dev"
environment:
- JUSTPLAY_PLAYER_DIR=/player
- DISPLAY=${DISPLAY:-:0}
network_mode: host
volumes:
- .:/app
- ../justplay-sy:/player:ro
- /tmp/.X11-unix:/tmp/.X11-unix
- cargo-registry:/usr/local/cargo/registry
volumes:
cargo-registry: