Skip to content

Commit

Permalink
Cleanup docker build (#5083)
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Feb 15, 2020
1 parent eedcdcd commit eed9e0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
13 changes: 6 additions & 7 deletions build/images/ingress-controller/build-ingress-controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,18 @@ git clone https://github.com/kubernetes/ingress-nginx

cd ingress-nginx

# disable docker in docker tasks
export DIND_TASKS=0

export DOCKER_CLI_EXPERIMENTAL=enabled

make init-docker-buildx
docker buildx use ingress-nginx --default --global

echo "Building NGINX image..."
make all-container
# disable docker in docker tasks
export DIND_TASKS=0

echo "Publishing NGINX images..."
make all-push
echo "Building NGINX image..."
ARCH=amd64 make build container push
ARCH=arm make build container push
ARCH=arm64 make build container push

# Requires https://github.com/kubernetes/ingress-nginx/pull/4271
#echo "Creating multi-arch images..."
Expand Down
Binary file not shown.
7 changes: 1 addition & 6 deletions images/nginx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# 0.0.0 shouldn't clobber any released builds
TAG ?= 0.97
TAG ?= 0.98
REGISTRY ?= quay.io/kubernetes-ingress-controller

IMGNAME = nginx
Expand Down Expand Up @@ -44,11 +44,6 @@ container:
--platform $(PLATFORM) \
--tag $(IMAGE)-$(PLATFORM):$(TAG) rootfs;)

ifeq ($(ARCH), amd64)
# This is for to maintain the backward compatibility
docker tag $(MULTI_ARCH_IMG):$(TAG) $(IMAGE):$(TAG)
endif

.PHONY: push
push: container
$(foreach PLATFORM,$(PLATFORMS), \
Expand Down

0 comments on commit eed9e0d

Please sign in to comment.