Run multiarch/qemu-user-static:register before building cross-arch images

This commit is contained in:
Jeff Grafton
2017-08-22 12:20:38 -07:00
parent e225666813
commit 6458f34627
2 changed files with 4 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ endif
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
docker run --rm --privileged multiarch/qemu-user-static:register --reset
docker build --pull -t ${REGISTRY}/hyperkube-${ARCH}:${VERSION} ${TEMP_DIR}
rm -rf "${TEMP_DIR}"