Merge branch 'master' into arm64
This commit is contained in:
commit
a2afdf78cb
@ -4,10 +4,15 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
BUILD_OPTS="$*"
|
||||
|
||||
DOCKER="docker"
|
||||
# Allow user to override docker command
|
||||
DOCKER=${DOCKER:-docker}
|
||||
|
||||
if ! ${DOCKER} ps >/dev/null 2>&1; then
|
||||
DOCKER="sudo docker"
|
||||
# Ensure that default docker command is not set up in rootless mode
|
||||
if \
|
||||
! ${DOCKER} ps >/dev/null 2>&1 || \
|
||||
${DOCKER} info 2>/dev/null | grep -q rootless \
|
||||
; then
|
||||
DOCKER="sudo ${DOCKER}"
|
||||
fi
|
||||
if ! ${DOCKER} ps >/dev/null; then
|
||||
echo "error connecting to docker:"
|
||||
@ -112,8 +117,9 @@ else
|
||||
wait "$!"
|
||||
fi
|
||||
|
||||
# Ensure that deploy/ is always owned by calling user
|
||||
echo "copying results from deploy/"
|
||||
${DOCKER} cp "${CONTAINER_NAME}":/pi-gen/deploy .
|
||||
${DOCKER} cp "${CONTAINER_NAME}":/pi-gen/deploy - | tar -xf -
|
||||
ls -lah deploy
|
||||
|
||||
# cleanup
|
||||
|
Loading…
x
Reference in New Issue
Block a user