mirror of
https://github.com/fergalmoran/docker-transmission-openvpn.git
synced 2026-02-14 11:46:06 +00:00
* Add Transmissionic Web UI & New Documentation (#2589) * Added step to build a .deb file to install and reduce image size (#2590) * Added step to build a .deb file to install and reduce image size * Fixed deb install incorrectly done * Check for update-port script existing instead of being executable (#2593) #2459 * Fixed TWC paths (#2600) * add docker build caching to workflow (#2609) * Privoxy eth0 fixes, healthcheck comparison tweak and start.sh update (#2610) * by checking for existence of default 127 address,healthcheck will never effectively run, as the non-default eth0 ip will never be matched * the comparison was not trimming off the port, thus healthcheck was always going to fail or denote a change when there may have been none * simplified the comparison (thanks @edgd1er ) * Strip double quotes from umask check (#2601) * Fix problem with enabled UFW with Random Ports (#2603) Fixing #2255 * move vpn config download to /config (#2592) * move vpn config download to /config * fix git safe dir permissions * cleanup vpn config clone * re-add zip dl, set git to default * use alpine:latest for TransmissionUIs build stage (#2573) * Update fetch-external-configs.sh removed duplicate bracket * Update to transmission 4.0.4 * Update configure-openvpn.sh * Switched the order of events, to remove the ipv6 before sed-ing the address (#2695) * Create separate image for transmission build from source (#2691) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * parallel docker builds with matrix (#2694) * consolidate and parallelize image build with matrix multi runner build * fix image name * Update Dockerfile fixed typo * `TRANSMISSION_RPC_URL` option causes a moved permanently error when using PIA (#2657) * Respect option `TRANSMISSION_RPC_URL` remove debug echo * default `TRANSMISSION_RPC_URL` is now grabbed from `default-settings.json` * Stricter grep pattern * Remove redundant grep * Added comment * Use `jq` instead of `sed` to determine the default of `TRANSMISSION_RPC_URL` --------- Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * Fix for PR #2691 (#2698) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * Fix file name * fix image name * Fix #2694 image build (#2699) * consolidate and parallelize image build with matrix multi runner build * fix image name * update master (#2696) * Add Transmissionic Web UI & New Documentation (#2589) * Added step to build a .deb file to install and reduce image size (#2590) * Added step to build a .deb file to install and reduce image size * Fixed deb install incorrectly done * Check for update-port script existing instead of being executable (#2593) #2459 * Fixed TWC paths (#2600) * add docker build caching to workflow (#2609) * Privoxy eth0 fixes, healthcheck comparison tweak and start.sh update (#2610) * by checking for existence of default 127 address,healthcheck will never effectively run, as the non-default eth0 ip will never be matched * the comparison was not trimming off the port, thus healthcheck was always going to fail or denote a change when there may have been none * simplified the comparison (thanks @edgd1er ) * Strip double quotes from umask check (#2601) * Fix problem with enabled UFW with Random Ports (#2603) Fixing #2255 * move vpn config download to /config (#2592) * move vpn config download to /config * fix git safe dir permissions * cleanup vpn config clone * re-add zip dl, set git to default * use alpine:latest for TransmissionUIs build stage (#2573) * Update fetch-external-configs.sh removed duplicate bracket * Update to transmission 4.0.4 * Update configure-openvpn.sh * Switched the order of events, to remove the ipv6 before sed-ing the address (#2695) * Create separate image for transmission build from source (#2691) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * parallel docker builds with matrix (#2694) * consolidate and parallelize image build with matrix multi runner build * fix image name * Update Dockerfile fixed typo * `TRANSMISSION_RPC_URL` option causes a moved permanently error when using PIA (#2657) * Respect option `TRANSMISSION_RPC_URL` remove debug echo * default `TRANSMISSION_RPC_URL` is now grabbed from `default-settings.json` * Stricter grep pattern * Remove redundant grep * Added comment * Use `jq` instead of `sed` to determine the default of `TRANSMISSION_RPC_URL` --------- Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * Fix for PR #2691 (#2698) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * Fix file name * fix image name --------- Co-authored-by: Anastasiya Polina Soyka <apsoyka@protonmail.com> Co-authored-by: Geoff <geoff@gapple.ca> Co-authored-by: ksurl <ksurl@users.noreply.github.com> Co-authored-by: HeavyGee <133152184+heavygee@users.noreply.github.com> Co-authored-by: WitchRecipe <77073792+WitchRecipe@users.noreply.github.com> Co-authored-by: Florian Kretschmer <19738301+Entepotenz@users.noreply.github.com> Co-authored-by: Aemulation <112875887+Aemulation@users.noreply.github.com> Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * fix matrix to build all images --------- Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> Co-authored-by: Anastasiya Polina Soyka <apsoyka@protonmail.com> Co-authored-by: Geoff <geoff@gapple.ca> Co-authored-by: HeavyGee <133152184+heavygee@users.noreply.github.com> Co-authored-by: WitchRecipe <77073792+WitchRecipe@users.noreply.github.com> Co-authored-by: Florian Kretschmer <19738301+Entepotenz@users.noreply.github.com> Co-authored-by: Aemulation <112875887+Aemulation@users.noreply.github.com> Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * fix transmission version check (#2700) * Comment * Switch transmission builder image to combined platform builder (#2704) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * Fix file name * fix image name * fix transmission build version detection * switch to combined platform builder --------- Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> * switch to single platform builder (#2705) Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> * Fix web proxy stopping to work (#2678) * Mix of fixes to the heathcheck.sh from #2610 and start.sh from #2673. * Made few more modifications to healthcheck.sh and start.sh. This change appears to be working. Let's monitor this. --------- Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> * Remove script_security (#2702) Due to non-support of this in latest openvpn it is removed.. * Revert "Remove script_security (#2702)" (#2708) This reverts commit 44ba9e6f3a221d3b51464f33505ccd649b24f7f3. * Update configure-openvpn.sh (#2707) Using "upd" as a value for NORDVPN_PROTOCOL results in an error. Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> * Add natpmpc (#2746) * Dev (#2706) * Add Transmissionic Web UI & New Documentation (#2589) * Added step to build a .deb file to install and reduce image size (#2590) * Added step to build a .deb file to install and reduce image size * Fixed deb install incorrectly done * Check for update-port script existing instead of being executable (#2593) #2459 * Fixed TWC paths (#2600) * add docker build caching to workflow (#2609) * Privoxy eth0 fixes, healthcheck comparison tweak and start.sh update (#2610) * by checking for existence of default 127 address,healthcheck will never effectively run, as the non-default eth0 ip will never be matched * the comparison was not trimming off the port, thus healthcheck was always going to fail or denote a change when there may have been none * simplified the comparison (thanks @edgd1er ) * Strip double quotes from umask check (#2601) * Fix problem with enabled UFW with Random Ports (#2603) Fixing #2255 * move vpn config download to /config (#2592) * move vpn config download to /config * fix git safe dir permissions * cleanup vpn config clone * re-add zip dl, set git to default * use alpine:latest for TransmissionUIs build stage (#2573) * Update fetch-external-configs.sh removed duplicate bracket * Update to transmission 4.0.4 * Update configure-openvpn.sh * Switched the order of events, to remove the ipv6 before sed-ing the address (#2695) * Create separate image for transmission build from source (#2691) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * parallel docker builds with matrix (#2694) * consolidate and parallelize image build with matrix multi runner build * fix image name * Update Dockerfile fixed typo * `TRANSMISSION_RPC_URL` option causes a moved permanently error when using PIA (#2657) * Respect option `TRANSMISSION_RPC_URL` remove debug echo * default `TRANSMISSION_RPC_URL` is now grabbed from `default-settings.json` * Stricter grep pattern * Remove redundant grep * Added comment * Use `jq` instead of `sed` to determine the default of `TRANSMISSION_RPC_URL` --------- Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * Fix for PR #2691 (#2698) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * Fix file name * fix image name * Fix #2694 image build (#2699) * consolidate and parallelize image build with matrix multi runner build * fix image name * update master (#2696) * Add Transmissionic Web UI & New Documentation (#2589) * Added step to build a .deb file to install and reduce image size (#2590) * Added step to build a .deb file to install and reduce image size * Fixed deb install incorrectly done * Check for update-port script existing instead of being executable (#2593) #2459 * Fixed TWC paths (#2600) * add docker build caching to workflow (#2609) * Privoxy eth0 fixes, healthcheck comparison tweak and start.sh update (#2610) * by checking for existence of default 127 address,healthcheck will never effectively run, as the non-default eth0 ip will never be matched * the comparison was not trimming off the port, thus healthcheck was always going to fail or denote a change when there may have been none * simplified the comparison (thanks @edgd1er ) * Strip double quotes from umask check (#2601) * Fix problem with enabled UFW with Random Ports (#2603) Fixing #2255 * move vpn config download to /config (#2592) * move vpn config download to /config * fix git safe dir permissions * cleanup vpn config clone * re-add zip dl, set git to default * use alpine:latest for TransmissionUIs build stage (#2573) * Update fetch-external-configs.sh removed duplicate bracket * Update to transmission 4.0.4 * Update configure-openvpn.sh * Switched the order of events, to remove the ipv6 before sed-ing the address (#2695) * Create separate image for transmission build from source (#2691) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * parallel docker builds with matrix (#2694) * consolidate and parallelize image build with matrix multi runner build * fix image name * Update Dockerfile fixed typo * `TRANSMISSION_RPC_URL` option causes a moved permanently error when using PIA (#2657) * Respect option `TRANSMISSION_RPC_URL` remove debug echo * default `TRANSMISSION_RPC_URL` is now grabbed from `default-settings.json` * Stricter grep pattern * Remove redundant grep * Added comment * Use `jq` instead of `sed` to determine the default of `TRANSMISSION_RPC_URL` --------- Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * Fix for PR #2691 (#2698) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * Fix file name * fix image name --------- Co-authored-by: Anastasiya Polina Soyka <apsoyka@protonmail.com> Co-authored-by: Geoff <geoff@gapple.ca> Co-authored-by: ksurl <ksurl@users.noreply.github.com> Co-authored-by: HeavyGee <133152184+heavygee@users.noreply.github.com> Co-authored-by: WitchRecipe <77073792+WitchRecipe@users.noreply.github.com> Co-authored-by: Florian Kretschmer <19738301+Entepotenz@users.noreply.github.com> Co-authored-by: Aemulation <112875887+Aemulation@users.noreply.github.com> Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * fix matrix to build all images --------- Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> Co-authored-by: Anastasiya Polina Soyka <apsoyka@protonmail.com> Co-authored-by: Geoff <geoff@gapple.ca> Co-authored-by: HeavyGee <133152184+heavygee@users.noreply.github.com> Co-authored-by: WitchRecipe <77073792+WitchRecipe@users.noreply.github.com> Co-authored-by: Florian Kretschmer <19738301+Entepotenz@users.noreply.github.com> Co-authored-by: Aemulation <112875887+Aemulation@users.noreply.github.com> Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * fix transmission version check (#2700) * Comment * Switch transmission builder image to combined platform builder (#2704) * separate transmission build to separate image and workflow * set transmission-builder version * use matrix for multi runner builds * fix context * Fix file name * fix image name * fix transmission build version detection * switch to combined platform builder --------- Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> * switch to single platform builder (#2705) Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> --------- Co-authored-by: Anastasiya Polina Soyka <apsoyka@protonmail.com> Co-authored-by: Geoff <geoff@gapple.ca> Co-authored-by: ksurl <ksurl@users.noreply.github.com> Co-authored-by: HeavyGee <133152184+heavygee@users.noreply.github.com> Co-authored-by: WitchRecipe <77073792+WitchRecipe@users.noreply.github.com> Co-authored-by: Florian Kretschmer <19738301+Entepotenz@users.noreply.github.com> Co-authored-by: Aemulation <112875887+Aemulation@users.noreply.github.com> Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> * Update README.md * Bump actions/checkout from 3 to 4 (#2714) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump docker/setup-buildx-action from 2 to 3 (#2718) Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump docker/login-action from 2 to 3 (#2719) Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/v2...v3) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump docker/setup-qemu-action from 2 to 3 (#2720) Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump docker/metadata-action from 4 to 5 (#2721) Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 4 to 5. - [Release notes](https://github.com/docker/metadata-action/releases) - [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md) - [Commits](https://github.com/docker/metadata-action/compare/v4...v5) --- updated-dependencies: - dependency-name: docker/metadata-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump docker/build-push-action from 4 to 5 (#2722) Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v4...v5) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update tips-tricks.md fixed pod man tip * fixing invalid concatenation (#2743) * fixing invalid concatenation --------- Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> * install natpmpc --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Patrick Kishino <patrick.a.kishino@gmail.com> Co-authored-by: Anastasiya Polina Soyka <apsoyka@protonmail.com> Co-authored-by: Geoff <geoff@gapple.ca> Co-authored-by: ksurl <ksurl@users.noreply.github.com> Co-authored-by: HeavyGee <133152184+heavygee@users.noreply.github.com> Co-authored-by: WitchRecipe <77073792+WitchRecipe@users.noreply.github.com> Co-authored-by: Florian Kretschmer <19738301+Entepotenz@users.noreply.github.com> Co-authored-by: Aemulation <112875887+Aemulation@users.noreply.github.com> Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Storm <jamesstorm@gmail.com> * update transmission build version to 4.0.5 * fix: transmission version check (#2753) * fix transmission version check * add git user config * Update Dockerfile Update version --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Anastasiya Polina Soyka <apsoyka@protonmail.com> Co-authored-by: Geoff <geoff@gapple.ca> Co-authored-by: ksurl <ksurl@users.noreply.github.com> Co-authored-by: HeavyGee <133152184+heavygee@users.noreply.github.com> Co-authored-by: WitchRecipe <77073792+WitchRecipe@users.noreply.github.com> Co-authored-by: Florian Kretschmer <19738301+Entepotenz@users.noreply.github.com> Co-authored-by: Aemulation <112875887+Aemulation@users.noreply.github.com> Co-authored-by: Mark Honkoop <112875887+MarkHonkoop@users.noreply.github.com> Co-authored-by: JeeDeWee <57176355+JeeDeWee@users.noreply.github.com> Co-authored-by: Ian Moroney <10791260+IanMoroney@users.noreply.github.com> Co-authored-by: Mugga Joe <150821237+muggajoe@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: James Storm <jamesstorm@gmail.com> Co-authored-by: workflow runner <workflow@github.com>
140 lines
5.0 KiB
Docker
140 lines
5.0 KiB
Docker
FROM alpine:latest as TransmissionUIs
|
|
|
|
RUN apk --no-cache add curl jq \
|
|
&& mkdir -p /opt/transmission-ui \
|
|
&& echo "Install Shift" \
|
|
&& wget -qO- https://github.com/killemov/Shift/archive/master.tar.gz | tar xz -C /opt/transmission-ui \
|
|
&& mv /opt/transmission-ui/Shift-master /opt/transmission-ui/shift \
|
|
&& echo "Install Flood for Transmission" \
|
|
&& wget -qO- https://github.com/johman10/flood-for-transmission/releases/download/latest/flood-for-transmission.tar.gz | tar xz -C /opt/transmission-ui \
|
|
&& echo "Install Combustion" \
|
|
&& wget -qO- https://github.com/Secretmapper/combustion/archive/release.tar.gz | tar xz -C /opt/transmission-ui \
|
|
&& echo "Install kettu" \
|
|
&& wget -qO- https://github.com/endor/kettu/archive/master.tar.gz | tar xz -C /opt/transmission-ui \
|
|
&& mv /opt/transmission-ui/kettu-master /opt/transmission-ui/kettu \
|
|
&& echo "Install Transmission-Web-Control" \
|
|
&& mkdir /opt/transmission-ui/transmission-web-control \
|
|
&& curl -sL $(curl -s https://api.github.com/repos/ronggang/transmission-web-control/releases/latest | jq --raw-output '.tarball_url') | tar -C /opt/transmission-ui/transmission-web-control/ --strip-components=2 -xz \
|
|
&& echo "Install Transmissionic" \
|
|
&& wget -qO- https://github.com/6c65726f79/Transmissionic/releases/download/v1.8.0/Transmissionic-webui-v1.8.0.zip | unzip -q - \
|
|
&& mv web /opt/transmission-ui/transmissionic
|
|
|
|
|
|
FROM ubuntu:22.04 AS base
|
|
|
|
RUN set -ex; \
|
|
apt-get update; \
|
|
apt-get dist-upgrade -y; \
|
|
apt-get install -y --no-install-recommends \
|
|
tzdata \
|
|
iproute2 \
|
|
net-tools \
|
|
nano \
|
|
ca-certificates \
|
|
curl \
|
|
libcurl4-openssl-dev \
|
|
libdeflate-dev \
|
|
libevent-dev \
|
|
libfmt-dev \
|
|
libminiupnpc-dev \
|
|
libnatpmp-dev \
|
|
libpsl-dev \
|
|
libssl-dev \
|
|
natpmpc
|
|
|
|
FROM haugene/transmission-builder:4.0.5 as TransmissionBuilder
|
|
|
|
FROM base
|
|
|
|
VOLUME /data
|
|
VOLUME /config
|
|
|
|
COPY --from=TransmissionUIs /opt/transmission-ui /opt/transmission-ui
|
|
COPY --from=TransmissionBuilder /var/tmp/*.deb /var/tmp/
|
|
|
|
ARG TBT_VERSION=4.0.5
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
RUN echo "installing Transmission" && set -x \
|
|
&& if [[ ${TBT_VERSION} =~ ^4 ]]; then \
|
|
ls -alh /var/tmp/*.deb ;\
|
|
debfile=$(compgen -G /var/tmp/transmission_*_$(dpkg --print-architecture).deb); \
|
|
if [[ -n ${debfile} ]]; then \
|
|
echo "Installing transmission ${TBT_VERSION}" && dpkg -i ${debfile} ;\
|
|
else echo "No /var/tmp/transmission_*_$(dpkg --print-architecture).deb found. Exiting" \
|
|
; exit ; fi ; \
|
|
else echo "Installing transmission from repository" \
|
|
&& export TBT_VERSION=3.00 \
|
|
&& apt-get install -y --no-install-recommends transmission-daemon transmission-cli; fi
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
dumb-init openvpn privoxy \
|
|
tzdata dnsutils iputils-ping ufw openssh-client git jq curl wget unrar unzip bc \
|
|
&& ln -s /usr/local/share/transmission/public_html/images /opt/transmission-ui/transmission-web-control \
|
|
&& ln -s /usr/local/share/transmission/public_html/transmission-app.js /opt/transmission-ui/transmission-web-control/transmission-app.js \
|
|
&& ln -s /usr/local/share/transmission/public_html/index.html /opt/transmission-ui/transmission-web-control/index.original.html \
|
|
&& rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* \
|
|
&& groupmod -g 1000 users \
|
|
&& useradd -u 911 -U -d /config -s /bin/false abc \
|
|
&& usermod -G users abc
|
|
|
|
|
|
# Add configuration and scripts
|
|
ADD openvpn/ /etc/openvpn/
|
|
ADD transmission/ /etc/transmission/
|
|
ADD scripts /etc/scripts/
|
|
ADD privoxy/scripts /opt/privoxy/
|
|
|
|
# Support legacy IPTables commands
|
|
RUN update-alternatives --set iptables $(which iptables-legacy) && \
|
|
update-alternatives --set ip6tables $(which ip6tables-legacy)
|
|
|
|
ENV OPENVPN_USERNAME=**None** \
|
|
OPENVPN_PASSWORD=**None** \
|
|
OPENVPN_PROVIDER=**None** \
|
|
OPENVPN_OPTS= \
|
|
GLOBAL_APPLY_PERMISSIONS=true \
|
|
TRANSMISSION_HOME=/config/transmission-home \
|
|
TRANSMISSION_RPC_PORT=9091 \
|
|
TRANSMISSION_RPC_USERNAME= \
|
|
TRANSMISSION_RPC_PASSWORD= \
|
|
TRANSMISSION_DOWNLOAD_DIR=/data/completed \
|
|
TRANSMISSION_INCOMPLETE_DIR=/data/incomplete \
|
|
TRANSMISSION_WATCH_DIR=/data/watch \
|
|
CREATE_TUN_DEVICE=true \
|
|
ENABLE_UFW=false \
|
|
UFW_ALLOW_GW_NET=false \
|
|
UFW_EXTRA_PORTS= \
|
|
UFW_DISABLE_IPTABLES_REJECT=false \
|
|
PUID= \
|
|
PGID= \
|
|
PEER_DNS=true \
|
|
PEER_DNS_PIN_ROUTES=true \
|
|
DROP_DEFAULT_ROUTE= \
|
|
WEBPROXY_ENABLED=false \
|
|
WEBPROXY_PORT=8118 \
|
|
WEBPROXY_USERNAME= \
|
|
WEBPROXY_PASSWORD= \
|
|
LOG_TO_STDOUT=false \
|
|
HEALTH_CHECK_HOST=google.com \
|
|
SELFHEAL=false
|
|
|
|
HEALTHCHECK --interval=1m CMD /etc/scripts/healthcheck.sh
|
|
|
|
# Pass revision as a build arg, set it as env var
|
|
ARG REVISION
|
|
ENV REVISION=${REVISION:-""}
|
|
|
|
# Compatability with https://hub.docker.com/r/willfarrell/autoheal/
|
|
LABEL autoheal=true
|
|
|
|
# Expose ports and run
|
|
|
|
#Transmission-RPC
|
|
EXPOSE 9091
|
|
# Privoxy
|
|
EXPOSE 8118
|
|
|
|
CMD ["dumb-init", "/etc/openvpn/start.sh"]
|