Enable s390x image cross platform build for calico#5778
Enable s390x image cross platform build for calico#5778huoqifeng wants to merge 6 commits intoprojectcalico:masterfrom
Conversation
… kube-controllers Signed-off-by: huoqifeng <huoqif@cn.ibm.com>
6c05154 to
cf0b085
Compare
Signed-off-by: huoqifeng <huoqif@cn.ibm.com>
apiserver/Makefile
Outdated
| $(API_SERVER_IMAGE): register $(CONTAINER_CREATED) | ||
| $(CONTAINER_CREATED): docker-image/Dockerfile.$(ARCH) $(BINDIR)/apiserver-$(ARCH) $(BINDIR)/filecheck-$(ARCH) | ||
| ifeq ($(ARCH),s390x) | ||
| $(DOCKER_BUILD) -t $(API_SERVER_IMAGE):latest-$(ARCH) -f docker-image/Dockerfile.$(ARCH) . |
There was a problem hiding this comment.
Why do we need this conditional here instead of loading the image?
There was a problem hiding this comment.
@caseydavenport thanks for the kind review. There is no s390x images available in dockerhub, usually, user need build the images on a IBM Z (s390x) machine and then run the scripts. -- pull and --load option does not work for this case. For example: https://hub.docker.com/r/calico/go-build/tags
There was a problem hiding this comment.
I'm not sure I understand - without --load the s390x image won't be built as part of our release process.
Do you mean that even on s390x machines, the --load option doesn't exist in docker?
There was a problem hiding this comment.
@huoqifeng did we end up getting the s390x images available in dockerhub?
There was a problem hiding this comment.
@huoqifeng did we end up getting the s390x images available in dockerhub?
@caseydavenport right, we can keep align with other ARCHs after merge projectcalico/toolchain#379 and get a s390x go-build image.
Signed-off-by: huoqifeng <huoqif@cn.ibm.com>
Signed-off-by: huoqifeng <huoqif@cn.ibm.com>
Signed-off-by: huoqifeng <huoqif@cn.ibm.com>
|
@caseydavenport I'll drop the |
|
@huoqifeng maybe we can just implement this change as part of #5793? They seem pretty tightly coupled. |
@caseydavenport sure, let's close this and use #5793 for all the changes. |
|
Close it and will handle all s390x changes in #5793 |
Description
After get the
go-builds390x image via projectcalico/toolchain#379 and all Dockerfile.s390x work well via #5793. Will enable the build in CI.Related issues/PRs
Todos
Release Note