-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
40 lines (32 loc) · 923 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
lint:
poetry run ruff . --fix
format:
poetry run black .
test:
poetry run pytest -v -s
run-test TEST:
poetry run pytest -s -v {{TEST}}
rerun-failed:
poetry run pytest -v --lf -s
build-ctl:
docker build -f "$(pwd)/docker/Dockerfile_ctl" . -t station-ctl:latest
ctl-build-install: build-ctl test-container-install
test-container-install:
docker run \
-v "$(pwd):/mnt/station:rw" \
-v "/var/run/docker.sock:/var/run/docker.sock:rw" \
-e "PHT_TEMPLATE_DIR=/home/station/station/ctl/templates" \
station-ctl \
--install-dir /mnt/station \
--host-path "$(pwd)"
test-ctl-install-path PATH:
docker run \
-v "{{PATH}}:/mnt/station:rw" \
-v "/var/run/docker.sock:/var/run/docker.sock:rw" \
-e "PHT_TEMPLATE_DIR=/home/station/station/ctl/templates" \
station-ctl \
install \
--install-dir "/mnt/station" \
--host-path "{{PATH}}"
windows-pwd:
$pwd