app-emulation/docker-registry: use config.yml example from tarball
authorZac Medico <zmedico@gentoo.org>
Mon, 25 Apr 2016 09:04:15 +0000 (02:04 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 25 Apr 2016 09:05:30 +0000 (02:05 -0700)
Package-Manager: portage-2.2.28

app-emulation/docker-registry/docker-registry-2.4.0.ebuild
app-emulation/docker-registry/files/config.yml [deleted file]

index 08c7199e6d66be56cfce1d098435654122afaf71..c5b0e84f4f650ec985e04e56cfcdf84e72c69c63 100644 (file)
@@ -32,7 +32,7 @@ src_install() {
        exeinto /usr/libexec/${PN}
        doexe "${S}"/bin/*
        insinto /etc/docker/registry
-       newins "${FILESDIR}/config.yml" config.yml.example
+       newins "${S}"/src/${EGO_PN%/*}/cmd/registry/config-example.yml config.yml.example
        newinitd "${FILESDIR}/${SVCNAME}.initd" "${SVCNAME}"
        newconfd "${FILESDIR}/${SVCNAME}.confd" "${SVCNAME}"
        systemd_dounit "${FILESDIR}/${SVCNAME}.service"
diff --git a/app-emulation/docker-registry/files/config.yml b/app-emulation/docker-registry/files/config.yml
deleted file mode 100644 (file)
index b5700e1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-version: 0.1
-log:
-  fields:
-    service: registry
-storage:
-    cache:
-        blobdescriptor: inmemory
-    filesystem:
-        rootdirectory: /var/lib/registry
-http:
-    addr: :5000
-    headers:
-        X-Content-Type-Options: [nosniff]
-health:
-  storagedriver:
-    enabled: true
-    interval: 10s
-    threshold: 3