-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
38 lines (31 loc) · 802 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
POD_NAME := "unotone"
DEBUG := "1"
dev:
air
tidy:
go mod tidy
podman-build:
podman build \\
--file dockerfile \\
--tag unotone-server:latest
run-pod: podman-build
podman pod create \\
--publish 8080:8080 \\
--name {{ POD_NAME }}
podman run \
--pod {{ POD_NAME }} \
--restart unless-stopped \
--name unotone-server \
--detach \
--health-cmd 'healthcheck --port 8080' \
--health-start-period 1s \
--health-interval 1m \
--health-timeout 3s \
--health-retries 3 \
-e UNOTONE_ADDR=0.0.0.0:8080 \
-e UNOTONE_DEBUG={{ DEBUG }} \
unotone-server:latest
rm-pod:
podman pod stop {{ POD_NAME }}
podman pod rm {{ POD_NAME }}
rerun-pod: rm-pod run-pod