transmission
parent
36e7dace63
commit
bfe291f188
5
Makefile
5
Makefile
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"]
|
|
@ -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) .
|
Loading…
Reference in New Issue