Skip to content

Commit 14833fd

Browse files
committed
Rebase to 3.21
1 parent bfebf7b commit 14833fd

File tree

7 files changed

+22
-17
lines changed

7 files changed

+22
-17
lines changed

.github/workflows/external_trigger.yml

+2-2
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

+6-2
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

+6-2
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

+1-2
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

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This image provides various versions that are available via tags. Please read th
6262

6363
| Tag | Available | Description |
6464
| :----: | :----: |--- |
65-
| latest || Stable releases based on Alpine *without* support for compiling Wireguard modules. |
65+
| latest || Stable releases based on Alpine *without* support for compiling Wireguard module. |
6666
| legacy || Stable releases with support for compiling Wireguard modules for older kernels. |
6767

6868
## Application Setup
@@ -226,7 +226,7 @@ Containers are configured using parameters passed at runtime (such as those abov
226226
| `-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. |
227227
| `-e LOG_CONFS=true` | Generated QR codes will be displayed in the docker log. Set to `false` to skip log output. |
228228
| `-v /config` | Contains all relevant configuration files. |
229-
| `-v /lib/modules` | Host kernel modules for situations where they're not already loaded. |
229+
| `-v /lib/modules` | Path to host kernel module for situations where it's not already loaded. |
230230
| `--sysctl=` | Required for client mode. |
231231
| `--read-only=true` | Run container with a read-only filesystem. Please [read the docs](https://docs.linuxserver.io/misc/read-only/). |
232232
| `--cap-add=NET_ADMIN` | Neccessary for Wireguard to create its VPN interface. |
@@ -398,6 +398,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
398398

399399
## Versions
400400

401+
* **20.12.24:** - Rebase to Alpine 3.21.
401402
* **13.08.24:** - Add `errors` plugin to default Corefile.
402403
* **23.07.24:** - Install kmod from alpine repository.
403404
* **24.05.24:** - Rebase to Alpine 3.20, install wireguard-tools from Alpine repo.

jenkins-vars.yml

+1-2
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

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ available_architectures:
1313
# development version
1414
development_versions: true
1515
development_versions_items:
16-
- {tag: "latest", desc: "Stable releases based on Alpine *without* support for compiling Wireguard modules."}
16+
- {tag: "latest", desc: "Stable releases based on Alpine *without* support for compiling Wireguard module."}
1717
- {tag: "legacy", desc: "Stable releases with support for compiling Wireguard modules for older kernels."}
1818
# container parameters
1919
common_param_env_vars_enabled: true
@@ -23,13 +23,10 @@ param_volumes:
2323
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Contains all relevant configuration files."}
2424
opt_param_usage_include_vols: true
2525
opt_param_volumes:
26-
- {vol_path: "/lib/modules", vol_host_path: "/lib/modules", desc: "Host kernel modules for situations where they're not already loaded."}
26+
- {vol_path: "/lib/modules", vol_host_path: "/lib/modules", desc: "Path to host kernel module for situations where it's not already loaded."}
2727
param_usage_include_ports: true
2828
param_ports:
2929
- {external_port: "51820", internal_port: "51820/udp", port_desc: "wireguard port"}
30-
param_usage_include_env: true
31-
param_env_vars:
32-
- {env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
3330
cap_add_param: true
3431
cap_add_param_vars:
3532
- {cap_add_var: "NET_ADMIN", desc: "Neccessary for Wireguard to create its VPN interface."}
@@ -168,6 +165,7 @@ init_diagram: |
168165
"wireguard:latest" <- Base Images
169166
# changelog
170167
changelogs:
168+
- {date: "20.12.24:", desc: "Rebase to Alpine 3.21."}
171169
- {date: "13.08.24:", desc: "Add `errors` plugin to default Corefile."}
172170
- {date: "23.07.24:", desc: "Install kmod from alpine repository."}
173171
- {date: "24.05.24:", desc: "Rebase to Alpine 3.20, install wireguard-tools from Alpine repo."}

0 commit comments

Comments
 (0)