[packages/dockercloud-agent] bundle docker engine 1.9.1-cs2

glen glen at pld-linux.org
Tue Jul 5 22:44:56 CEST 2016


commit 76dcb83cc5a538e26e1d6bcdbb9ec359de011587
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jul 5 23:27:05 2016 +0300

    bundle docker engine 1.9.1-cs2

 dockercloud-agent.spec | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/dockercloud-agent.spec b/dockercloud-agent.spec
index db1a467..9368ad7 100644
--- a/dockercloud-agent.spec
+++ b/dockercloud-agent.spec
@@ -9,17 +9,19 @@
 # 2016/07/05 21:55:37 Downloading NAT tunnel binary ...
 # 2016/07/05 21:55:37 Downloading ngrok definition from https://cloud.docker.com/api/tutum/v1/agent/ngrok/latest/1.1.0.json
 # 2016/07/05 21:55:37 Downloading ngrok from https://files.cloud.docker.com/packages/ngrok/ngrok-1.7.tgz
-# 2016/07/05 21:55:46 Saving ngrok to /usr/lib/dockercloud/
-# 2016/07/05 21:55:46 Uncompressing: /usr/lib/dockercloud/._ngrok
-# 2016/07/05 21:55:46 Uncompressing: /usr/lib/dockercloud/ngrok
+# 2016/07/05 21:55:46 Saving ngrok to %{_libexecdir}/dockercloud/
+# 2016/07/05 21:55:46 Uncompressing: %{_libexecdir}/dockercloud/._ngrok
+# 2016/07/05 21:55:46 Uncompressing: %{_libexecdir}/dockercloud/ngrok
+# - runs with specific docker version (1.9.1-cs2), bundled, but we install docker package for 'docker' user
 Summary:	Agent to manage docker in nodes controlled by Docker Cloud
 Name:		dockercloud-agent
 Version:	1.1.0
-Release:	0.3
+Release:	0.4
 License:	Apache v2.0
 Group:		Applications/System
 Source0:	https://github.com/docker/dockercloud-agent/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	9a3382c0a8f4b55bb8e94a250b6fd1dd
+Source1:	https://files.cloud.docker.com/packages/docker/docker-1.9.1-cs2.tgz
 URL:		https://github.com/docker/dockercloud-agent/
 BuildRequires:	golang < 1.6
 BuildRequires:	golang >= 1.4
@@ -33,6 +35,8 @@ Requires:	tar
 Requires:	xz
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_libexecdir	%{_prefix}/lib
+
 %define		_enable_debug_packages 0
 %define		gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
 
@@ -78,6 +82,9 @@ cp -p contrib/logrotate/dockercloud-agent $RPM_BUILD_ROOT/etc/logrotate.d
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/dockercloud/agent
 cp -p dockercloud-agent.conf $RPM_BUILD_ROOT%{_sysconfdir}/dockercloud/agent
 
+install -d $RPM_BUILD_ROOT%{_libexecdir}/dockercloud
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_libexecdir}/dockercloud/docker.tar.gz
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -92,3 +99,5 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/dockercloud-agent
 %{systemdunitdir}/dockercloud-agent.socket
 %{systemdunitdir}/dockercloud-agent.service
+%dir %{_libexecdir}/dockercloud
+%{_libexecdir}/dockercloud/docker.tar.gz
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dockercloud-agent.git/commitdiff/76dcb83cc5a538e26e1d6bcdbb9ec359de011587



More information about the pld-cvs-commit mailing list