samba/hooks/pre_build

8 lines
273 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2019-09-04 02:09:52 +03:00
BUILD_ARCH=$(echo "${DOCKERFILE_PATH}" | cut -d'.' -f2)
[ "${BUILD_ARCH}" == "Dockerfile" ] && \
{ echo 'qemu-user-static: Registration not required for this arch';exit 0; }
2019-09-04 02:09:52 +03:00
docker run --rm --privileged multiarch/qemu-user-static:register --reset