commit 79d52504c96af6afed9f2543dd9ac9fd99d19fd74dd53905efac2dde3b4c4227 Author: Aleksa Sarai Date: Sun Mar 27 10:27:18 2016 +0000 * Add initial packaging of containerd 0.0.5. OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/containerd?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..e0ebf44 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + https://github.com/docker/containerd.git + git + containerd + 0.0.5 + 0.0.5 + .git + + + *.tar + xz + + + containerd + + diff --git a/containerd-0.0.5.tar.xz b/containerd-0.0.5.tar.xz new file mode 100644 index 0000000..b69ad32 --- /dev/null +++ b/containerd-0.0.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc0eef9b229b67d018b101d1e2a83074b4a74d5291c9f401f30ce4a906c66554 +size 481912 diff --git a/containerd.changes b/containerd.changes new file mode 100644 index 0000000..63360c5 --- /dev/null +++ b/containerd.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Mar 27 10:19:02 UTC 2016 - asarai@suse.de + +* Add initial packaging of containerd 0.0.5. + diff --git a/containerd.spec b/containerd.spec new file mode 100644 index 0000000..01bade1 --- /dev/null +++ b/containerd.spec @@ -0,0 +1,88 @@ +# +# spec file for package containerd +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define go_arches %ix86 x86_64 + +%ifarch %go_arches +%define go_tool go +%define GO_BUILD_FLAGS %{nil} +%else +%define go_tool go-5 +%define GO_BUILD_FLAGS "-gccgoflags=-Wl,--add-needed -Wl,--no-as-needed -static-libgo -ldl -lseccomp -lselinux -lapparmor" +%endif + +%define version_unconverted 0.0.5 + +Name: containerd +Version: 0.0.5 +Release: 0 +License: Apache-2.0 +Summary: Standalone OCI Container Daemon +Url: https://containerd.tools +Group: System/Management +Source: %{name}-%{version}.tar.xz +%ifarch %go_arches +BuildRequires: go >= 1.5 +%else +BuildRequires: gcc5-go >= 5.0 +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%define client ctr +%define daemon %{name} +%define shim %{name}-shim + +%description +containerd is a daemon with an API and a command line client, to manage +containers on one machine. It uses runC to run containers according to the OCI +specification. containerd has advanced features such as seccomp and user +namespace support as well as checkpoint and restore for cloning and live +migration of containers. + +%prep +%setup -q + +%build +# Create buildir, +export GOPATH=$PWD/vendor +mkdir -pv $GOPATH/src/github.com/docker/ +ln -svfn $PWD $GOPATH/src/github.com/docker/containerd + +# Build deamon. +%go_tool build %GO_BUILD_FLAGS -x -o %{daemon}-%{version} github.com/docker/%{name}/%{daemon} + +# Build shim. +%go_tool build %GO_BUILD_FLAGS -x -o %{shim}-%{version} github.com/docker/%{name}/%{shim} + +# Build client. +%go_tool build %GO_BUILD_FLAGS -x -o %{client}-%{version} github.com/docker/%{name}/%{client} + +%install +%{__install} -D -m755 %{daemon}-%{version} %{buildroot}/%{_bindir}/%{daemon} +%{__install} -D -m755 %{shim}-%{version} %{buildroot}/%{_bindir}/%{shim} +%{__install} -D -m755 %{client}-%{version} %{buildroot}/%{_bindir}/%{client} + +%post + +%postun + +%files +%defattr(-,root,root) +%doc LICENSE.code LICENSE.docs README.md +%{_bindir}/%{daemon} +%{_bindir}/%{shim} +%{_bindir}/%{client}