-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #359 from Psycho0verload/refactor_s6_docker_secrets
Revision of the handling of Docker secrets in S6
- Loading branch information
Showing
12 changed files
with
51 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--extra-index-url https://dl.cloudsmith.io/public/borgmatic-collective/borgmatic/python/simple/ | ||
|
||
borgbackup==1.4.0 | ||
borgmatic[apprise]==1.8.14 | ||
borgmatic[apprise]==1.9.0 | ||
llfuse==1.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck shell=bash | ||
|
||
# This script originates from the base image by LinuxServer.io | ||
# (https://www.linuxserver.io/). It is provided under the GNU | ||
# GENERAL PUBLIC LICENSE Version 3. | ||
|
||
if find /run/s6/container_environment/FILE__* -maxdepth 1 > /dev/null 2>&1; then | ||
for FILENAME in /run/s6/container_environment/FILE__*; do | ||
SECRETFILE=$(cat "${FILENAME}") | ||
if [[ -f ${SECRETFILE} ]]; then | ||
FILESTRIP=${FILENAME//FILE__/} | ||
if [[ $(tail -n1 "${SECRETFILE}" | wc -l) != 0 ]]; then | ||
echo "[env-init] Your secret: ${FILENAME##*/}" | ||
echo " contains a trailing newline and may not work as expected" | ||
fi | ||
cat "${SECRETFILE}" >"${FILESTRIP}" | ||
echo "[env-init] ${FILESTRIP##*/} set from ${FILENAME##*/}" | ||
else | ||
echo "[env-init] cannot find secret in ${FILENAME##*/}" | ||
fi | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
oneshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/etc/s6-overlay/s6-rc.d/init-envfile/run |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Empty file.