File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
66ARG MOD_VERSION
77
@@ -32,9 +32,6 @@ RUN mv cloudflared /root-layer/cloudflared/cloudflared-amd64
3232RUN GOOS=linux GOARCH=arm64 make cloudflared
3333RUN 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-
3835COPY root/ /root-layer/
3936
4037# # Single layer deployed image ##
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ if [ "${ARCH}" = "x86_64" ]; then
99elif [ "${ARCH}" = "aarch64" ]; then
1010 ARCH="arm64"
1111elif [ "${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
1314else
1415 echo "**** Unsupported Linux architecture ${ARCH} found, exiting... ****"
1516 exit 1
@@ -18,9 +19,6 @@ echo "**** Linux architecture found: ${ARCH} ****"
1819
1920echo "**** Checking for cloudflared setup script dependencies... ****"
2021YQARCH="${ARCH}"
21- if [ "${YQ_ARCH}" = "armhf" ]; then
22- YQARCH="arm"
23- fi
2422echo "**** Temporarily installing /tmp/yq... ****"
2523curl -sLo /tmp/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_${YQARCH}
2624chmod +x /tmp/yq
Original file line number Diff line number Diff line change 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+
38if [[ ${#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
510else
You can’t perform that action at this time.
0 commit comments