-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
37 lines (27 loc) · 832 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
set positional-arguments
export GID := `id -g`
export UID := `id -u`
default:
just --list
# Build the docker image
build:
docker compose build --build-arg APP_UID="$(id -u)" --build-arg APP_GID="$(id -g)"
# Access a running docker container
exec *args="bash":
docker compose exec app "$@"
ss *args:
docker compose exec app ./kohya_ss/gui.sh --server_port=7861 --listen=0.0.0.0 --headless "$@"
readme:
glow README.md
# Run a shell in a new container
run *args="bash":
docker compose run app "$@"
# Test to see if your GPU is correctly connected to docker
test-gpu:
docker compose run app python3 -c 'import torch; torch.cuda.is_available()'
# Run jupyter lab instead of kohya_ss GUI
lab *args:
docker compose -f docker-compose.lab.yml up "$@"
# Start the docker container
up *args:
docker compose up "$@"