From a031b83a09a8628435317a03f199cdc18b78262f Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 1 Nov 2017 11:24:59 -0400 Subject: Initial checkin from CRI-O repo Signed-off-by: Matthew Heon --- contrib/rpm/Makefile | 14 ++++++++++ contrib/rpm/crio.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 contrib/rpm/Makefile create mode 100644 contrib/rpm/crio.spec (limited to 'contrib/rpm') diff --git a/contrib/rpm/Makefile b/contrib/rpm/Makefile new file mode 100644 index 000000000..24bbca28c --- /dev/null +++ b/contrib/rpm/Makefile @@ -0,0 +1,14 @@ +.PHONY: dist +dist: crio.spec + spectool -g crio.spec + +.PHONY: rpm +rpm: dist + rpmbuild --define "_sourcedir `pwd`" --define "_specdir `pwd`" \ + --define "_rpmdir `pwd`" --define "_srcrpmdir `pwd`" -ba crio.spec + +all: rpm + +clean: + rm -f *rpm *gz + rm -rf x86_64 diff --git a/contrib/rpm/crio.spec b/contrib/rpm/crio.spec new file mode 100644 index 000000000..3485fe371 --- /dev/null +++ b/contrib/rpm/crio.spec @@ -0,0 +1,76 @@ +%define debug_package %{nil} +%global provider github +%global provider_tld com +%global project kubernetes-incubator +%global repo cri-o +%global Name crio +# https://github.com/kubernetes-incubator/cri-o +%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} +%global import_path %{provider_prefix} +%global commit 8ba639952a95f2e24cc98987689138b67545576c +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: %{Name} +Version: 0.0.1 +Release: 1.git%{shortcommit}%{?dist} +Summary: Kubelet Container Runtime Interface (CRI) for OCI runtimes. +Group: Applications/Text +License: Apache 2.0 +URL: https://%{provider_prefix} +Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz +Provides: %{repo} + +BuildRequires: golang-github-cpuguy83-go-md2man + +%description +The crio package provides an implementation of the +Kubelet Container Runtime Interface (CRI) using OCI conformant runtimes. + +crio provides following functionalities: + + Support multiple image formats including the existing Docker image format + Support for multiple means to download images including trust & image verification + Container image management (managing image layers, overlay filesystems, etc) + Container process lifecycle management + Monitoring and logging required to satisfy the CRI + Resource isolation as required by the CRI + +%prep +%setup -q -n %{repo}-%{commit} + +%build +make all + +%install +%make_install +%make_install install.systemd + +#define license tag if not already defined +%{!?_licensedir:%global license %doc} +%files +%{_bindir}/crio +%{_bindir}/crioctl +%{_mandir}/man5/crio.conf.5* +%{_mandir}/man8/crio.8* +%{_sysconfdir}/crio.conf +%{_sysconfdir}/seccomp.json +%dir /%{_libexecdir}/crio +/%{_libexecdir}/crio/conmon +/%{_libexecdir}/crio/pause +%{_unitdir}/crio.service +%doc README.md +%license LICENSE +%dir /usr/share/oci-umount/oci-umount.d +/usr/share/oci-umount/oci-umount.d/cri-umount.conf + + +%preun +%systemd_preun %{Name} + +%postun +%systemd_postun_with_restart %{Name} + +%changelog +* Mon Oct 31 2016 Dan Walsh - 0.0.1 +- Initial RPM release + -- cgit v1.2.3-54-g00ecf