Skip to content

Commit 36a4a45

Browse files
authored
Merge pull request #369 from linuxserver/3.21
2 parents 16b3e20 + 0943697 commit 36a4a45

File tree

7 files changed

+20
-12
lines changed

7 files changed

+20
-12
lines changed

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
2424
echo "> External trigger running off of master branch. To disable this trigger, add \`wireguard_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
2525
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
26-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
26+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2727
&& awk '/^P:'"wireguard-tools"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
2828
echo "Type is \`alpine_repo\`" >> $GITHUB_STEP_SUMMARY
2929
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
@@ -96,7 +96,7 @@ jobs:
9696
if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
9797
echo "Version \`${EXT_RELEASE}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
9898
exit 0
99-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"wireguard-tools"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
99+
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"wireguard-tools"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
100100
echo "New version \`${EXT_RELEASE}\` found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
101101
FAILURE_REASON="New version ${EXT_RELEASE} for wireguard tag latest is detected, however not all arch repos are updated yet. Will try again later."
102102
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
44

55
# set version label
66
ARG BUILD_DATE
@@ -10,6 +10,10 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
1010
LABEL maintainer="thespad"
1111

1212
RUN \
13+
if [ -z ${WIREGUARD_RELEASE+x} ]; then \
14+
WIREGUARD_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
15+
&& awk '/^P:wireguard-tools$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
16+
fi && \
1317
echo "**** install dependencies ****" && \
1418
apk add --no-cache \
1519
bc \
@@ -25,7 +29,7 @@ RUN \
2529
libqrencode-tools \
2630
net-tools \
2731
openresolv \
28-
wireguard-tools && \
32+
wireguard-tools==${WIREGUARD_RELEASE} && \
2933
echo "wireguard" >> /etc/modules && \
3034
cd /sbin && \
3135
for i in ! !-save !-restore; do \

Dockerfile.aarch64

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21
44

55
# set version label
66
ARG BUILD_DATE
@@ -10,6 +10,10 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
1010
LABEL maintainer="thespad"
1111

1212
RUN \
13+
if [ -z ${WIREGUARD_RELEASE+x} ]; then \
14+
WIREGUARD_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
15+
&& awk '/^P:wireguard-tools$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
16+
fi && \
1317
echo "**** install dependencies ****" && \
1418
apk add --no-cache \
1519
bc \
@@ -25,7 +29,7 @@ RUN \
2529
libqrencode-tools \
2630
net-tools \
2731
openresolv \
28-
wireguard-tools && \
32+
wireguard-tools==${WIREGUARD_RELEASE} && \
2933
echo "wireguard" >> /etc/modules && \
3034
cd /sbin && \
3135
for i in ! !-save !-restore; do \

Jenkinsfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ pipeline {
2727
DEV_DOCKERHUB_IMAGE = 'lsiodev/wireguard'
2828
PR_DOCKERHUB_IMAGE = 'lspipepr/wireguard'
2929
DIST_IMAGE = 'alpine'
30-
DIST_TAG = '3.20'
31-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
30+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.21/main/'
3231
DIST_REPO_PACKAGES = 'wireguard-tools'
3332
MULTIARCH='true'
3433
CI='false'

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Containers are configured using parameters passed at runtime (such as those abov
216216
| `-e PERSISTENTKEEPALIVE_PEERS=` | Set to `all` or a list of comma separated peers (ie. `1,4,laptop`) for the wireguard server to send keepalive packets to listed peers every 25 seconds. Useful if server is accessed via domain name and has dynamic IP. Used only in server mode. |
217217
| `-e LOG_CONFS=true` | Generated QR codes will be displayed in the docker log. Set to `false` to skip log output. |
218218
| `-v /config` | Contains all relevant configuration files. |
219-
| `-v /lib/modules` | Host kernel modules for situations where they're not already loaded. |
219+
| `-v /lib/modules` | Path to host kernel module for situations where it's not already loaded. |
220220
| `--sysctl=` | Required for client mode. |
221221
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
222222
| `--cap-add=NET_ADMIN` | Neccessary for Wireguard to create its VPN interface. |
@@ -389,6 +389,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
389389
## Versions
390390

391391
* **01.01.25:** - Deprecate legacy branch.
392+
* **20.12.24:** - Rebase to Alpine 3.21.
392393
* **13.08.24:** - Add `errors` plugin to default Corefile.
393394
* **23.07.24:** - Install kmod from alpine repository.
394395
* **24.05.24:** - Rebase to Alpine 3.20, install wireguard-tools from Alpine repo.

jenkins-vars.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ repo_vars:
1515
- DEV_DOCKERHUB_IMAGE = 'lsiodev/wireguard'
1616
- PR_DOCKERHUB_IMAGE = 'lspipepr/wireguard'
1717
- DIST_IMAGE = 'alpine'
18-
- DIST_TAG = '3.20'
19-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
18+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.21/main/'
2019
- DIST_REPO_PACKAGES = 'wireguard-tools'
2120
- MULTIARCH='true'
2221
- CI='false'

readme-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ param_volumes:
1818
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Contains all relevant configuration files."}
1919
opt_param_usage_include_vols: true
2020
opt_param_volumes:
21-
- {vol_path: "/lib/modules", vol_host_path: "/lib/modules", desc: "Host kernel modules for situations where they're not already loaded."}
21+
- {vol_path: "/lib/modules", vol_host_path: "/lib/modules", desc: "Path to host kernel module for situations where it's not already loaded."}
2222
param_usage_include_ports: true
2323
param_ports:
2424
- {external_port: "51820", internal_port: "51820/udp", port_desc: "wireguard port"}
@@ -160,6 +160,7 @@ init_diagram: |
160160
# changelog
161161
changelogs:
162162
- {date: "01.01.25:", desc: "Deprecate legacy branch."}
163+
- {date: "20.12.24:", desc: "Rebase to Alpine 3.21."}
163164
- {date: "13.08.24:", desc: "Add `errors` plugin to default Corefile."}
164165
- {date: "23.07.24:", desc: "Install kmod from alpine repository."}
165166
- {date: "24.05.24:", desc: "Rebase to Alpine 3.20, install wireguard-tools from Alpine repo."}

0 commit comments

Comments
 (0)