Docker: Improve entrypoint.sh scripts
This commit is contained in:
parent
8f424a91d5
commit
eb862fb000
|
@ -2,8 +2,9 @@
|
|||
|
||||
DOCKER_ARCH=${DOCKER_ARCH:-arch}
|
||||
DOCKER_ENV=${DOCKER_ENV:-unknown}
|
||||
DOCKER_TAG=${DOCKER_TAG:-unknown}
|
||||
|
||||
echo "image: $DOCKER_ARCH-$DOCKER_ENV $DOCKER_TAG"
|
||||
echo "image: $DOCKER_ARCH-$DOCKER_ENV (build $DOCKER_TAG)"
|
||||
|
||||
if [[ $(id -u) == "0" ]]; then
|
||||
echo "started as root"
|
||||
|
|
3
scripts/dist/entrypoint.sh
vendored
3
scripts/dist/entrypoint.sh
vendored
|
@ -2,8 +2,9 @@
|
|||
|
||||
DOCKER_ARCH=${DOCKER_ARCH:-arch}
|
||||
DOCKER_ENV=${DOCKER_ENV:-unknown}
|
||||
DOCKER_TAG=${DOCKER_TAG:-unknown}
|
||||
|
||||
echo "image: $DOCKER_ARCH-$DOCKER_ENV $DOCKER_TAG"
|
||||
echo "image: $DOCKER_ARCH-$DOCKER_ENV (build $DOCKER_TAG)"
|
||||
|
||||
if [[ $(id -u) == "0" ]]; then
|
||||
echo "started as root"
|
||||
|
|
Loading…
Reference in New Issue
Block a user