Skip to content

Commit

Permalink
use vpn base
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhotio committed Jan 23, 2024
1 parent 8238296 commit 7515db4
Show file tree
Hide file tree
Showing 43 changed files with 28 additions and 337 deletions.
6 changes: 3 additions & 3 deletions VERSION.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"vuetorrent_version": "2.5.0",
"changelog": "https://github.com/qbittorrent/qbittorrent/compare/release-4.6.2...release-4.6.3",
"upstream_image": "ghcr.io/hotio/base",
"upstream_tag": "alpine",
"upstream_digest_amd64": "sha256:aba1ad70d73a01a04940ceefcc0506c8867aa99be1e1598f7f57d79dc462ba1d",
"upstream_digest_arm64": "sha256:5f44dcee2c34486af761dca45b1a7b57ef953ee485050544c2255c6f21ed0278",
"upstream_tag": "alpinevpn",
"upstream_digest_amd64": "sha256:e8c549548c101b12abc2fc9399c6c6dc33e5d56603e01f6e3e23fed42d08d54a",
"upstream_digest_arm64": "sha256:b4fca2fdedc503aaa5f73aa1483c442d0ba03113bd359a0ab47ed75a33e5bd9b",
"test_url": "http://localhost:8080",
"nightwalker_version": "2301b1cc436d802abe1e2cb6f132dff12e40157b"
}
10 changes: 1 addition & 9 deletions linux-amd64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ ARG UPSTREAM_DIGEST_AMD64

FROM ${UPSTREAM_IMAGE}@${UPSTREAM_DIGEST_AMD64}
EXPOSE 8080
ENV VPN_ENABLED="false" VPN_PROVIDER="generic" VPN_LAN_NETWORK="" VPN_CONF="wg0" VPN_ADDITIONAL_PORTS="" WEBUI_PORTS="8080/tcp,8080/udp" PRIVOXY_ENABLED="false" S6_SERVICES_GRACETIME=180000 S6_STAGE2_HOOK="/init-hook"

VOLUME ["${CONFIG_DIR}"]
ENV WEBUI_PORTS="8080/tcp,8080/udp"

RUN ln -s "${CONFIG_DIR}" "${APP_DIR}/qBittorrent"

RUN apk add --no-cache privoxy iptables ip6tables iproute2 openresolv wireguard-tools ipcalc && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing wireguard-go && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community libnatpmp

ARG FULL_VERSION

RUN curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULL_VERSION}/x86_64-qbittorrent-nox" > "${APP_DIR}/qbittorrent-nox" && \
chmod 755 "${APP_DIR}/qbittorrent-nox"

Expand All @@ -30,4 +23,3 @@ RUN mkdir "${APP_DIR}/nightwalker" && \
chmod -R u=rwX,go=rX "${APP_DIR}/nightwalker"

COPY root/ /
RUN chmod +x /init-hook
10 changes: 1 addition & 9 deletions linux-arm64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ ARG UPSTREAM_DIGEST_ARM64

FROM ${UPSTREAM_IMAGE}@${UPSTREAM_DIGEST_ARM64}
EXPOSE 8080
ENV VPN_ENABLED="false" VPN_PROVIDER="generic" VPN_LAN_NETWORK="" VPN_CONF="wg0" VPN_ADDITIONAL_PORTS="" WEBUI_PORTS="8080/tcp,8080/udp" PRIVOXY_ENABLED="false" S6_SERVICES_GRACETIME=180000 S6_STAGE2_HOOK="/init-hook"

VOLUME ["${CONFIG_DIR}"]
ENV WEBUI_PORTS="8080/tcp,8080/udp"

RUN ln -s "${CONFIG_DIR}" "${APP_DIR}/qBittorrent"

RUN apk add --no-cache privoxy iptables ip6tables iproute2 openresolv wireguard-tools ipcalc && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing wireguard-go && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community libnatpmp

ARG FULL_VERSION

RUN curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULL_VERSION}/aarch64-qbittorrent-nox" > "${APP_DIR}/qbittorrent-nox" && \
chmod 755 "${APP_DIR}/qbittorrent-nox"

Expand All @@ -30,4 +23,3 @@ RUN mkdir "${APP_DIR}/nightwalker" && \
chmod -R u=rwX,go=rX "${APP_DIR}/nightwalker"

COPY root/ /
RUN chmod +x /init-hook
4 changes: 0 additions & 4 deletions root/app/privoxy.conf

This file was deleted.

3 changes: 3 additions & 0 deletions root/app/proton_update_app
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# shellcheck shell=bash
until pidof qbittorrent-nox > /dev/null; do
sleep 1
done
webui_https="http"
if grep -q 'WebUI\\HTTPS\\Enabled=true' "${CONFIG_DIR}/config/qBittorrent.conf"; then
webui_https="https"
Expand Down
1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-perms/up

This file was deleted.

Empty file.
11 changes: 0 additions & 11 deletions root/etc/s6-overlay/s6-rc.d/init-privoxy/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-privoxy/type

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-privoxy/up

This file was deleted.

Empty file.
19 changes: 0 additions & 19 deletions root/etc/s6-overlay/s6-rc.d/init-secrets/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-secrets/type

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-secrets/up

This file was deleted.

19 changes: 19 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-setup-app/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/command/with-contenv bash
# shellcheck shell=bash

umask "${UMASK}"

echo "
----------------------------------------------------------------------
ENVIRONMENT APP
----------------------------------------------------------------------
WEBUI_PORTS=${WEBUI_PORTS}
----------------------------------------------------------------------
"

if [[ ! -f "${CONFIG_DIR}/config/qBittorrent.conf" ]]; then
echo "Installing default \"qBittorrent.conf\"..."
mkdir -p "${CONFIG_DIR}/config"
cp "${APP_DIR}/qBittorrent.conf" "${CONFIG_DIR}/config/qBittorrent.conf"
chown hotio:hotio -R "${CONFIG_DIR}/config"
fi
File renamed without changes.
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/init-setup-app/up
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-setup-app/run
Empty file.
46 changes: 0 additions & 46 deletions root/etc/s6-overlay/s6-rc.d/init-setup/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-setup/type

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-setup/up

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-wireguard/down

This file was deleted.

12 changes: 0 additions & 12 deletions root/etc/s6-overlay/s6-rc.d/init-wireguard/run.down

This file was deleted.

163 changes: 0 additions & 163 deletions root/etc/s6-overlay/s6-rc.d/init-wireguard/run.up

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-wireguard/type

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/init-wireguard/up

This file was deleted.

Empty file.
6 changes: 0 additions & 6 deletions root/etc/s6-overlay/s6-rc.d/service-privoxy/run

This file was deleted.

1 change: 0 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/service-privoxy/type

This file was deleted.

Empty file.
4 changes: 0 additions & 4 deletions root/etc/s6-overlay/s6-rc.d/service-proton/finish

This file was deleted.

Loading

0 comments on commit 7515db4

Please sign in to comment.