From unknown Fri Jun 20 07:11:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60770 <60770@debbugs.gnu.org> To: bug#60770 <60770@debbugs.gnu.org> Subject: Status: [PATCH v1] gnu: Add docker-registry Reply-To: bug#60770 <60770@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:11:16 +0000 retitle 60770 [PATCH v1] gnu: Add docker-registry reassign 60770 guix-patches submitter 60770 Denis 'GNUtoo' Carikli severity 60770 normal tag 60770 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 12 23:59:49 2023 Received: (at submit) by debbugs.gnu.org; 13 Jan 2023 04:59:50 +0000 Received: from localhost ([127.0.0.1]:49090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGCAP-00056C-Ex for submit@debbugs.gnu.org; Thu, 12 Jan 2023 23:59:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:55414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGCAN-000565-SH for submit@debbugs.gnu.org; Thu, 12 Jan 2023 23:59:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGCAN-0003no-0U for guix-patches@gnu.org; Thu, 12 Jan 2023 23:59:47 -0500 Received: from cyberdimension.org ([2001:910:1314:ffff::1] helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pGCAK-0000Qn-VG for guix-patches@gnu.org; Thu, 12 Jan 2023 23:59:46 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id ab8b61a3; Fri, 13 Jan 2023 04:57:24 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 2324c0d5; Fri, 13 Jan 2023 04:57:24 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: guix-patches@gnu.org Subject: [PATCH v1] gnu: Add docker-registry Date: Fri, 13 Jan 2023 05:59:18 +0100 Message-Id: <20230113045918.20196-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:910:1314:ffff::1; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/packages/docker.scm (docker-registry): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/docker.scm | 80 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index 7d109dc94c..807c855a1a 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -724,3 +724,83 @@ (define-public tini processes produced from it are reaped and that signals are properly forwarded. Tini is integrated with Docker.") (license license:expat))) + +(define-public docker-registry + (package + (name "docker-registry") + (version "2.8.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/docker/distribution") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1w8zr97p2c62gm1lrdwqa704ivjsy25ylznrddbbpv63idwdbi9k")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/docker/distribution" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir-to-src + (lambda _ (chdir "src/github.com/docker/distribution"))) + (add-after 'chdir-to-src 'fix-versioning + (lambda _ + ;; The Makefile use git to compute the version and the + ;; revision. This requires the .git directory that we don't + ;; have anymore in the unpacked source. + (substitute* "Makefile" (("^VERSION=\\$\\(.*\\)") + (string-append "VERSION=v" #$version)) + ;; The revision originally used the git hash with .m + ;; appended if there was any local modifications. + (("^REVISION=\\$\\(.*\\)") "REVISION=0")))) + (replace 'build + (lambda _ + (invoke "make" "binaries"))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin"))) + (mkdir-p bin) + (for-each + (lambda (file) + (install-file (string-append "bin/" file) bin)) + '("digest" + "registry" + "registry-api-descriptor-template"))) + (let ((doc (string-append + #$output "/share/doc/" #$name "-" #$version))) + (mkdir-p doc) + (for-each + (lambda (file) + (install-file file doc)) + '("BUILDING.md" + "CONTRIBUTING.md" + "LICENSE" + "MAINTAINERS" + "README.md" + "ROADMAP.md"))) + (let ((examples + (string-append + #$output "/share/doc/" #$name "-" #$version + "/registry-example-configs"))) + (mkdir-p examples) + (for-each + (lambda (file) + (install-file (string-append "cmd/registry/" file) examples)) + '("config-cache.yml" + "config-example.yml" + "config-dev.yml"))))) + (delete 'install-license-files)))) + (home-page "https://github.com/docker/distribution") + (synopsis "Docker registry server and associated tools") + (description "The Docker registry server enable you to host your own +docker registry. With it, there is also two other utilities: +@itemize +@item The digest utility is a tool that generates checksums compatibles with +various docker manifest files. +@item The registry-api-descriptor-template is a tool for generating API +specifications from the docs/spec/api.md.tmpl file. +@end itemize") + (license license:asl2.0))) base-commit: ef0613a81dca73602e702cb5f5444ee94566f983 -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 14 13:26:40 2023 Received: (at 60770) by debbugs.gnu.org; 14 Jan 2023 18:26:40 +0000 Received: from localhost ([127.0.0.1]:55534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGlEm-0005Nn-5q for submit@debbugs.gnu.org; Sat, 14 Jan 2023 13:26:40 -0500 Received: from cyberdimension.org ([80.67.179.20]:39550 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGlEi-0005Nc-Kq for 60770@debbugs.gnu.org; Sat, 14 Jan 2023 13:26:38 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id f88deea5; Sat, 14 Jan 2023 18:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 242415e0; Sat, 14 Jan 2023 18:23:51 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: 60770@debbugs.gnu.org Subject: [PATCH v2] gnu: Add docker-registry Date: Sat, 14 Jan 2023 19:26:00 +0100 Message-Id: <20230114182600.13639-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 60770 Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/docker.scm (docker-registry): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/docker.scm | 81 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index 7d109dc94c..58c61ba02e 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -724,3 +724,84 @@ (define-public tini processes produced from it are reaped and that signals are properly forwarded. Tini is integrated with Docker.") (license license:expat))) + +(define-public docker-registry + (package + (name "docker-registry") + (version "2.8.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/docker/distribution") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1w8zr97p2c62gm1lrdwqa704ivjsy25ylznrddbbpv63idwdbi9k")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/docker/distribution" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir-to-src + (lambda _ (chdir "src/github.com/docker/distribution"))) + (add-after 'chdir-to-src 'fix-versioning + (lambda _ + ;; The Makefile use git to compute the version and the + ;; revision. This requires the .git directory that we don't + ;; have anymore in the unpacked source. + (substitute* "Makefile" (("^VERSION=\\$\\(.*\\)") + (string-append "VERSION=v" #$version)) + ;; The revision originally used the git hash with .m + ;; appended if there was any local modifications. + (("^REVISION=\\$\\(.*\\)") "REVISION=0")))) + (replace 'build + (lambda _ + (invoke "make" "binaries"))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin"))) + (mkdir-p bin) + (for-each + (lambda (file) + (install-file (string-append "bin/" file) bin)) + '("digest" + "registry" + "registry-api-descriptor-template"))) + (let ((doc (string-append + #$output "/share/doc/" #$name "-" #$version))) + (mkdir-p doc) + (for-each + (lambda (file) + (install-file file doc)) + '("BUILDING.md" + "CONTRIBUTING.md" + "LICENSE" + "MAINTAINERS" + "README.md" + "ROADMAP.md")) + (copy-recursively "docs/" (string-append doc "/docs"))) + (let ((examples + (string-append + #$output "/share/doc/" #$name "-" #$version + "/registry-example-configs"))) + (mkdir-p examples) + (for-each + (lambda (file) + (install-file (string-append "cmd/registry/" file) examples)) + '("config-cache.yml" + "config-example.yml" + "config-dev.yml"))))) + (delete 'install-license-files)))) + (home-page "https://github.com/docker/distribution") + (synopsis "Docker registry server and associated tools") + (description "The Docker registry server enable you to host your own +docker registry. With it, there is also two other utilities: +@itemize +@item The digest utility is a tool that generates checksums compatibles with +various docker manifest files. +@item The registry-api-descriptor-template is a tool for generating API +specifications from the docs/spec/api.md.tmpl file. +@end itemize") + (license license:asl2.0))) base-commit: ef0613a81dca73602e702cb5f5444ee94566f983 -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 23 13:56:57 2023 Received: (at 60770) by debbugs.gnu.org; 23 Jan 2023 18:56:58 +0000 Received: from localhost ([127.0.0.1]:55349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK201-0001Ri-LM for submit@debbugs.gnu.org; Mon, 23 Jan 2023 13:56:57 -0500 Received: from cyberdimension.org ([80.67.179.20]:34122 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pK1zz-0001RY-GT for 60770@debbugs.gnu.org; Mon, 23 Jan 2023 13:56:56 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id f72bedb1 for <60770@debbugs.gnu.org>; Mon, 23 Jan 2023 18:55:06 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 5c23d811 for <60770@debbugs.gnu.org>; Mon, 23 Jan 2023 18:55:06 +0000 (UTC) Date: Mon, 23 Jan 2023 19:55:56 +0100 From: Denis 'GNUtoo' Carikli To: 60770@debbugs.gnu.org Subject: Re: [PATCH v2] gnu: Add docker-registry Message-ID: <20230123195556.6a4d8140@primary_laptop> In-Reply-To: <20230114182600.13639-1-GNUtoo@cyberdimension.org> References: <20230114182600.13639-1-GNUtoo@cyberdimension.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.30; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/mTBilyUA0jNqJpBG9vnr97W"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 60770 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/mTBilyUA0jNqJpBG9vnr97W Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi again, For this patch I checked if there were bundled dependencies with the 'guix import go -r github.com/docker/distribution' command and it found nothing. However the way this software is built it a bit strange and I just found out that there are still bundled in dependencies. So I guess that at the minimum we need to review the licenses of the dependencies as well. Denis. --Sig_/mTBilyUA0jNqJpBG9vnr97W Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmPO2DwACgkQX138wUF3 4mNMSRAAiCexjGKo3/wfxz9q5nsqUTfWtyygwcv1sq9TSBw/LbuOHVBBneZXJqY0 zj/971zXFXhsfqv1bFx2MAGyFxNcS74uhJGVGpIZKgC+Tzo+lNSaH2bLQeTiNG2/ v2Uswa1IpBUYATU4To7v2h0nGBnIaDZLg6BaH+mfvkXBSEK/iUdZ4qgpMehIoIfm 8ahaMXdCReXw199kQlinrc8vlH5V5AijeQcPjWgDNjQTP8b1eFliTcAGHw7ty7nZ OCl9WYyZpur7UCOOxL8ualZRLCFt8st8zoZhOyZxHpT3C8HpVvCpDU8VK2T3XH+d 3sZm4RHoyc1+XOVT8jC3jkSSYutqRnJ/kQtMLOJcS/VLvadm+0Je74fFdEg6/yeA nkfJ2+jeFglfikzNHbzrMuwQMxfGcZbwfi/PyzAbPQKH0ZBHvFaoVuNex+u5HJMV mwpP2Nh2jIcdxDSHGryvYW+d24eBz/LhER4kRSk1m1dpTKt9a0LZBOnPw6cTdaiW 3d000d9sG0hL0c1zkhZ7DMo93DiC6gn8gsfAUmoaifgWQq8tKOJLFH4ncyRFYAyd nj2u2FmiE5gMtAGBZcEmHRNuHjA1pSO8cO3JENaYhdCIOS8e20rtoxodxNV9UBeZ 6wFu24z5fFaejdDMTgJG4TP3yQxBV9wvYLviRcDU6K5lpnAIiwc= =DvwQ -----END PGP SIGNATURE----- --Sig_/mTBilyUA0jNqJpBG9vnr97W-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 17 11:27:30 2023 Received: (at submit) by debbugs.gnu.org; 17 Feb 2023 16:27:30 +0000 Received: from localhost ([127.0.0.1]:41262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT3a6-0006rw-Ae for submit@debbugs.gnu.org; Fri, 17 Feb 2023 11:27:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:50946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pT3a4-0006rh-1i for submit@debbugs.gnu.org; Fri, 17 Feb 2023 11:27:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT3a3-0002kb-RA for guix-patches@gnu.org; Fri, 17 Feb 2023 11:27:27 -0500 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT3a2-0004Ot-DF for guix-patches@gnu.org; Fri, 17 Feb 2023 11:27:27 -0500 Received: from localhost (cpc158837-hari22-2-0-cust393.20-2.cable.virginm.net [86.20.51.138]) by mira.cbaines.net (Postfix) with ESMTPSA id 7C786169D7; Fri, 17 Feb 2023 16:27:23 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id c4935700; Fri, 17 Feb 2023 16:27:21 +0000 (UTC) References: <20230113045918.20196-1-GNUtoo@cyberdimension.org> <20230114182600.13639-1-GNUtoo@cyberdimension.org> User-agent: mu4e 1.8.11; emacs 28.2 From: Christopher Baines To: Denis 'GNUtoo' Carikli Subject: Re: [bug#60770] [PATCH v2] gnu: Add docker-registry Date: Fri, 17 Feb 2023 16:23:57 +0000 In-reply-to: <20230114182600.13639-1-GNUtoo@cyberdimension.org> Message-ID: <87pma8l0kd.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: 60770-done@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Denis 'GNUtoo' Carikli writes: > * gnu/packages/docker.scm (docker-registry): New variable. > > Signed-off-by: Denis 'GNUtoo' Carikli > --- > gnu/packages/docker.scm | 81 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 81 insertions(+) I've gone ahead and pushed this to master now as 46013fccb701ebd6d55a9be3374e4fbbf877e3a2. There's probably room for improvement in the packaging especially removing some of the vendored dependencies, but I think this is OK to be merged. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmPvquJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XdnSA//Vp2uSY6inFFlWMHASLcGyzR1i+MPa1Fg c1ErZg4Ou0C4M/qLtD0uKowps7Yh3SZ0tSSgeYUFmGGrVikhCmzDjfb4rRwyJ5V+ zxujGQ2aSIp1J52AGYGl9E5sbYuVuazfUIvyoJrAt1fQ03uSxIJRpBUUzP6Oubbg 2cXqdFQv+VKAyXD1USRTKD2hiH+xTM4zjvalTQrpcmTx+AjYd1l9ZrnHXiXa21FO 2hoBle/d18poeBcKU+ijyOIgn3zAKwOyfjXXGM7A+wbl69D03pkP6Ds2EjfCuHOs Ivd5zX+LMq6E4+eEZxLitMnLmR8wBpLsC8tnAQBzgexN38rbW43Wca7qgNBE+Wri 83t6eU65bWC4fp3zdt/hSY+UnVYyotLs4TlesXVbZcp4wycwK2WKkEqkEhmqqMCd 0cR8nXlivl7RGvZkfKUE0OpijE5ilpox5NELnozDv1Cz3WR0n5mKcdJpoOTgx4mG HH+EXnJmlAJX4Q7dXKfedLyst1PjggVn+wHmF2BSM2AVIE05VireJ217nrvE/4Ks KCyy4wJGoUyQKaddj1Mgo/3ZAx9oggzx7DLNpNL1qKRmRa7QNDIDf4+/AIbcXOox D1Ye0lJdzd4NhYTkbo73TXr+/T9PjNY4T0ekyacECPGXHT4bqfQVFryfXTrN/q66 9r+6xmlW1yg= =uQ8D -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 20 07:11:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 18 Mar 2023 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator