summaryrefslogtreecommitdiff
path: root/app-containers/docker-registry
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /app-containers/docker-registry
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'app-containers/docker-registry')
-rw-r--r--app-containers/docker-registry/Manifest2
-rw-r--r--app-containers/docker-registry/docker-registry-3.0.0_rc2.ebuild56
-rw-r--r--app-containers/docker-registry/docker-registry-3.0.0_rc3.ebuild56
-rw-r--r--app-containers/docker-registry/files/registry.confd2
-rw-r--r--app-containers/docker-registry/files/registry.initd19
-rw-r--r--app-containers/docker-registry/files/registry.logrotated7
-rw-r--r--app-containers/docker-registry/files/registry.service13
-rw-r--r--app-containers/docker-registry/metadata.xml10
8 files changed, 165 insertions, 0 deletions
diff --git a/app-containers/docker-registry/Manifest b/app-containers/docker-registry/Manifest
new file mode 100644
index 000000000000..5aff53b4192a
--- /dev/null
+++ b/app-containers/docker-registry/Manifest
@@ -0,0 +1,2 @@
+DIST docker-registry-3.0.0_rc2.tar.gz 13978331 BLAKE2B 0890b6128898d3fd036f95032f84641e4394b2ab4fc657116fe8a96e40ceccbc418847fac14f425a2649b9417ff7ae5eff1cea6a02f0eb525f5bc46e5e92edb9 SHA512 8a00939d0f9c1fc49e2d1fc2f8f8ba155e1e39a9bb9c19baeadf4070277a36fac29b11e2fc709c151b884eca7e36d11fa304ae02eea1faccdb29015083828448
+DIST docker-registry-3.0.0_rc3.tar.gz 13985046 BLAKE2B 08956601c9d07f33fd478e7dac11fa4a7ff003ba00b319dfd485ea93e893dfd5064afd82bddbbbe50f6446b34c07587be56acfc25e4b4519ff7ed3f61483c01e SHA512 41883d1b5187fd1ad77cf859e8d28367864c6608021b80ab302510c1e1d9df518653d0d869da61f8f21e73cfca2a69534918d2bddcafbbeda3cb0fcd23825bb7
diff --git a/app-containers/docker-registry/docker-registry-3.0.0_rc2.ebuild b/app-containers/docker-registry/docker-registry-3.0.0_rc2.ebuild
new file mode 100644
index 000000000000..066a7086bef0
--- /dev/null
+++ b/app-containers/docker-registry/docker-registry-3.0.0_rc2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+MY_PV=${PV/_rc/-rc.}
+EGIT_COMMIT="4890d9e03616d563083fa944aaa083cc49b54ff5"
+
+DESCRIPTION="Docker Registry 2.0"
+HOMEPAGE="https://github.com/docker/distribution"
+SRC_URI="https://github.com/docker/distribution/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+S=${WORKDIR}/distribution-${MY_PV}
+
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 MIT ZLIB"
+SLOT="0"
+KEYWORDS="amd64 ~arm64"
+
+DEPEND="
+ acct-group/registry
+ acct-user/registry
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+
+ sed -e "s/-s -w/-w/" -i Makefile || die
+
+ # bug 949973
+ sed -e "s/TestHTTPChecker/_&/" -i health/checks/checks_test.go || die
+}
+
+src_compile() {
+ local -x GO_BUILD_FLAGS="-v -mod=vendor"
+ emake VERSION="${MY_PV}" REVISION="${EGIT_COMMIT}" binaries
+}
+
+src_install() {
+ exeinto /usr/libexec/${PN}
+ doexe bin/*
+
+ insinto /etc/docker/registry
+ newins cmd/registry/config-example.yml config.yml.example
+
+ newinitd "${FILESDIR}/registry.initd" registry
+ newconfd "${FILESDIR}/registry.confd" registry
+ systemd_dounit "${FILESDIR}/registry.service"
+
+ keepdir /var/log/registry
+ fowners registry:registry /var/log/registry
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/registry.logrotated" registry
+}
diff --git a/app-containers/docker-registry/docker-registry-3.0.0_rc3.ebuild b/app-containers/docker-registry/docker-registry-3.0.0_rc3.ebuild
new file mode 100644
index 000000000000..138aad6c0d04
--- /dev/null
+++ b/app-containers/docker-registry/docker-registry-3.0.0_rc3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+MY_PV=${PV/_rc/-rc.}
+EGIT_COMMIT="51bdcb7bac069f263ce238db6bd0610759c2635f"
+
+DESCRIPTION="Docker Registry 2.0"
+HOMEPAGE="https://github.com/docker/distribution"
+SRC_URI="https://github.com/docker/distribution/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+S=${WORKDIR}/distribution-${MY_PV}
+
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 MIT ZLIB"
+SLOT="0"
+KEYWORDS="amd64 ~arm64"
+
+DEPEND="
+ acct-group/registry
+ acct-user/registry
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+
+ sed -e "s/-s -w/-w/" -i Makefile || die
+
+ # bug 949973
+ sed -e "s/TestHTTPChecker/_&/" -i health/checks/checks_test.go || die
+}
+
+src_compile() {
+ local -x GO_BUILD_FLAGS="-v -mod=vendor"
+ emake VERSION="${MY_PV}" REVISION="${EGIT_COMMIT}" binaries
+}
+
+src_install() {
+ exeinto /usr/libexec/${PN}
+ doexe bin/*
+
+ insinto /etc/docker/registry
+ newins cmd/registry/config-example.yml config.yml.example
+
+ newinitd "${FILESDIR}/registry.initd" registry
+ newconfd "${FILESDIR}/registry.confd" registry
+ systemd_dounit "${FILESDIR}/registry.service"
+
+ keepdir /var/log/registry
+ fowners registry:registry /var/log/registry
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/registry.logrotated" registry
+}
diff --git a/app-containers/docker-registry/files/registry.confd b/app-containers/docker-registry/files/registry.confd
new file mode 100644
index 000000000000..bfa97f127ef1
--- /dev/null
+++ b/app-containers/docker-registry/files/registry.confd
@@ -0,0 +1,2 @@
+# arguments for docker-registry
+command_args="serve /etc/docker/registry/config.yml"
diff --git a/app-containers/docker-registry/files/registry.initd b/app-containers/docker-registry/files/registry.initd
new file mode 100644
index 000000000000..b81303c624d1
--- /dev/null
+++ b/app-containers/docker-registry/files/registry.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2016-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Docker Registry 2.0"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-${RC_SVCNAME}}
+group=${group:-${RC_SVCNAME}}
+
+command="/usr/libexec/docker-${RC_SVCNAME}/${RC_SVCNAME}"
+command_args="${command_args:-serve /etc/docker/registry/config.yml}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
+ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+
+depend() {
+ need net
+}
diff --git a/app-containers/docker-registry/files/registry.logrotated b/app-containers/docker-registry/files/registry.logrotated
new file mode 100644
index 000000000000..3cb63f949a08
--- /dev/null
+++ b/app-containers/docker-registry/files/registry.logrotated
@@ -0,0 +1,7 @@
+/var/log/registry/registry.log {
+ missingok
+ size 5M
+ rotate 3
+ compress
+ copytruncate
+}
diff --git a/app-containers/docker-registry/files/registry.service b/app-containers/docker-registry/files/registry.service
new file mode 100644
index 000000000000..14ff5f9c0b77
--- /dev/null
+++ b/app-containers/docker-registry/files/registry.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Docker Registry 2.0
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=registry
+PrivateDevices=Yes
+Environment="DOCKER_REGISTRY_ARGS=serve /etc/docker/registry/config.yml"
+ExecStart=/usr/libexec/docker-registry/registry $DOCKER_REGISTRY_ARGS
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-containers/docker-registry/metadata.xml b/app-containers/docker-registry/metadata.xml
new file mode 100644
index 000000000000..e9f15ec90c2b
--- /dev/null
+++ b/app-containers/docker-registry/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">docker/distribution</remote-id>
+ </upstream>
+</pkgmetadata>