[packages/dockercloud-agent: 1/2] new, version 1.1.0

glen glen at pld-linux.org
Tue Jul 5 20:28:49 CEST 2016


commit 8f62f8f388fa90dde4c6348620d7b932b66d9726
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jul 5 21:19:45 2016 +0300

    new, version 1.1.0
    
    doesn't build with go 1.6

 dockercloud-agent.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/dockercloud-agent.spec b/dockercloud-agent.spec
new file mode 100644
index 0000000..9f9b442
--- /dev/null
+++ b/dockercloud-agent.spec
@@ -0,0 +1,59 @@
+# TODO
+# - handle external deps
+#   + go get -d -v
+#   - github.com/ActiveState/tail (download)
+#   - github.com/hpcloud/tail (download)
+#   - github.com/flynn-archive/go-shlex (download)
+#   - github.com/getsentry/raven-go (download)
+Summary:	Agent to manage docker in nodes controlled by Docker Cloud
+Name:		dockercloud-agent
+Version:	1.1.0
+Release:	0.1
+License:	Apache v2.0
+Group:		Applications/System
+Source0:	https://github.com/docker/dockercloud-agent/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	9a3382c0a8f4b55bb8e94a250b6fd1dd
+URL:		https://github.com/docker/dockercloud-agent/
+BuildRequires:	golang >= 1.4
+BuildRequires:	golang < 1.6
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 %{?**};
+
+%description
+This is the agent Docker Cloud uses to set up nodes. It's a daemon
+that will register the host with the DockerCloud API using a user
+token (Token), and will manage the installation, configuration and
+ongoing upgrade of the Docker daemon.
+
+For information on how to install it in your host, please check the
+Bring Your Own Node documentation.
+
+https://docs.docker.com/docker-cloud/infrastructure/byoh/
+
+%prep
+%setup -q
+
+GOPATH=$(pwd)/vendor
+install -d $GOPATH/src/github.com/docker
+ln -s ../../../.. $GOPATH/src/github.com/docker/dockercloud-agent
+
+%build
+export GOPATH=$(pwd)/vendor
+
+go get -d -v
+%gobuild -o %{name}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install -p %{name} $RPM_BUILD_ROOT%{_sbindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md NOTICE
+%attr(755,root,root) %{_sbindir}/dockercloud-agent
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list