Skip to content

Commit

Permalink
update builder script
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokpariya0 committed Nov 13, 2024
1 parent 209a203 commit f3073b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PLATFORMS ?= linux/amd64
# Alternatively, you can export the PLATFORMS variable like this:
# export PLATFORMS=linux/arm64,linux/s390x,linux/amd64
ARCH := $(shell uname -m | sed 's/x86_64/amd64/')
DOCKER_BUILDER ?= docker-builder
DOCKER_BUILDER ?= cnao-docker-builder
OPERATOR_IMAGE_TAGGED := $(IMAGE_REGISTRY)/$(OPERATOR_IMAGE):$(IMAGE_TAG)
NULL :=
SPACE := $(NULL) #
Expand Down
11 changes: 7 additions & 4 deletions hack/build-multiarch-operator.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash

check_buildx() {
if ! docker buildx version > /dev/null 2>&1; then
echo "Docker Buildx is not installed or not available."
echo "Please ensure Docker 19.03+ and Buildx is available."
exit 1
export DOCKER_CLI_EXPERIMENTAL=enabled

# If there is no buildx let's install it
if ! docker buildx > /dev/null 2>&1; then
mkdir -p ~/.docker/cli-plugins
curl -L https://github.com/docker/buildx/releases/download/v0.6.3/buildx-v0.6.3.linux-amd64 --output ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
fi
}

Expand Down

0 comments on commit f3073b3

Please sign in to comment.