github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/.circleci/linux_docker_buildx_setup.sh (about)

     1  sudo apt-get install docker-ce-cli binfmt-support qemu-user-static
     2  
     3  BUILDX_BINARY_URL="https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64"
     4  
     5  curl --output docker-buildx \
     6      --silent --show-error --location --fail --retry 3 \
     7      "$BUILDX_BINARY_URL"
     8  
     9  mkdir -p ~/.docker/cli-plugins
    10  mv docker-buildx ~/.docker/cli-plugins
    11  chmod a+x ~/.docker/cli-plugins/docker-buildx
    12  
    13  # We need this to get arm64 qemu to work https://github.com/docker/buildx/issues/138#issuecomment-569240559
    14  docker run --privileged --rm docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
    15  if ! docker buildx inspect ddev-builder-multi --bootstrap >/dev/null; then docker buildx create --name ddev-builder-multi; fi
    16  docker buildx use ddev-builder-multi