require builx for for docker builds

This commit is contained in:
Nick Sweeting 2023-05-04 01:43:47 -07:00
parent f0033f75d0
commit 2b421c56bb

View file

@ -50,6 +50,7 @@ function create_builder() {
docker buildx use xbuilder && return 0 docker buildx use xbuilder && return 0
echo "[+] Creating new xbuilder for: $SELECTED_PLATFORMS" echo "[+] Creating new xbuilder for: $SELECTED_PLATFORMS"
echo echo
docker pull 'moby/buildkit:buildx-stable-1'
# Switch to buildx builder if already present / previously created # Switch to buildx builder if already present / previously created
docker buildx create --name xbuilder --driver docker-container --bootstrap --use --platform "$SELECTED_PLATFORMS" || true docker buildx create --name xbuilder --driver docker-container --bootstrap --use --platform "$SELECTED_PLATFORMS" || true