Skip to content

Commit 24c135f

Browse files
committed
deprecate armhf, use go 1.20 to build
1 parent e88fd69 commit 24c135f

File tree

3 files changed

+8
-8
lines changed
  • root/etc/s6-overlay/s6-rc.d
    • init-mod-universal-cloudflared-setup
    • svc-mod-universal-cloudflared

3 files changed

+8
-8
lines changed

Dockerfile

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

33
# Build container
4-
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 AS buildstage
4+
FROM ghcr.io/linuxserver/baseimage-alpine:3.18 AS buildstage
55

66
ARG MOD_VERSION
77

@@ -32,9 +32,6 @@ RUN mv cloudflared /root-layer/cloudflared/cloudflared-amd64
3232
RUN GOOS=linux GOARCH=arm64 make cloudflared
3333
RUN mv cloudflared /root-layer/cloudflared/cloudflared-arm64
3434

35-
RUN GOOS=linux GOARCH=arm make cloudflared
36-
RUN mv cloudflared /root-layer/cloudflared/cloudflared-armhf
37-
3835
COPY root/ /root-layer/
3936

4037
## Single layer deployed image ##

root/etc/s6-overlay/s6-rc.d/init-mod-universal-cloudflared-setup/run

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ if [ "${ARCH}" = "x86_64" ]; then
99
elif [ "${ARCH}" = "aarch64" ]; then
1010
ARCH="arm64"
1111
elif [ "${ARCH}" = "armv7l" ]; then
12-
ARCH="armhf"
12+
echo "**** The universal cloudflared mod no longer supports arm32v7/armhf per https://info.linuxserver.io/issues/2023-07-01-armhf/ ****"
13+
exit 0
1314
else
1415
echo "**** Unsupported Linux architecture ${ARCH} found, exiting... ****"
1516
exit 1
@@ -18,9 +19,6 @@ echo "**** Linux architecture found: ${ARCH} ****"
1819

1920
echo "**** Checking for cloudflared setup script dependencies... ****"
2021
YQARCH="${ARCH}"
21-
if [ "${YQ_ARCH}" = "armhf" ]; then
22-
YQARCH="arm"
23-
fi
2422
echo "**** Temporarily installing /tmp/yq... ****"
2523
curl -sLo /tmp/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_${YQARCH}
2624
chmod +x /tmp/yq

root/etc/s6-overlay/s6-rc.d/svc-mod-universal-cloudflared/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/with-contenv bash
22

3+
if [[ $(uname -m) = "armv7l" ]]; then
4+
echo "**** The universal cloudflared mod no longer supports arm32v7/armhf per https://info.linuxserver.io/issues/2023-07-01-armhf/ ****"
5+
sleep infinity
6+
fi
7+
38
if [[ ${#CF_ZONE_ID} -gt 0 ]] && [[ ${#CF_ACCOUNT_ID} -gt 0 ]] && [[ ${#CF_API_TOKEN} -gt 0 ]] && [[ ${#CF_TUNNEL_NAME} -gt 0 ]] && [[ ${#CF_TUNNEL_CONFIG} -gt 0 ]] && [[ ${#CF_TUNNEL_PASSWORD} -gt 31 ]]; then
49
exec s6-setuidgid abc cloudflared tunnel --no-autoupdate --config /etc/cloudflared/config.yml run
510
else

0 commit comments

Comments
 (0)