mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-10-27 15:16:05 +01:00
rebase to 3.15 include #183 symlink changes
This commit is contained in:
37
Dockerfile
37
Dockerfile
@@ -1,5 +1,6 @@
|
|||||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.13
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
|
||||||
|
|
||||||
|
ARG UNRAR_VERSION=6.1.4
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG TRANSMISSION_VERSION
|
ARG TRANSMISSION_VERSION
|
||||||
@@ -7,6 +8,11 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
|||||||
LABEL maintainer="aptalca"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
echo "**** install build packages ****" && \
|
||||||
|
apk add --no-cache --upgrade --virtual=build-dependencies \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
gcc && \
|
||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -20,16 +26,22 @@ RUN \
|
|||||||
tar \
|
tar \
|
||||||
transmission-cli \
|
transmission-cli \
|
||||||
transmission-daemon \
|
transmission-daemon \
|
||||||
unrar \
|
|
||||||
unzip && \
|
unzip && \
|
||||||
echo "**** install transmission ****" && \
|
echo "**** install transmission ****" && \
|
||||||
if [ -z ${TRANSMISSION_VERSION+x} ]; then \
|
|
||||||
TRANSMISSION_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
|
||||||
&& awk '/^P:transmission-daemon$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
|
|
||||||
fi && \
|
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
transmission-cli==${TRANSMISSION_VERSION} \
|
transmission-cli \
|
||||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
transmission-daemon && \
|
||||||
|
echo "**** install unrar from source ****" && \
|
||||||
|
mkdir /tmp/unrar && \
|
||||||
|
curl -o \
|
||||||
|
/tmp/unrar.tar.gz -L \
|
||||||
|
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/unrar.tar.gz -C \
|
||||||
|
/tmp/unrar --strip-components=1 && \
|
||||||
|
cd /tmp/unrar && \
|
||||||
|
make && \
|
||||||
|
install -v -m755 unrar /usr/local/bin && \
|
||||||
echo "**** install third party themes ****" && \
|
echo "**** install third party themes ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/combustion.zip -L \
|
/tmp/combustion.zip -L \
|
||||||
@@ -47,6 +59,11 @@ RUN \
|
|||||||
/tmp/twc.tar.gz -C \
|
/tmp/twc.tar.gz -C \
|
||||||
/tmp/twctemp --strip-components=1 && \
|
/tmp/twctemp --strip-components=1 && \
|
||||||
mv /tmp/twctemp/src /transmission-web-control && \
|
mv /tmp/twctemp/src /transmission-web-control && \
|
||||||
|
# Enables the original UI button in transmission-web-control
|
||||||
|
ln -s /usr/share/transmission/web/style /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/images /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/javascript /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/index.html /transmission-web-control/index.original.html && \
|
||||||
mkdir -p /kettu && \
|
mkdir -p /kettu && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/kettu.tar.gz -L \
|
/tmp/kettu.tar.gz -L \
|
||||||
@@ -61,10 +78,12 @@ RUN \
|
|||||||
/tmp/flood-for-transmission.tar.gz -C \
|
/tmp/flood-for-transmission.tar.gz -C \
|
||||||
/ && \
|
/ && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
|
apk del --purge \
|
||||||
|
build-dependencies && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
|
/root/.cache \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.13
|
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
|
||||||
|
|
||||||
|
ARG UNRAR_VERSION=6.1.4
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG TRANSMISSION_VERSION
|
ARG TRANSMISSION_VERSION
|
||||||
@@ -7,6 +8,11 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
|||||||
LABEL maintainer="aptalca"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
echo "**** install build packages ****" && \
|
||||||
|
apk add --no-cache --upgrade --virtual=build-dependencies \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
gcc && \
|
||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -20,16 +26,22 @@ RUN \
|
|||||||
tar \
|
tar \
|
||||||
transmission-cli \
|
transmission-cli \
|
||||||
transmission-daemon \
|
transmission-daemon \
|
||||||
unrar \
|
|
||||||
unzip && \
|
unzip && \
|
||||||
echo "**** install transmission ****" && \
|
echo "**** install transmission ****" && \
|
||||||
if [ -z ${TRANSMISSION_VERSION+x} ]; then \
|
|
||||||
TRANSMISSION_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
|
||||||
&& awk '/^P:transmission-daemon$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
|
|
||||||
fi && \
|
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
transmission-cli==${TRANSMISSION_VERSION} \
|
transmission-cli \
|
||||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
transmission-daemon && \
|
||||||
|
echo "**** install unrar from source ****" && \
|
||||||
|
mkdir /tmp/unrar && \
|
||||||
|
curl -o \
|
||||||
|
/tmp/unrar.tar.gz -L \
|
||||||
|
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/unrar.tar.gz -C \
|
||||||
|
/tmp/unrar --strip-components=1 && \
|
||||||
|
cd /tmp/unrar && \
|
||||||
|
make && \
|
||||||
|
install -v -m755 unrar /usr/local/bin && \
|
||||||
echo "**** install third party themes ****" && \
|
echo "**** install third party themes ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/combustion.zip -L \
|
/tmp/combustion.zip -L \
|
||||||
@@ -47,6 +59,11 @@ RUN \
|
|||||||
/tmp/twc.tar.gz -C \
|
/tmp/twc.tar.gz -C \
|
||||||
/tmp/twctemp --strip-components=1 && \
|
/tmp/twctemp --strip-components=1 && \
|
||||||
mv /tmp/twctemp/src /transmission-web-control && \
|
mv /tmp/twctemp/src /transmission-web-control && \
|
||||||
|
# Enables the original UI button in transmission-web-control
|
||||||
|
ln -s /usr/share/transmission/web/style /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/images /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/javascript /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/index.html /transmission-web-control/index.original.html && \
|
||||||
mkdir -p /kettu && \
|
mkdir -p /kettu && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/kettu.tar.gz -L \
|
/tmp/kettu.tar.gz -L \
|
||||||
@@ -61,10 +78,12 @@ RUN \
|
|||||||
/tmp/flood-for-transmission.tar.gz -C \
|
/tmp/flood-for-transmission.tar.gz -C \
|
||||||
/ && \
|
/ && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
|
apk del --purge \
|
||||||
|
build-dependencies && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
|
/root/.cache \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.13
|
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.15
|
||||||
|
|
||||||
|
ARG UNRAR_VERSION=6.1.4
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG TRANSMISSION_VERSION
|
ARG TRANSMISSION_VERSION
|
||||||
@@ -7,6 +8,11 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
|
|||||||
LABEL maintainer="aptalca"
|
LABEL maintainer="aptalca"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
echo "**** install build packages ****" && \
|
||||||
|
apk add --no-cache --upgrade --virtual=build-dependencies \
|
||||||
|
make \
|
||||||
|
g++ \
|
||||||
|
gcc && \
|
||||||
echo "**** install packages ****" && \
|
echo "**** install packages ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -20,16 +26,22 @@ RUN \
|
|||||||
tar \
|
tar \
|
||||||
transmission-cli \
|
transmission-cli \
|
||||||
transmission-daemon \
|
transmission-daemon \
|
||||||
unrar \
|
|
||||||
unzip && \
|
unzip && \
|
||||||
echo "**** install transmission ****" && \
|
echo "**** install transmission ****" && \
|
||||||
if [ -z ${TRANSMISSION_VERSION+x} ]; then \
|
|
||||||
TRANSMISSION_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
|
||||||
&& awk '/^P:transmission-daemon$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
|
|
||||||
fi && \
|
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
transmission-cli==${TRANSMISSION_VERSION} \
|
transmission-cli \
|
||||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
transmission-daemon && \
|
||||||
|
echo "**** install unrar from source ****" && \
|
||||||
|
mkdir /tmp/unrar && \
|
||||||
|
curl -o \
|
||||||
|
/tmp/unrar.tar.gz -L \
|
||||||
|
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
|
||||||
|
tar xf \
|
||||||
|
/tmp/unrar.tar.gz -C \
|
||||||
|
/tmp/unrar --strip-components=1 && \
|
||||||
|
cd /tmp/unrar && \
|
||||||
|
make && \
|
||||||
|
install -v -m755 unrar /usr/local/bin && \
|
||||||
echo "**** install third party themes ****" && \
|
echo "**** install third party themes ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/combustion.zip -L \
|
/tmp/combustion.zip -L \
|
||||||
@@ -47,6 +59,11 @@ RUN \
|
|||||||
/tmp/twc.tar.gz -C \
|
/tmp/twc.tar.gz -C \
|
||||||
/tmp/twctemp --strip-components=1 && \
|
/tmp/twctemp --strip-components=1 && \
|
||||||
mv /tmp/twctemp/src /transmission-web-control && \
|
mv /tmp/twctemp/src /transmission-web-control && \
|
||||||
|
# Enables the original UI button in transmission-web-control
|
||||||
|
ln -s /usr/share/transmission/web/style /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/images /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/javascript /transmission-web-control && \
|
||||||
|
ln -s /usr/share/transmission/web/index.html /transmission-web-control/index.original.html && \
|
||||||
mkdir -p /kettu && \
|
mkdir -p /kettu && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/kettu.tar.gz -L \
|
/tmp/kettu.tar.gz -L \
|
||||||
@@ -61,10 +78,12 @@ RUN \
|
|||||||
/tmp/flood-for-transmission.tar.gz -C \
|
/tmp/flood-for-transmission.tar.gz -C \
|
||||||
/ && \
|
/ && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
|
apk del --purge \
|
||||||
|
build-dependencies && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
|
/root/.cache \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
|
|||||||
@@ -275,8 +275,9 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
* **09.07.21:** - Wait for the transmission-daemon termination after a caught sigterm
|
* **21.02.22:** - Build unrar from source, rebase to Alpine 3.15, add symlinks neeeded for TWC. Credit @alexbelgium
|
||||||
* **06.03.21:** - Add Flood for Transmission as a UI option
|
* **09.07.21:** - Wait for the transmission-daemon termination after a caught sigterm.
|
||||||
|
* **06.03.21:** - Add Flood for Transmission as a UI option.
|
||||||
* **23.01.21:** - Rebasing to alpine 3.13.
|
* **23.01.21:** - Rebasing to alpine 3.13.
|
||||||
* **02.11.20:** - Add ca-certificates package to allow connecting to https trackers.
|
* **02.11.20:** - Add ca-certificates package to allow connecting to https trackers.
|
||||||
* **02.06.20:** - Rebase to alpine 3.12, update to transmission 3.0, remove python2, add python3.
|
* **02.06.20:** - Rebase to alpine 3.12, update to transmission 3.0, remove python2, add python3.
|
||||||
|
|||||||
@@ -84,8 +84,9 @@ app_setup_block: |
|
|||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
|
||||||
- { date: "09.07.21:", desc: "Wait for the transmission-daemon termination after a caught sigterm" }
|
- { date: "21.02.22:", desc: "Build unrar from source, rebase to Alpine 3.15, add symlinks neeeded for TWC. Credit @alexbelgium" }
|
||||||
- { date: "06.03.21:", desc: "Add Flood for Transmission as a UI option" }
|
- { date: "09.07.21:", desc: "Wait for the transmission-daemon termination after a caught sigterm." }
|
||||||
|
- { date: "06.03.21:", desc: "Add Flood for Transmission as a UI option." }
|
||||||
- { date: "23.01.21:", desc: "Rebasing to alpine 3.13." }
|
- { date: "23.01.21:", desc: "Rebasing to alpine 3.13." }
|
||||||
- { date: "02.11.20:", desc: "Add ca-certificates package to allow connecting to https trackers." }
|
- { date: "02.11.20:", desc: "Add ca-certificates package to allow connecting to https trackers." }
|
||||||
- { date: "02.06.20:", desc: "Rebase to alpine 3.12, update to transmission 3.0, remove python2, add python3." }
|
- { date: "02.06.20:", desc: "Rebase to alpine 3.12, update to transmission 3.0, remove python2, add python3." }
|
||||||
|
|||||||
Reference in New Issue
Block a user