-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
37 lines (28 loc) · 1.39 KB
/
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
export DATA_MOUNT_PATH := "/data"
format:
black ./clutchless
clean-docker:
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker volume torrent-data
install:
poetry build && ls -t dist/*.whl | head -n1 | xargs pip install --user --upgrade --force-reinstall
image:
docker build -f docker/clutchless.df -t clutchless .
test: image
docker run --rm -it clutchless sh -c "python3 -i code/client_setup.py"
compose:
docker-compose -f ./docker/docker-compose.yml up -d --force-recreate --no-deps --build testbed transmission
docker-compose -f ./docker/docker-compose.yml run --rm start_dependencies
docker-compose -f ./docker/docker-compose.yml run --rm testbed sh -c "python3 -i client_setup.py"
integration-build:
sudo docker-compose -f ./docker/integration/docker-compose.yml build testbed transmission
create-integration-volume:
sudo docker container create --name temp -v torrent-data:/data busybox
sudo docker cp ./docker/integration/resources/torrents temp:/data
sudo docker cp ./docker/integration/resources/data temp:/data
sudo docker rm temp
integration: integration-build create-integration-volume
sudo docker-compose -f ./docker/integration/docker-compose.yml up -d transmission
sudo docker-compose -f ./docker/integration/docker-compose.yml run --rm start_dependencies
sudo docker-compose -f ./docker/integration/docker-compose.yml run testbed bash