Skip to content

Commit 19544a7

Browse files
authored
Merge pull request #7 from linuxserver/3.20
Rebase to 3.20
2 parents 9822873 + 5c507ef commit 19544a7

File tree

8 files changed

+29
-17
lines changed

8 files changed

+29
-17
lines changed

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "**** External trigger running off of main branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_SOCKET_PROXY_MAIN\". ****"
2121
echo "External trigger running off of main branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_SOCKET_PROXY_MAIN\`" >> $GITHUB_STEP_SUMMARY
2222
echo "**** Retrieving external version ****"
23-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
23+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2424
&& awk '/^P:'"nginx"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
2525
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2626
echo "**** Can't retrieve external version, exiting ****"
@@ -74,7 +74,7 @@ jobs:
7474
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
7575
echo "Version ${EXT_RELEASE} already pushed, exiting" >> $GITHUB_STEP_SUMMARY
7676
exit 0
77-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"nginx"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
77+
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"nginx"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
7878
echo "**** New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting ****"
7979
echo "New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
8080
FAILURE_REASON="New version ${EXT_RELEASE} for socket-proxy tag latest is detected, however not all arch repos are updated yet. Will try again later."

Dockerfile

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

3-
FROM docker.io/alpine:3.19
3+
FROM docker.io/alpine:3.20
44

55
# set version label
66
ARG BUILD_DATE
@@ -46,13 +46,14 @@ RUN \
4646
curl \
4747
envsubst && \
4848
if [ -z ${NGINX_VERSION+x} ]; then \
49-
NGINX_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
49+
NGINX_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
5050
&& awk '/^P:nginx$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
5151
fi && \
5252
apk add --no-cache \
5353
nginx==${NGINX_VERSION} && \
54-
rm -f /etc/nginx/conf.d/stream.conf && \
55-
rm -f /etc/nginx/http.d/default.conf
54+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
55+
rm -f /etc/nginx/conf.d/stream.conf && \
56+
rm -f /etc/nginx/http.d/default.conf
5657

5758
# add local files
5859
COPY root/ /

Dockerfile.aarch64

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

3-
FROM docker.io/alpine:3.19
3+
FROM docker.io/alpine:3.20
44

55
# set version label
66
ARG BUILD_DATE
@@ -46,13 +46,14 @@ RUN \
4646
curl \
4747
envsubst && \
4848
if [ -z ${NGINX_VERSION+x} ]; then \
49-
NGINX_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
49+
NGINX_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
5050
&& awk '/^P:nginx$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
5151
fi && \
5252
apk add --no-cache \
5353
nginx==${NGINX_VERSION} && \
54-
rm -f /etc/nginx/conf.d/stream.conf && \
55-
rm -f /etc/nginx/http.d/default.conf
54+
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
55+
rm -f /etc/nginx/conf.d/stream.conf && \
56+
rm -f /etc/nginx/http.d/default.conf
5657

5758
# add local files
5859
COPY root/ /

Jenkinsfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ pipeline {
2525
DEV_DOCKERHUB_IMAGE = 'lsiodev/socket-proxy'
2626
PR_DOCKERHUB_IMAGE = 'lspipepr/socket-proxy'
2727
DIST_IMAGE = 'alpine'
28-
DIST_TAG = '3.19'
29-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
28+
DIST_TAG = '3.20'
29+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
3030
DIST_REPO_PACKAGES = 'nginx'
3131
MULTIARCH='true'
32-
CI='false'
32+
CI='true'
3333
CI_WEB='false'
3434
CI_PORT='2375'
3535
CI_SSL='false'
@@ -495,6 +495,7 @@ pipeline {
495495
--label \"org.opencontainers.image.title=Socket-proxy\" \
496496
--label \"org.opencontainers.image.description=socket-proxy image by linuxserver.io\" \
497497
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
498+
--provenance=false --sbom=false \
498499
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
499500
}
500501
}
@@ -526,6 +527,7 @@ pipeline {
526527
--label \"org.opencontainers.image.title=Socket-proxy\" \
527528
--label \"org.opencontainers.image.description=socket-proxy image by linuxserver.io\" \
528529
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
530+
--provenance=false --sbom=false \
529531
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
530532
}
531533
}
@@ -554,6 +556,7 @@ pipeline {
554556
--label \"org.opencontainers.image.title=Socket-proxy\" \
555557
--label \"org.opencontainers.image.description=socket-proxy image by linuxserver.io\" \
556558
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
559+
--provenance=false --sbom=false \
557560
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
558561
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
559562
retry(5) {

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
304304

305305
## Versions
306306

307+
* **24.05.24:** - Rebase to Alpine 3.20.
307308
* **15.04.24:** - Allow disabling IPv6 support for legacy devices.
308309
* **08.04.24:** - Use nginx due to haproxy's wonky websockets handling.
309310
* **07.04.24:** - Initial Release.

jenkins-vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ repo_vars:
1616
- DEV_DOCKERHUB_IMAGE = 'lsiodev/socket-proxy'
1717
- PR_DOCKERHUB_IMAGE = 'lspipepr/socket-proxy'
1818
- DIST_IMAGE = 'alpine'
19-
- DIST_TAG = '3.19'
20-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
19+
- DIST_TAG = '3.20'
20+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.20/main/'
2121
- DIST_REPO_PACKAGES = 'nginx'
2222
- MULTIARCH='true'
23-
- CI='false'
23+
- CI='true'
2424
- CI_WEB='false'
2525
- CI_PORT='2375'
2626
- CI_SSL='false'

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ full_custom_readme: |
308308
309309
## Versions
310310
311+
* **24.05.24:** - Rebase to Alpine 3.20.
311312
* **15.04.24:** - Allow disabling IPv6 support for legacy devices.
312313
* **08.04.24:** - Use nginx due to haproxy's wonky websockets handling.
313314
* **07.04.24:** - Initial Release.

root/docker-entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ echo '
2727
To support LSIO projects visit:
2828
https://www.linuxserver.io/donate/
2929
30+
───────────────────────────────────────'
31+
if [[ -f /build_version ]]; then
32+
cat /build_version
33+
echo '
3034
───────────────────────────────────────
31-
'
35+
'
36+
fi
3237

3338
echo "[ls.io-init] done."
3439

0 commit comments

Comments
 (0)