Commit e0aec6e 1 parent b21d557 commit e0aec6e Copy full SHA for e0aec6e
File tree 5 files changed +4
-18
lines changed
rootfs/etc/s6-overlay/s6-rc.d
5 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,8 @@ RUN set -eux \
54
54
&& apk add --update --no-cache bash rsync \
55
55
&& /tmp/setup-unit.sh
56
56
57
- # Download init-docker-secrets service script from gist
58
- ADD --chmod=0777 ["https://gist.githubusercontent.com/xZero707/bd8dd4795b8266d9639ed0cdd9d81f82/raw/13d3134880a2ce16c00b9b33450c05c34d0e0619/run.sh" , "/rootfs-build/etc/s6-overlay/s6-rc.d/init-docker-secrets/run" ]
59
-
57
+ # Install init-docker-secrets service
58
+ COPY --from=ghcr.io/n0rthernl1ghts/docker-env-secrets:latest ["/" , "/rootfs-build/" ]
60
59
61
60
62
61
# ###############################################
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ main() {
11
11
# This is for legacy support for versions prior to 1.30.0
12
12
if [ -d "/opt/unit" ] && [ -x "/opt/unit/sbin/unitd" ]; then
13
13
echo "Legacy Unit installation detected, starting Unit from /opt/unit"
14
- s6-envdir /run/secrets_normalized /opt/unit/sbin/unitd --no-daemon --tmp "/tmp" --state "/var/lib/unit/state" --modules "/opt/unit/modules" --control "unix:${unitSocket}"
14
+ exec /opt/unit/sbin/unitd --no-daemon --tmp "/tmp" --state "/var/lib/unit/state" --modules "/opt/unit/modules" --control "unix:${unitSocket}"
15
15
return
16
16
fi
17
17
18
- s6-envdir /run/secrets_normalized /usr/local/sbin/unitd --no-daemon --control "unix:${unitSocket}"
18
+ exec /usr/local/sbin/unitd --no-daemon --control "unix:${unitSocket}"
19
19
}
20
20
21
21
main
You can’t perform that action at this time.
0 commit comments