Skip to content

Commit

Permalink
a little better
Browse files Browse the repository at this point in the history
Signed-off-by: Jay R. Wren <[email protected]>
  • Loading branch information
jrwren committed Jun 6, 2024
1 parent ba50aa2 commit 9d720aa
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 29 deletions.
3 changes: 1 addition & 2 deletions 7.2/alpine/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions 7.2/debian/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions 7.2/debian/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ RUN set -eux; \
apt-get install -y --no-install-recommends \
# add tzdata explicitly for https://github.com/docker-library/valkey/issues/138 (see also https://bugs.debian.org/837060 and related)
tzdata \
# add util-linux for setpriv for step down from root.
util-linux \
; \
rm -rf /var/lib/apt/lists/*
{{ ) end -}}
Expand Down
3 changes: 1 addition & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ fi
# allow the container to be started with `--user`
if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then
find . \! -user valkey -exec chown valkey '{}' +
# on alpine, setpriv is a busybox built-in, so use /usr/bin/setpriv
exec /usr/bin/setpriv --reuid=valkey "$0" "$@"
exec setpriv --reuid=valkey --regid=valkey --clear-groups -- "$0" "$@"
fi

# set an appropriate umask (if one isn't set already)
Expand Down
14 changes: 1 addition & 13 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,10 @@ for version; do
suiteAliases=( "${suiteAliases[@]//latest-/}" )
variantAliases+=( "${suiteAliases[@]}" )

# calculate the intersection of parent image arches
arches="$(jq -r --arg arches "$arches" '
(
$arches
| gsub("^[[:space:]]+|[[:space:]]+$"; "")
| split("[[:space:]]+"; "")
) as $parentArches
| .[env.version]
| $parentArches
| join(", ")
' versions.json)"

echo
cat <<-EOE
Tags: $(join ', ' "${variantAliases[@]}")
Architectures: $arches
Architectures: $(join ', ' $arches)
GitCommit: $commit
Directory: $dir
EOE
Expand Down
3 changes: 1 addition & 2 deletions unstable/alpine/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions unstable/debian/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions unstable/debian/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d720aa

Please sign in to comment.