Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2022 14:41:20 GMT
From:      Ben Woods <woodsb02@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6931d45bff1e - main - sysutils/nerdctl: New port: Docker-compatible CLI for containerd
Message-ID:  <202208021441.272EfKHs011619@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by woodsb02:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6931d45bff1e69e52baa2fe59a0e974373cf2168

commit 6931d45bff1e69e52baa2fe59a0e974373cf2168
Author:     Ben Woods <woodsb02@FreeBSD.org>
AuthorDate: 2022-08-02 14:39:34 +0000
Commit:     Ben Woods <woodsb02@FreeBSD.org>
CommitDate: 2022-08-02 14:39:34 +0000

    sysutils/nerdctl: New port: Docker-compatible CLI for containerd
---
 sysutils/Makefile          |  1 +
 sysutils/nerdctl/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 sysutils/nerdctl/distinfo  |  5 +++++
 sysutils/nerdctl/pkg-descr | 12 ++++++++++++
 4 files changed, 52 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index e0ec8c533994..5d2ca0d0012a 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -793,6 +793,7 @@
     SUBDIR += ncdu
     SUBDIR += ndmpd
     SUBDIR += neofetch
+    SUBDIR += nerdctl
     SUBDIR += netevent
     SUBDIR += nfcutils
     SUBDIR += nfs-over-tls
diff --git a/sysutils/nerdctl/Makefile b/sysutils/nerdctl/Makefile
new file mode 100644
index 000000000000..a9455667585f
--- /dev/null
+++ b/sysutils/nerdctl/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	nerdctl
+DISTVERSIONPREFIX=v
+DISTVERSION=	0.22.2
+CATEGORIES=	sysutils
+
+MAINTAINER=	woodsb02@FreeBSD.org
+COMMENT=	Docker-compatible CLI for containerd
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+GO_MODULE=	github.com/containerd/nerdctl
+GO_TARGET=	./cmd/${PORTNAME}
+GO_BUILDFLAGS=	-ldflags "-s -w -X ${GO_MODULE}/pkg/version.Version=${DISTVERSIONFULL}"
+
+PLIST_FILES=	bin/containerd-rootless.sh \
+		bin/containerd-rootless-setuptool.sh \
+		bin/nerdctl \
+		etc/bash_completion.d/${PORTNAME} \
+		share/fish/vendor_completions.d/${PORTNAME}.fish \
+		share/zsh/site-functions/_${PORTNAME}
+
+post-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/extras/rootless/* ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+	${STAGEDIR}${PREFIX}/bin/${PORTNAME} completion bash > ${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}
+	${STAGEDIR}${PREFIX}/bin/${PORTNAME} completion fish > ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/${PORTNAME}.fish
+	${STAGEDIR}${PREFIX}/bin/${PORTNAME} completion zsh  > ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/sysutils/nerdctl/distinfo b/sysutils/nerdctl/distinfo
new file mode 100644
index 000000000000..c524bda87fe8
--- /dev/null
+++ b/sysutils/nerdctl/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1659445945
+SHA256 (go/sysutils_nerdctl/nerdctl-v0.22.2/v0.22.2.mod) = dddff6fe78396328dc68b6285bab661fc84f5511729847a7078c436e03f4c4a8
+SIZE (go/sysutils_nerdctl/nerdctl-v0.22.2/v0.22.2.mod) = 9428
+SHA256 (go/sysutils_nerdctl/nerdctl-v0.22.2/v0.22.2.zip) = 74aa664ce211b9351e423f5821bb4a5328f009621da6163ad952e2fba0357919
+SIZE (go/sysutils_nerdctl/nerdctl-v0.22.2/v0.22.2.zip) = 711537
diff --git a/sysutils/nerdctl/pkg-descr b/sysutils/nerdctl/pkg-descr
new file mode 100644
index 000000000000..43df0bf491b8
--- /dev/null
+++ b/sysutils/nerdctl/pkg-descr
@@ -0,0 +1,12 @@
+ContaiNERD CTL - Docker-compatible CLI for containerd
+- Same UI/UX as docker
+- Supports Docker Compose (nerdctl compose up)
+- [Optional] Supports rootless mode, without slirp overhead (bypass4netns)
+- [Optional] Supports lazy-pulling (Stargz, Nydus, OverlayBD)
+- [Optional] Supports encrypted images (ocicrypt)
+- [Optional] Supports P2P image distribution (IPFS)
+- [Optional] Supports container image signing and verifying (cosign)
+
+nerdctl is a non-core sub-project of containerd.
+
+WWW: https://github.com/containerd/nerdctl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208021441.272EfKHs011619>