add wrapper script to set umask on downstream images
rodzic
8588433a69
commit
92c6e348cf
|
@ -100,6 +100,7 @@ RUN \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults && \
|
||||||
|
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
|
|
|
@ -100,6 +100,7 @@ RUN \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults && \
|
||||||
|
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||||
echo "**** add qemu ****" && \
|
echo "**** add qemu ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/usr/bin/qemu-aarch64-static -L \
|
/usr/bin/qemu-aarch64-static -L \
|
||||||
|
|
|
@ -100,6 +100,7 @@ RUN \
|
||||||
/app \
|
/app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults && \
|
||||||
|
mv /usr/bin/with-contenv /usr/bin/with-contenvb && \
|
||||||
echo "**** add qemu ****" && \
|
echo "**** add qemu ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/usr/bin/qemu-arm-static -L \
|
/usr/bin/qemu-arm-static -L \
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#! /bin/bash
|
||||||
|
if [[ -f /var/run/s6/container_environment/UMASK ]] && [[ "$(pwdx $$)" =~ "/run/s6/services/" ]]; then
|
||||||
|
umask $(cat /var/run/s6/container_environment/UMASK)
|
||||||
|
/usr/bin/with-contenvb "$@"
|
||||||
|
else
|
||||||
|
/usr/bin/with-contenvb "$@"
|
||||||
|
fi
|
Ładowanie…
Reference in New Issue