Skip to content

Commit

Permalink
Revert "Merge pull request kubernetes#1839 from sozercan/fix-arch"
Browse files Browse the repository at this point in the history
This reverts commit 1fd673e, reversing
changes made to ce6512e.
  • Loading branch information
justaugustus authored and wespanther committed Mar 15, 2021
1 parent 69c316b commit 9073b27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
9 changes: 2 additions & 7 deletions images/build/debian-base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,10 @@ else
endif
mv $(TEMP_DIR)/$(CONFIG)/Dockerfile.build.tmp $(TEMP_DIR)/$(CONFIG)/Dockerfile.build

docker buildx build \
--pull \
--platform $(ARCH) \
-t $(BUILD_IMAGE) \
-f $(TEMP_DIR)/$(CONFIG)/Dockerfile.build $(TEMP_DIR)/$(CONFIG)
docker build --pull -t $(BUILD_IMAGE) -f $(TEMP_DIR)/$(CONFIG)/Dockerfile.build $(TEMP_DIR)/$(CONFIG)
docker create --name $(BUILD_IMAGE) $(BUILD_IMAGE)
docker export $(BUILD_IMAGE) > $(TEMP_DIR)/$(CONFIG)/$(TAR_FILE)
docker buildx build \
--platform $(ARCH) \
docker build \
-t $(IMAGE)-$(ARCH):$(IMAGE_VERSION) \
-t $(IMAGE)-$(ARCH):$(TAG)-$(CONFIG) \
-t $(IMAGE)-$(ARCH):latest-$(CONFIG) \
Expand Down
5 changes: 1 addition & 4 deletions images/build/debian-hyperkube-base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ ifneq ($(ARCH),amd64)
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
$(SUDO) ../../../third_party/multiarch/qemu-user-static/register/register.sh --reset
endif
docker buildx build \
--pull \
--platform $(ARCH) \
-t $(IMAGE)-$(ARCH):$(TAG) $(TEMP_DIR)
docker build --pull -t $(IMAGE)-$(ARCH):$(TAG) $(TEMP_DIR)
rm -rf $(TEMP_DIR)

push: build
Expand Down
3 changes: 1 addition & 2 deletions images/build/debian-iptables/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ ifneq ($(ARCH),amd64)
$(SUDO) ../../../third_party/multiarch/qemu-user-static/register/register.sh --reset
endif

docker buildx build \
docker build \
--pull \
--platform $(ARCH) \
-t $(IMAGE)-$(ARCH):$(IMAGE_VERSION) \
-t $(IMAGE)-$(ARCH):$(TAG)-$(CONFIG) \
-t $(IMAGE)-$(ARCH):latest-$(CONFIG) \
Expand Down

0 comments on commit 9073b27

Please sign in to comment.