You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
491 B
Bash
19 lines
491 B
Bash
#!/bin/bash
|
|
|
|
BUILDER_NAME=${BUILDER_NAME:-builder}
|
|
BUILDER_DRIVER=${BUILDER_DRIVER:-docker-container}
|
|
|
|
docker buildx create \
|
|
--name="${BUILDER_NAME}" \
|
|
--node="${BUILDER_NAME}-amd64" \
|
|
--driver="${BUILDER_DRIVER}" \
|
|
--platform=linux/amd64
|
|
|
|
docker buildx create --append \
|
|
--name="${BUILDER_NAME}" \
|
|
--node="${BUILDER_NAME}-arm64" \
|
|
--driver="${BUILDER_DRIVER}" \
|
|
--platform=linux/arm64
|
|
|
|
docker buildx inspect "${BUILDER_NAME}" --bootstrap
|
|
docker buildx use "${BUILDER_NAME}" |