Skip to content

Commit

Permalink
Adds s390x support
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhutisawant committed Apr 12, 2021
1 parent 053afd5 commit dddd5e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN set -eux; \
RUN go clean -i net && \
go install -tags netgo std && \
export arch_val="$(dpkg --print-architecture)"; \
if [ "$arch_val" != "ppc64el" ]; then \
if [ "$arch_val" != "ppc64el" ] && [ "$arch_val" != "s390x" ]; then \
go install -race -tags netgo std; \
fi; \
go get -tags netgo \
Expand Down Expand Up @@ -43,6 +43,8 @@ RUN export arch_val="$(dpkg --print-architecture)"; \
curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz; \
elif [ "$arch_val" = "ppc64el" ]; then \
curl -fsSLO https://download.docker.com/linux/static/stable/ppc64le/docker-${DOCKERVERSION}.tgz; \
elif [ "$arch_val" = "s390x" ]; then \
curl -fsSLO https://download.docker.com/linux/static/stable/s390x/docker-${DOCKERVERSION}.tgz; \
else \
echo "No Docker client found for architecture $(arch_val)." && \
exit 1; \
Expand Down
2 changes: 1 addition & 1 deletion probe/endpoint/dns_snooper_others.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build darwin arm arm64
// +build darwin arm arm64 s390x

// Cross-compiling the snooper requires having pcap binaries,
// let's disable it for now.
Expand Down

0 comments on commit dddd5e1

Please sign in to comment.