Skip to content

Commit b5cb0c3

Browse files
authored
Merge pull request #52 from linuxserver/3.16
Rebase duckdns to 3.16 and s6v3
2 parents 6344f89 + 29ddcf5 commit b5cb0c3

File tree

17 files changed

+39
-42
lines changed

17 files changed

+39
-42
lines changed

Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
1+
FROM ghcr.io/linuxserver/baseimage-alpine:3.16
22

33
# set version label
44
ARG BUILD_DATE
@@ -7,9 +7,6 @@ ARG DUCKDNS_VERSION
77
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
88
LABEL maintainer="aptalca"
99

10-
# environment settings
11-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
12-
1310
RUN \
1411
echo "**** install packages ****" && \
1512
apk add --no-cache \

Dockerfile.aarch64

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
1+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.16
22

33
# set version label
44
ARG BUILD_DATE
@@ -7,9 +7,6 @@ ARG DUCKDNS_VERSION
77
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
88
LABEL maintainer="aptalca"
99

10-
# environment settings
11-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
12-
1310
RUN \
1411
echo "**** install packages ****" && \
1512
apk add --no-cache \

Dockerfile.armhf

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.15
1+
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.16
22

33
# set version label
44
ARG BUILD_DATE
@@ -7,9 +7,6 @@ ARG DUCKDNS_VERSION
77
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
88
LABEL maintainer="aptalca"
99

10-
# environment settings
11-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
12-
1310
RUN \
1411
echo "**** install packages ****" && \
1512
apk add --no-cache \

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
230230

231231
## Versions
232232

233+
* **23.09.22:** - Rebase to alpine 3.16 and s6v3.
233234
* **19.09.22:** - Rebase to alpine 3.15.
234235
* **17.05.22:** - Don't allow insecure connections and add timeout.
235236
* **17.05.22:** - Add random jitter to update time.

readme-vars.yml

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ app_setup_block: |
6464
6565
# changelog
6666
changelogs:
67+
- { date: "23.09.22:", desc: "Rebase to alpine 3.16 and s6v3." }
6768
- { date: "19.09.22:", desc: "Rebase to alpine 3.15." }
6869
- { date: "17.05.22:", desc: "Don't allow insecure connections and add timeout." }
6970
- { date: "17.05.22:", desc: "Add random jitter to update time." }

root/etc/cont-init.d/40-config

-27
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-duckdns

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-duckdns/dependencies.d/init-config

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
#Check to make sure the subdomain and token are set
4+
if [ -z "$SUBDOMAINS" ] || [ -z "$TOKEN" ]; then
5+
echo "Please pass both your subdomain(s) and token as environment variables in your docker run command. See the readme for more details."
6+
sleep infinity
7+
else
8+
echo "Retrieving subdomain and token from the environment variables"
9+
echo -e "SUBDOMAINS=\"${SUBDOMAINS}\" TOKEN=\"${TOKEN}\"" > /app/duck.conf
10+
fi
11+
12+
# modify crontab if logging to file
13+
if [ "$LOG_FILE" = "true" ]; then
14+
crontab -u abc /defaults/duckcron
15+
echo "log will be output to file"
16+
else
17+
echo "log will be output to docker log"
18+
fi
19+
20+
# permissions
21+
chown -R abc:abc \
22+
/app \
23+
/config
24+
25+
# run initial IP update
26+
exec \
27+
s6-setuidgid abc /app/duck.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/etc/s6-overlay/s6-rc.d/init-duckdns/run

root/etc/s6-overlay/s6-rc.d/svc-cron/dependencies.d/init-services

Whitespace-only changes.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
exec \
4+
/usr/sbin/crond -f -S -l 0 -c /etc/crontabs
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
longrun

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-duckdns

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-cron

Whitespace-only changes.

root/etc/services.d/cron/run

-3
This file was deleted.

0 commit comments

Comments
 (0)