From nobody Tue Aug 02 14:41:20 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LxyNc6xspz4YGyC; Tue, 2 Aug 2022 14:41:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LxyNc6Vxlz3cDx; Tue, 2 Aug 2022 14:41:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659451280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2D0ofwCNM9hayqKTgxWNVFcDKTk3vbjmw5+yq4KRKX8=; b=yWX2ziciPoeZ3pdNOPP4x900UsdwdlrXexWNS9qow5n7Pu0IO2sB6PoVRxeKMamTfqUr7l L2uhvX+z4CVm0eKTAKmRMgzD+ffjHr6dM6NcSDCI75w6kvt5uxFJ3Ki5bV33zfIv67iQ76 B+cvdHuQI98LixF4WafybITAj4j269/FIE+0Howl6quEegIFTYkSpb3GlWf6Ry1kstEI2Q Z9F2L2MhdwToPn8cgbZ8+SaqSkpxJT5jIfVvJ4JW6lCv048muEderPNezTCLgIkfbsECGr 8uzOCeZW7eogvBC4Iw3Mu2/h5e7UPua7hjYXa4vhZwBYiQ3xQ4tYof8OOB0PcA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LxyNc5b6wzGbk; Tue, 2 Aug 2022 14:41:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 272EfKkE011620; Tue, 2 Aug 2022 14:41:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 272EfKHs011619; Tue, 2 Aug 2022 14:41:20 GMT (envelope-from git) Date: Tue, 2 Aug 2022 14:41:20 GMT Message-Id: <202208021441.272EfKHs011619@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ben Woods Subject: git: 6931d45bff1e - main - sysutils/nerdctl: New port: Docker-compatible CLI for containerd List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: woodsb02 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6931d45bff1e69e52baa2fe59a0e974373cf2168 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659451280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2D0ofwCNM9hayqKTgxWNVFcDKTk3vbjmw5+yq4KRKX8=; b=flIj/Wt8oBRo2ynwuBQs8uPxPqn9C512WNrYRAnRn7SGiRepUA2TzL2YeK+MfWpqNx7YJH b6mSEFLhB4NRF+XCGh2r8QfGmGYEidxwgg6Rf2QclkFPeBrEI0ZPNff4Q7i6HmNCHbyZJ0 UIyPJqPVcyAUj4wy+h1lhQjykCaybR74QCkw0nvJLJWJcUGP02T++N7yKMh7O9EvisPxRQ mtgN7eE+sllEajFXeotXbkIOLqo/JJluyWz/wwyEqO29tuzeqKaMhdG+ouTazn2LfYywln ZSlN81bBwRB0Ll+bVVD8VRKwjgOXaiGGcDALoKqtZ66Q9spI2UdEGq8ocmyOgQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659451280; a=rsa-sha256; cv=none; b=EjcqiZqhZoTD8sScGdQE0hx6T404jowEUghDE4PYGj5IO4JFUbl737xVe1Yhq5LEZsDLq8 euLYiA9vBHmhcQYJKNulvobOXMq1Rqo4vUO49vKR0RDKBe8kpdUGB5ZbRDl6rl16NCY09m CTHxtAv46Ypy1rgQrNm96UHsbab9oNhOZKz7L3sa0FXMoFr6qWlfGerItVhN4gFpx/ek1f 0wTlX1J4/BvEcyqashoquDt5Cb7zKZFfaUYi8k7/qQ9iKWBFppD7o+IlPqO6Gj/PeevdlV ep7013UPoo/Q/27FSN2Jur1cHS5EmDXfqU/i6jcLcZlBRFZcbQNCvgYlbynBUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by woodsb02: URL: https://cgit.FreeBSD.org/ports/commit/?id=6931d45bff1e69e52baa2fe59a0e974373cf2168 commit 6931d45bff1e69e52baa2fe59a0e974373cf2168 Author: Ben Woods AuthorDate: 2022-08-02 14:39:34 +0000 Commit: Ben Woods 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 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