Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging dev into master in prep for new release #2755

Merged
merged 34 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
05cea0a
Add Transmissionic Web UI & New Documentation (#2589)
apsoyka Apr 19, 2023
ea70117
Added step to build a .deb file to install and reduce image size (#2590)
pkishino Apr 19, 2023
30d070d
Check for update-port script existing instead of being executable (#2…
gapple Apr 22, 2023
2bd89d7
Fixed TWC paths (#2600)
pkishino Apr 29, 2023
3efaf14
add docker build caching to workflow (#2609)
ksurl May 9, 2023
2169498
Privoxy eth0 fixes, healthcheck comparison tweak and start.sh update …
heavygee May 11, 2023
9123cf0
Strip double quotes from umask check (#2601)
pkishino May 11, 2023
82756d6
Fix problem with enabled UFW with Random Ports (#2603)
WitchRecipe May 11, 2023
32833c4
move vpn config download to /config (#2592)
ksurl May 17, 2023
1644c98
use alpine:latest for TransmissionUIs build stage (#2573)
Entepotenz May 17, 2023
42eb2ee
Update fetch-external-configs.sh
pkishino May 19, 2023
91f6973
Update to transmission 4.0.4
pkishino Aug 28, 2023
3ac3e14
Update configure-openvpn.sh
pkishino Aug 30, 2023
9dd0e41
Switched the order of events, to remove the ipv6 before sed-ing the a…
heavygee Sep 1, 2023
fffb29d
Create separate image for transmission build from source (#2691)
ksurl Sep 2, 2023
5468a99
parallel docker builds with matrix (#2694)
ksurl Sep 2, 2023
fb7d10d
Merge branch 'master' into dev
pkishino Sep 3, 2023
553edc8
Update Dockerfile
pkishino Sep 4, 2023
75147a2
`TRANSMISSION_RPC_URL` option causes a moved permanently error when u…
Aemulation Sep 4, 2023
17bc7e1
Fix for PR #2691 (#2698)
ksurl Sep 4, 2023
36a1b4a
Fix #2694 image build (#2699)
ksurl Sep 4, 2023
59dfed2
fix transmission version check (#2700)
ksurl Sep 4, 2023
019be3e
Merge branch 'master' into dev
pkishino Sep 4, 2023
5d6174c
Comment
pkishino Sep 4, 2023
73a2818
Switch transmission builder image to combined platform builder (#2704)
ksurl Sep 4, 2023
10d3cff
switch to single platform builder (#2705)
ksurl Sep 4, 2023
47dfced
Merge branch 'master' into dev
pkishino Sep 4, 2023
461d504
Fix web proxy stopping to work (#2678)
JeeDeWee Sep 5, 2023
44ba9e6
Remove script_security (#2702)
pkishino Sep 5, 2023
8bae335
Revert "Remove script_security (#2702)" (#2708)
pkishino Sep 5, 2023
52d432d
Update configure-openvpn.sh (#2707)
IanMoroney Sep 5, 2023
e7e6b4a
Add natpmpc (#2746)
muggajoe Nov 14, 2023
bff5708
update transmission build version to 4.0.5
Dec 8, 2023
c19144a
fix: transmission version check (#2753)
ksurl Dec 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/check-transmission-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: dev

Expand All @@ -21,6 +21,8 @@ jobs:
if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then
echo "$LATEST_VERSION" > upstream/transmission-version.txt
git add upstream/transmission-version.txt
git config user.email "[email protected]"
git config user.name "Transmission-Bot"
git commit -m "update transmission build version to ${LATEST_VERSION}"
git push origin dev
fi
18 changes: 7 additions & 11 deletions .github/workflows/docker-image-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,29 @@ jobs:
context: ./proxy
- image-name: haugene/transmission-rss
context: ./plugins/rss
platform:
- linux/amd64
- linux/arm
- linux/arm64
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# QEMU emulator to build for other platforms
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

# Buildx automates creating the multi-arch manifest build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

# Authenticate so that we can push to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Generate image tags and labels
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
${{ matrix.image-name }}
Expand All @@ -63,10 +59,10 @@ jobs:

# Finally, build and push the images
- name: Build image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ${{ matrix.context }}
platforms: ${{ matrix.platform }}
platforms: linux/amd64,linux/arm,linux/arm64
build-args: |
REVISION=${{ github.sha }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down
21 changes: 7 additions & 14 deletions .github/workflows/docker-transmission-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,9 @@ on:
jobs:
build-transmission:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm
- linux/arm64
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

# Get latest version of Transmission
- name: Get Transmission version
Expand All @@ -30,33 +23,33 @@ jobs:

# QEMU emulator to build for other platforms
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

# Buildx automates creating the multi-arch manifest build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

# Authenticate so that we can push to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Generate image tag and labels
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: haugene/transmission-builder
tags: type=match,pattern=(\d+.\d+.\d+),group=1,value=${{ env.TBT_VERSION }}

# Finally, build and push the image
- name: Build image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: upstream
platforms: ${{ matrix.platform }}
platforms: linux/amd64,linux/arm,linux/arm64
build-args: |
REVISION=${{ github.sha }}
TBT_VERSION=${{ env.TBT_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ RUN set -ex; \
libminiupnpc-dev \
libnatpmp-dev \
libpsl-dev \
libssl-dev
libssl-dev \
natpmpc

FROM haugene/transmission-builder:4.0.4 as TransmissionBuilder

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OpenVPN and Transmission with WebUI

[![Docker Build](https://img.shields.io/github/actions/workflow/status/haugene/docker-transmission-openvpn/docker-image-builds.yml
)](https://hub.docker.com/r/haugene/transmission-openvpn/)
[![Docker Pulls](https://img.shields.io/docker/pulls/haugene/transmission-openvpn.svg)](https://hub.docker.com/r/haugene/transmission-openvpn/)

This container contains OpenVPN and Transmission with a configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/tips-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $ sudo systemctl start transmission-openvpn.service
A working example of running this container behind a traefik reverse proxy can be found here:
[Config](https://github.com/haugene/docker-transmission-openvpn/issues/1763#issuecomment-844404143)

#### Running this container with Podman
# Running this container with Podman

The `podman run` command is almost identical to [the one mentioned in README.md](../README.md#docker-run) but with the following exception:

Expand Down
2 changes: 1 addition & 1 deletion openvpn/fetch-external-configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ elif [[ "${VPN_CONFIG_SOURCE_TYPE}" == "github_clone" ]]; then
git -C "${config_repo}" checkout "${GITHUB_CONFIG_SOURCE_REVISION}"
else
echo "Cloning ${GITHUB_CONFIG_REPO_URL} into ${config_repo}"
config_repo_old="${config_repo}" + "_old"
config_repo_old="${config_repo}_old"
mv "${config_repo}" "${config_repo_old}"
git clone -b "${GITHUB_CONFIG_SOURCE_REVISION}" "${GITHUB_CONFIG_REPO_URL}" "${config_repo}"
fi
Expand Down
4 changes: 2 additions & 2 deletions openvpn/nordvpn/configure-openvpn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# NORDVPN_COUNTRY: code or name
# curl -s "https://api.nordvpn.com/v1/servers/countries" | jq --raw-output '.[] | [.code, .name] | @tsv'
# NORDVPN_PROTOCOL: tcp or upd, tcp if none or unknown. Many technologies are not used as only openvpn_udp and openvpn_tcp are tested.
# NORDVPN_PROTOCOL: tcp or udp, tcp if none or unknown. Many technologies are not used as only openvpn_udp and openvpn_tcp are tested.
# Will request api with openvpn_<NORDVPN_PROTOCOL>.
# curl -s "https://api.nordvpn.com/v1/technologies" | jq --raw-output '.[] | [.identifier, .name ] | @tsv' | grep openvpn
# NORDVPN_CATEGORY: default p2p. not all countries have all combination of NORDVPN_PROTOCOL(technologies) and NORDVPN_CATEGORY(groups),
Expand Down Expand Up @@ -390,4 +390,4 @@ fi

export OPENVPN_CONFIG=${selected}

cd "${0%/*}"
cd "${0%/*}"
3 changes: 1 addition & 2 deletions privoxy/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ set_port()
# Set the port for the IPv4 interface
adr=$(ip -4 a show eth0| grep -oP "(?<=inet )([^/]+)")
adr=${adr:-"0.0.0.0"}
sed -i -E "s/^listen-address\s+.*/listen-address ${adr}:$1/" "$2"

sed -i -E "s/^listen-address.*/listen-address ${adr}:$1/" "$2"
}

if [[ "${WEBPROXY_ENABLED}" = "true" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if [[ ${WEBPROXY_ENABLED} =~ [yY][eE]?[Ss]?|[tT][Rr][Uu][eE] ]]; then
if [[ ${PROXY} -eq 0 ]]; then
echo "Privoxy warning: process was stopped, restarting."
fi
proxy_ip=$(grep -oP "(?<=^listen-address )[0-9\.]+" /etc/privoxy/config)
proxy_ip=$(grep -i "^listen-address" /etc/privoxy/config | awk -F ' ' '{print $2}' | awk -F ':' '{print $1}')
cont_ip=$(ip -j a show dev eth0 | jq -r .[].addr_info[].local)
if [[ ${proxy_ip} != ${cont_ip} ]]; then
echo "Privoxy error: container ip (${cont_ip} has changed: privoxy listening to ${proxy_ip}, restarting privoxy."
Expand Down
2 changes: 1 addition & 1 deletion upstream/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN set -ex; \
pkg-config \
tzdata \
xz-utils

#This will build the transmission image to re-use in our container
RUN mkdir -p /home/transmission4/ && cd /home/transmission4/ \
&& curl -L -o transmission4.tar.xz "https://github.com/transmission/transmission/releases/download/${TBT_VERSION}/transmission-${TBT_VERSION}.tar.xz" \
&& tar -xf transmission4.tar.xz && cd "transmission-${TBT_VERSION}" && mkdir build && cd build \
Expand Down
2 changes: 1 addition & 1 deletion upstream/transmission-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.4
4.0.5