From 1f27f666be74822420c741ca3f8184147d59aaab Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 30 Mar 2021 17:58:02 +0900 Subject: [PATCH] add binaries for ppc64le and s390x Fix #138 Signed-off-by: Akihiro Suda --- Makefile | 12 +++++++++--- README.md | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 987a3fb2dab..32ad948dfba 100644 --- a/Makefile +++ b/Makefile @@ -58,13 +58,19 @@ TAR_FLAGS=--transform 's/.*\///g' --owner=0 --group=0 artifacts: clean GOOS=linux GOARCH=amd64 make -C $(CURDIR) binaries - tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-amd64.tar.gz _output/nerdctl extras/rootless/* + tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-amd64.tar.gz _output/nerdctl extras/rootless/* GOOS=linux GOARCH=arm64 make -C $(CURDIR) binaries - tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-arm64.tar.gz _output/nerdctl extras/rootless/* + tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-arm64.tar.gz _output/nerdctl extras/rootless/* GOOS=linux GOARCH=arm GOARM=7 make -C $(CURDIR) binaries - tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-arm-v7.tar.gz _output/nerdctl extras/rootless/* + tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-arm-v7.tar.gz _output/nerdctl extras/rootless/* + + GOOS=linux GOARCH=ppc64le make -C $(CURDIR) binaries + tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-ppc64le.tar.gz _output/nerdctl extras/rootless/* + + GOOS=linux GOARCH=s390x make -C $(CURDIR) binaries + tar $(TAR_FLAGS) -czvf $(CURDIR)/_output/nerdctl-$(VERSION_TRIMMED)-linux-s390x.tar.gz _output/nerdctl extras/rootless/* rm -f $(CURDIR)/_output/nerdctl diff --git a/README.md b/README.md index 1dd0b6f978d..03f8782e7a5 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ $ nerdctl run -d -p 8080:80 --name nginx nginx:alpine See [`./docs/rootless.md`](./docs/rootless.md). ## Install -Binaries are available for amd64, arm64, and arm-v7: https://github.com/containerd/nerdctl/releases +Binaries are available here: https://github.com/containerd/nerdctl/releases In addition to containerd, the following components should be installed (optional): - [CNI plugins](https://github.com/containernetworking/plugins): for using `nerdctl run`.