[docker-registry/f19] Initial import
Marek Goldmann
goldmann at fedoraproject.org
Mon Dec 2 09:26:38 UTC 2013
commit 31d4b74142724cb33111a8cee06da5f1cfe6a343
Author: Marek Goldmann <marek.goldmann at gmail.com>
Date: Mon Dec 2 10:14:26 2013 +0100
Initial import
.gitignore | 1 +
docker-registry.service | 14 ++++++
docker-registry.spec | 102 +++++++++++++++++++++++++++++++++++++++++++++
docker-registry.sysconfig | 6 +++
sources | 1 +
5 files changed, 124 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..544e27b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.6.0.tar.gz
diff --git a/docker-registry.service b/docker-registry.service
new file mode 100644
index 0000000..9e9ab0d
--- /dev/null
+++ b/docker-registry.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Registry server for Docker
+Requires=redis.service
+
+[Service]
+Type=simple
+Environment=DOCKER_REGISTRY_CONFIG=/etc/docker-registry.yml
+EnvironmentFile=-/etc/docker-registry
+WorkingDirectory=/usr/lib/python2.7/site-packages/docker-registry
+ExecStart=/usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b ${REGISTRY_ADDRESS}:${REGISTRY_PORT} -w $GUNICORN_WORKERS wsgi:application
+#Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
diff --git a/docker-registry.spec b/docker-registry.spec
new file mode 100644
index 0000000..5fa38d4
--- /dev/null
+++ b/docker-registry.spec
@@ -0,0 +1,102 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Summary: Registry server for Docker
+Name: docker-registry
+Version: 0.6.0
+Release: 2%{?dist}
+License: ASL 2.0
+URL: https://github.com/dotcloud/docker-registry
+Source: https://github.com/dotcloud/docker-registry/archive/%{version}.tar.gz
+Source1: docker-registry.service
+Source2: docker-registry.sysconfig
+
+BuildRequires: python2-devel
+BuildRequires: systemd
+Requires(post): systemd
+Requires(preun): systemd
+Requires(postun): systemd
+
+Requires: python-boto
+Requires: python-flask
+Requires: PyYAML
+Requires: python-simplejson
+Requires: python-requests
+Requires: python-gunicorn
+Requires: python-gevent
+Requires: python-blinker
+Requires: python-glanceclient
+Requires: python-keystoneclient
+Requires: python-redis
+Requires: redis
+
+BuildArch: noarch
+
+%description
+Registry server for Docker (hosting/delivering of repositories and images).
+
+%prep
+%setup -q -n docker-registry-%{version}
+
+# Remove the golang implementation
+# It's not the main one (yet?)
+rm -rf contrib/golang_impl
+
+%install
+install -d %{buildroot}%{_bindir}
+install -d %{buildroot}%{_unitdir}
+install -d %{buildroot}%{_sysconfdir}
+install -d %{buildroot}%{_sharedstatedir}/%{name}
+
+install -d %{buildroot}%{python_sitelib}/%{name}
+
+install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
+install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}
+
+cp -r lib registry test %{buildroot}%{python_sitelib}/%{name}
+cp wsgi.py %{buildroot}%{python_sitelib}/%{name}
+cp config_sample.yml %{buildroot}%{_sysconfdir}/%{name}.yml
+
+
+echo "local:
+ storage: local
+ storage_path: %{_sharedstatedir}/%{name}" >> %{buildroot}%{_sysconfdir}/%{name}.yml
+
+%post
+%systemd_post %{name}.service
+
+%preun
+%systemd_preun %{name}.service
+
+%postun
+%systemd_postun_with_restart %{name}.service
+
+%files
+%dir %{python_sitelib}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}.yml
+%{python_sitelib}/%{name}/lib/*.py
+%{python_sitelib}/%{name}/lib/*.pyc
+%{python_sitelib}/%{name}/lib/*.pyo
+%{python_sitelib}/%{name}/lib/storage/*.py
+%{python_sitelib}/%{name}/lib/storage/*.pyc
+%{python_sitelib}/%{name}/lib/storage/*.pyo
+%{python_sitelib}/%{name}/registry/*.py
+%{python_sitelib}/%{name}/registry/*.pyc
+%{python_sitelib}/%{name}/registry/*.pyo
+%{python_sitelib}/%{name}/test/*.py
+%{python_sitelib}/%{name}/test/*.pyc
+%{python_sitelib}/%{name}/test/*.pyo
+%{python_sitelib}/%{name}/*.py
+%{python_sitelib}/%{name}/*.pyc
+%{python_sitelib}/%{name}/*.pyo
+%{_unitdir}/%{name}.service
+%dir %{_sharedstatedir}/%{name}
+%doc LICENSE README.md
+
+%changelog
+* Wed Nov 27 2013 Marek Goldmann <mgoldman at redhat.com> - 0.6.0-2
+- Added license and readme
+
+* Wed Nov 20 2013 Marek Goldmann <mgoldman at redhat.com> - 0.6.0-1
+- Initial packaging
+
diff --git a/docker-registry.sysconfig b/docker-registry.sysconfig
new file mode 100644
index 0000000..4d4b834
--- /dev/null
+++ b/docker-registry.sysconfig
@@ -0,0 +1,6 @@
+REGISTRY_ADDRESS=0.0.0.0
+REGISTRY_PORT=5000
+
+SETTINGS_FLAVOR=local
+
+GUNICORN_WORKERS=8
diff --git a/sources b/sources
index e69de29..fe75320 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c9adf401de3302d4f606a08aa86c18ae 0.6.0.tar.gz
More information about the scm-commits
mailing list