transmission

main
Ricard Illa 2021-03-26 15:11:26 +01:00
parent 36e7dace63
commit bfe291f188
4 changed files with 56 additions and 1 deletions

View File

@ -1,4 +1,4 @@
images=agate archivebox ansible backup buku ddclient git-daemon gitolite gitolite-pystagit rss-bridge pleroma sassc syncthing tasks tor vdirsyncer xandikos images=agate archivebox ansible backup buku ddclient git-daemon gitolite gitolite-pystagit rss-bridge pleroma sassc syncthing tasks tor transmission vdirsyncer xandikos
.PHONY: all $(images) .PHONY: all $(images)
all: $(images) all: $(images)
@ -49,6 +49,9 @@ tasks:
tor: tor:
$(BUILD) $(BUILD)
transmission:
$(BUILD)
vdirsyncer: vdirsyncer:
$(BUILD) $(BUILD)

View File

@ -34,5 +34,6 @@ useful.
the docker socket inside of it to have it perform maintanance tasks outside the docker socket inside of it to have it perform maintanance tasks outside
of it's container. of it's container.
* tor * tor
* transmission
* vdirsyncer * vdirsyncer
* xandikos * xandikos

41
transmission/Dockerfile Normal file
View File

@ -0,0 +1,41 @@
FROM alpine:3.13
RUN apk add --no-cache --virtual .build-deps \
git \
cmake \
make \
gcc \
g++ \
musl-dev \
curl-dev \
automake \
autoconf \
libtool && \
mkdir -p /usr/local/src && \
git clone https://github.com/transmission/transmission /usr/local/src/transmission && \
git -C /usr/local/src/transmission submodule update --init && \
mkdir -p /usr/local/src/transmission/build && \
cd /usr/local/src/transmission/build && \
cmake .. && \
make && \
make install && \
cd / && \
rm -r /usr/local/src && \
apk del .build-deps && \
apk add --no-cache curl
RUN addgroup \
--gid 10001 \
transmission && \
adduser \
--uid 10000 \
--home /var/lib/transmission \
--ingroup transmission \
--disabled-password \
--shell /sbin/nologin \
transmission
ENV TRANSMISSION_HOME /var/lib/transmission
USER transmission
CMD ["/usr/local/bin/transmission-daemon", "--foreground"]

10
transmission/Makefile Normal file
View File

@ -0,0 +1,10 @@
USERNAME = rilla
IMG_NAME = transmission
.PHONY: build build-nc
build: Dockerfile
docker build -t $(USERNAME)/$(IMG_NAME) .
build-nc: Dockerfile
docker build --no-cache -t $(USERNAME)/$(IMG_NAME) .