Browse Source

Fix build and some restructuring after #324

master
Kristian Haugene 6 years ago
parent
commit
c7a00b3525
3 changed files with 15 additions and 24 deletions
  1. 9
    15
      Dockerfile
  2. 5
    8
      Dockerfile.armhf
  3. 1
    1
      transmission/start.sh

+ 9
- 15
Dockerfile View File

@@ -1,7 +1,3 @@
# Transmission and OpenVPN
#
# Version 1.15

FROM ubuntu:16.04
MAINTAINER Kristian Haugene

@@ -10,26 +6,24 @@ VOLUME /config

# Update packages and install software
RUN apt-get update \
&& apt-get -y install software-properties-common ufw \
&& add-apt-repository multiverse \
&& apt-get -y upgrade \
&& apt-get -y install software-properties-common wget \
&& add-apt-repository ppa:transmissionbt/ppa \
&& apt-get update \
&& apt-get install -y sudo transmission-cli transmission-common transmission-daemon curl rar unrar zip unzip wget \
&& wget -O /tmp/release.zip https://github.com/Secretmapper/combustion/archive/release.zip \
&& unzip -d /tmp /tmp/release.zip ; rm /tmp/*.zip \
&& mkdir /usr/bin/transmission-combustion/ ; mv /tmp/combustion-release/* /usr/bin/transmission-combustion/ \
&& wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add - \
&& wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - \
&& echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list \
&& apt-get update \
&& apt-get install -y openvpn \
&& apt-get install -y sudo transmission-cli transmission-common transmission-daemon curl rar unrar zip unzip ufw iputils-ping openvpn \
&& wget https://github.com/Secretmapper/combustion/archive/release.zip \
&& unzip release.zip -d /opt/transmission-ui/ \
&& rm release.zip \
&& wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb \
&& dpkg -i dumb-init_1.2.0_amd64.deb \
&& rm -rf dumb-init_1.2.0_amd64.deb \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& curl -L https://github.com/jwilder/dockerize/releases/download/v0.5.0/dockerize-linux-amd64-v0.5.0.tar.gz | tar -C /usr/local/bin -xzv \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& groupmod -g 1000 users \
&& useradd -u 911 -U -d /config -s /bin/false abc \
&& usermod -G users abc
&& usermod -G users abc

ADD openvpn/ /etc/openvpn/
ADD transmission/ /etc/transmission/

+ 5
- 8
Dockerfile.armhf View File

@@ -1,7 +1,3 @@
# Transmission and OpenVPN
#
# Version 1.10

FROM resin/rpi-raspbian:jessie
MAINTAINER Kristian Haugene

@@ -10,11 +6,12 @@ VOLUME /config

# Update packages and install software
RUN apt-get update \
&& apt-get install -y transmission-cli transmission-common transmission-daemon \
&& wget -O /tmp/release.zip https://github.com/Secretmapper/combustion/archive/release.zip \
&& unzip -d /tmp /tmp/release.zip ; rm /tmp/*.zip \
&& mkdir /usr/bin/transmission-combustion/ ; mv /tmp/combustion-release/* /usr/bin/transmission-combustion/ \
&& apt-get -y upgrade \
&& apt-get -y install transmission-cli transmission-common transmission-daemon \
&& apt-get install -y openvpn curl ufw \
&& wget https://github.com/Secretmapper/combustion/archive/release.zip \
&& unzip release.zip -d /opt/transmission-ui/ \
&& rm release.zip \
&& curl -sLO https://archive.raspbian.org/raspbian/pool/main/d/dumb-init/dumb-init_1.0.3-1_armhf.deb \
&& dpkg -i dumb-init_*.deb \
&& rm -rf dumb-init_*.deb \

+ 1
- 1
transmission/start.sh View File

@@ -10,7 +10,7 @@ export TRANSMISSION_BIND_ADDRESS_IPV4=$4

if [ "true" = "$ENABLE_COMBUSTION_UI" ]; then
echo "Using Combustion UI, overriding TRANSMISSION_WEB_HOME"
export TRANSMISSION_WEB_HOME=/usr/bin/transmission-combustion
export TRANSMISSION_WEB_HOME=/opt/transmission-ui/combustion-release
fi

echo "Generating transmission settings.json from env variables"

Loading…
Cancel
Save