-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjustfile
54 lines (41 loc) · 1005 Bytes
/
justfile
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
default:
@just --list
# Run 'cargo run' on the project
run *ARGS:
nix run {{ARGS}}
watch *ARGS:
bacon watch -- -- {{ ARGS }}
start:
nix run
build:
nix build
run-bin:
result/bin/cim
docker-build-image:
docker-load:
docker load < result
docker-tag-latest:
docker tag cim:latest thecowboyai/cim-start:latest
docker-load-new:
just docker-build-image
just docker-load
just docker-tag-latest
docker-push:
docker push thecowboyai/cim-start:latest
docker-run:
docker run --rm \
-it \
-e XDG_RUNTIME_DIR=/run/user/1000 \
-e WAYLAND_DISPLAY=wayland-1 \
-e QT_QPA_PLATFORM=wayland \
-e GDK_BACKEND=wayland \
-v $(pwd)/src:/src \
-v /run/user/1000/wayland-1:/run/user/1000/wayland-1 \
thecowboyai/cim-start:latest
make-nixos:
sudo nixos-container stop cim
sudo nixos-container destroy cim
sudo nixos-container create cim --config-file ./modules/nixos-container.nix
run-nixos:
sudo nixos-container start cim
sudo nixos-container root-login cim