|
@@ -19,6 +19,8 @@ GO_VERSION=1.8.3
|
|
|
|
|
|
K8S_VERSION=v1.6.6
|
|
|
|
|
|
+GOARM=7
|
|
|
+
|
|
|
|
|
|
TEST_PACKAGES?=pkg/ip subnet subnet/etcdv2 network backend/hostgw
|
|
|
TEST_PACKAGES_EXPANDED=$(TEST_PACKAGES:%=github.com/coreos/flannel/%)
|
|
@@ -96,23 +98,11 @@ bash_unit:
|
|
|
wget https://raw.githubusercontent.com/pgrange/bash_unit/v1.6.0/bash_unit
|
|
|
chmod +x bash_unit
|
|
|
|
|
|
-clean:
|
|
|
- rm -f dist/flanneld*
|
|
|
- rm -f dist/*.docker
|
|
|
- rm -f dist/*.tar.gz
|
|
|
-
|
|
|
-
|
|
|
-dist/flanneld-$(TAG)-$(ARCH).docker: dist/flanneld-$(ARCH) dist/iptables-$(ARCH)
|
|
|
- docker build -f Dockerfile.$(ARCH) -t $(REGISTRY):$(TAG)-$(ARCH) .
|
|
|
- docker save -o dist/flanneld-$(TAG)-$(ARCH).docker $(REGISTRY):$(TAG)-$(ARCH)
|
|
|
-
|
|
|
-
|
|
|
-ifeq ($(ARCH),amd64)
|
|
|
- docker build -f Dockerfile.$(ARCH) -t $(REGISTRY):$(TAG) .
|
|
|
-endif
|
|
|
-
|
|
|
|
|
|
dist/flanneld-e2e-$(TAG)-$(ARCH).docker:
|
|
|
+ifneq ($(ARCH),amd64)
|
|
|
+ $(MAKE) dist/qemu-$(ARCH)-static
|
|
|
+endif
|
|
|
|
|
|
docker run -e GOARM=$(GOARM) \
|
|
|
-u $(shell id -u):$(shell id -g) \
|
|
@@ -124,9 +114,6 @@ dist/flanneld-e2e-$(TAG)-$(ARCH).docker:
|
|
|
mv dist/flanneld dist/flanneld-$(ARCH)'
|
|
|
docker build -f Dockerfile.$(ARCH) -t $(REGISTRY):$(TAG)-$(ARCH) .
|
|
|
|
|
|
-docker-push: dist/flanneld-$(TAG)-$(ARCH).docker
|
|
|
- docker push $(REGISTRY):$(TAG)-$(ARCH)
|
|
|
-
|
|
|
|
|
|
|
|
|
release: tar.gz dist/qemu-s390x-static dist/qemu-ppc64le-static dist/qemu-aarch64-static dist/qemu-arm-static
|