Skip to content

Commit

Permalink
Merge pull request #137 from fasaxc/v3.0-z-series
Browse files Browse the repository at this point in the history
[v3.0] Backport s390x build support
  • Loading branch information
fasaxc authored Apr 10, 2018
2 parents 8dcd135 + aa5b3ba commit 4dceb1b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ ifeq ($(ARCH),ppc64le)
GO_BUILD_VER?=latest
endif

ifeq ($(ARCH),s390x)
ARCHTAG:=-s390x
GO_BUILD_VER?=latest
endif

help:
@echo "Typha Makefile"
@echo
Expand Down
18 changes: 18 additions & 0 deletions docker-image/Dockerfile-s390x
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM s390x/alpine:3.6
MAINTAINER LoZ Open Source Ecosystem (https://www.ibm.com/developerworks/community/groups/community/lozopensource)

# Since our binary isn't designed to run as PID 1, run it via the tini init daemon.
RUN apk add --update tini
ENTRYPOINT ["/sbin/tini", "--"]

ADD typha.cfg /etc/calico/typha.cfg

# Put out binary in /code rather than directly in /usr/bin. This allows the downstream builds
# to more easily extract the build artefacts from the container.
RUN mkdir /code
ADD bin/calico-typha-s390x /code
WORKDIR /code
RUN ln -s /code/calico-typha-s390x /usr/bin/calico-typha

# Run Typha by default
CMD ["calico-typha"]

0 comments on commit 4dceb1b

Please sign in to comment.