Torrent queuing pod
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
828 B

DOCKER_PREFIX=sudo
IMAGE_NAME=unixvoid/seedpod
WEB_THEME=https://github.com/Secretmapper/combustion/archive/v0.6.2.tar.gz
all: build_web
build:
cd deps/ && \
$(DOCKER_PREFIX) docker build -t $(IMAGE_NAME) .
build_web:
cd deps/ && \
mkdir -p stage.tmp/theme && \
wget -O stage.tmp/theme.tar.gz $(WEB_THEME) && \
tar -xzf stage.tmp/theme.tar.gz -C stage.tmp/theme --strip-components 1 && \
$(DOCKER_PREFIX) docker build -t $(IMAGE_NAME) -f Dockerfile.web .
run:
$(DOCKER_PREFIX) docker run \
-d \
--name seedpod \
--cap-add=NET_ADMIN \
--cap-add=NET_RAW \
--device=/dev/net/tun \
--dns=8.8.8.8 \
-p 9091:9091 \
-v ~/Downloads/transmission/downloads:/transmission/downloads:rw \
-v ~/Downloads/transmission/incomplete:/transmission/incomplete:rw \
$(IMAGE_NAME)
clean:
rm -rf deps/stage.tmp