[docker-io/epel7] v0.11.3

Lokesh Mandvekar lsm5 at fedoraproject.org
Mon May 12 15:32:22 UTC 2014


commit 872cb867a5ac7a01d3e6010dd66f81deedb8230d
Author: Lokesh Mandvekar <lsm5 at redhat.com>
Date:   Mon May 12 11:32:03 2014 -0400

    v0.11.3

 docker-0.9-el6-lxc.patch           |   13 -----
 docker-io.spec                     |   81 ++++++++-------------------------
 docker.service                     |   13 +++++
 ignore-btrfs-for-rhel.patch        |   47 +++++++++++---------
 sources                            |    2 +-
 upstream-patched-archive-tar.patch |   87 ++++++++++++++++--------------------
 6 files changed, 98 insertions(+), 145 deletions(-)
---
diff --git a/docker-io.spec b/docker-io.spec
index cd576f9..72a8b0f 100644
--- a/docker-io.spec
+++ b/docker-io.spec
@@ -1,7 +1,3 @@
-%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
-%bcond_without  systemd
-%endif
-
 # modifying the dockerinit binary breaks the SHA1 sum check by docker
 %global __os_install_post %{_rpmconfigdir}/brp-compress
 
@@ -9,25 +5,23 @@
 %global debug_package %{nil}
 %global gopath  %{_datadir}/gocode
 
-%global commit      dc9c28f51d669d6b09e81c2381f800f1a33bb659
+%global commit      fb99f992c081a1d433c97c99ffb46d12693eeb76
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
 
 Name:           docker-io
-Version:        0.10.0
-Release:        2%{?dist}
+Version:        0.11.1
+Release:        3%{?dist}
 Summary:        Automates deployment of containerized applications
 License:        ASL 2.0
 
 Patch0:         ignore-btrfs-for-rhel.patch
 Patch1:         upstream-patched-archive-tar.patch
 
-Patch90:        docker-0.9-el6-lxc.patch
 URL:            http://www.docker.io
 # only x86_64 for now: https://github.com/dotcloud/docker/issues/136
 ExclusiveArch:  x86_64
 Source0:        https://github.com/dotcloud/docker/archive/v%{version}.tar.gz
-# though final name for sysconf/sysvinit files is simply 'docker',
-# having .sysvinit and .sysconfig makes things clear
+Source1:        docker.service
 BuildRequires:  gcc
 BuildRequires:  glibc-static
 # ensure build uses golang 1.2-7 and above
@@ -42,30 +36,16 @@ BuildRequires:  golang(code.google.com/p/gosqlite/sqlite3)
 BuildRequires:  golang(github.com/syndtr/gocapability/capability)
 BuildRequires:  device-mapper-devel
 # btrfs not available for rhel yet
-%if 0%{?fedora}
-BuildRequires:  btrfs-progs-devel
-%endif
-%if %{with systemd}
+#BuildRequires:  btrfs-progs-devel
 BuildRequires:  pkgconfig(systemd)
+
+# Build upstream docs with pandoc
+BuildRequires:  pandoc
+
 Requires:       systemd-units
-%else
-Requires(post):     chkconfig
-Requires(preun):    chkconfig
-Requires(postun):   initscripts
-%endif
 # need xz to work with ubuntu images
 # https://bugzilla.redhat.com/show_bug.cgi?id=1045220
 Requires:       xz
-# https://bugzilla.redhat.com/show_bug.cgi?id=1035436
-# this won't be needed for rhel7+
-%if 0%{?rhel} >= 6 && 0%{?rhel} < 7
-Requires:       bridge-utils
-Requires:       lxc
-
-# https://bugzilla.redhat.com/show_bug.cgi?id=1034919
-# No longer needed in Fedora because of libcontainer
-Requires:       libcgroup
-%endif
 
 Provides:       lxc-docker = %{version}
 
@@ -82,10 +62,7 @@ servers, OpenStack clusters, public instances, or combinations of the above.
 %prep
 %setup -q -n docker-%{version}
 rm -rf vendor
-%if 0%{?rhel}
 %patch0 -p1 -b ignore-btrfs-for-rhel
-%patch90 -p1 -b docker-0.9-el6-lxc
-%endif
 %patch1 -p1 -b upstream-patched-archive-tar
 
 %build
@@ -97,9 +74,11 @@ pushd _build
 popd
 
 export DOCKER_GITCOMMIT="%{shortcommit}/%{version}"
+export DOCKER_BUILDTAGS='selinux'
 export GOPATH=$(pwd)/_build:%{gopath}
 
 hack/make.sh dynbinary
+contrib/man/md/md2man-all.sh
 cp contrib/syntax/vim/LICENSE LICENSE-vim-syntax
 cp contrib/syntax/vim/README.md README-vim-syntax.md
 
@@ -129,45 +108,23 @@ install -d %{buildroot}%{_sysconfdir}/udev/rules.d
 install -p -m 755 contrib/udev/80-docker.rules %{buildroot}%{_sysconfdir}/udev/rules.d
 # install storage dir
 install -d -m 700 %{buildroot}%{_sharedstatedir}/docker
-# install systemd/init scripts
-%if %{with systemd}
+# install systemd unitfile
 install -d %{buildroot}%{_unitdir}
-install -p -m 644 contrib/init/systemd/docker.service %{buildroot}%{_unitdir}
-%else
-install -d %{buildroot}%{_sysconfdir}/sysconfig/
-install -p -m 644 contrib/init/sysvinit-redhat/docker.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/docker
-install -d %{buildroot}%{_initddir}
-install -p -m 755 contrib/init/sysvinit-redhat/docker %{buildroot}%{_initddir}/docker
-%endif
+#install -p -m 644 contrib/init/systemd/docker.service %{buildroot}%{_unitdir}
+install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
 
 %pre
 getent group docker > /dev/null || %{_sbindir}/groupadd -r docker
 exit 0
 
 %post
-%if %{with systemd}
 %systemd_post docker
-%else
-# install but don't activate
-/sbin/chkconfig --add docker
-%endif
 
 %preun
-%if %{with systemd}
 %systemd_preun docker
-%else
-/sbin/service docker stop >/dev/null 2>&1
-/sbin/chkconfig --del docker
-%endif
 
 %postun
-%if %{with systemd}
 %systemd_postun_with_restart docker
-%else
-if [ "$1" -ge "1" ] ; then
-        /sbin/service docker condrestart >/dev/null 2>&1 || :
-fi
-%endif
 
 %files
 %defattr(-,root,root,-)
@@ -177,12 +134,7 @@ fi
 %{_bindir}/docker
 %dir %{_libexecdir}/docker
 %{_libexecdir}/docker/dockerinit
-%if %{with systemd}
 %{_unitdir}/docker.service
-%else
-%config(noreplace) %{_sysconfdir}/sysconfig/docker
-%{_initddir}/docker
-%endif
 %dir %{_sysconfdir}/bash_completion.d
 %{_sysconfdir}/bash_completion.d/docker.bash
 %{_datadir}/zsh/site-functions/_docker
@@ -197,6 +149,11 @@ fi
 %{_datadir}/vim/vimfiles/syntax/dockerfile.vim
 
 %changelog
+* Mon May 12 2014 Lokesh Mandvekar <lsm5 at redhat.com> - 0.11.1-3
+- enable selinux
+- delete rhel/fedora conditionals
+- generate manpages during build
+
 * Mon Apr 14 2014 Lokesh Mandvekar <lsm5 at redhat.com> - 0.10.0-2
 - regenerate btrfs removal patch
 - update commit value
diff --git a/docker.service b/docker.service
new file mode 100644
index 0000000..1a63071
--- /dev/null
+++ b/docker.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Docker Application Container Engine
+Documentation=http://docs.docker.io
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/docker -d --selinux-enabled
+Restart=on-failure
+LimitNOFILE=1048576
+LimitNPROC=1048576
+
+[Install]
+WantedBy=multi-user.target
diff --git a/ignore-btrfs-for-rhel.patch b/ignore-btrfs-for-rhel.patch
index 5a14235..dfd480e 100644
--- a/ignore-btrfs-for-rhel.patch
+++ b/ignore-btrfs-for-rhel.patch
@@ -1,6 +1,15 @@
-diff -uNr docker-0.10.0/runtime/graphdriver/btrfs/btrfs.go docker-0.10.0-1/runtime/graphdriver/btrfs/btrfs.go
---- docker-0.10.0/runtime/graphdriver/btrfs/btrfs.go	2014-04-08 17:49:33.000000000 -0400
-+++ docker-0.10.0-1/runtime/graphdriver/btrfs/btrfs.go	1969-12-31 19:00:00.000000000 -0500
+diff -uNr docker-0.11.1/daemon/daemon_btrfs.go docker-0.11.1-1/daemon/daemon_btrfs.go
+--- docker-0.11.1/daemon/daemon_btrfs.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/daemon/daemon_btrfs.go	2014-05-12 11:05:34.886668685 -0400
+@@ -3,5 +3,4 @@
+ package daemon
+ 
+ import (
+-	_ "github.com/dotcloud/docker/daemon/graphdriver/btrfs"
+ )
+diff -uNr docker-0.11.1/daemon/graphdriver/btrfs/btrfs.go docker-0.11.1-1/daemon/graphdriver/btrfs/btrfs.go
+--- docker-0.11.1/daemon/graphdriver/btrfs/btrfs.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/daemon/graphdriver/btrfs/btrfs.go	1969-12-31 19:00:00.000000000 -0500
 @@ -1,213 +0,0 @@
 -// +build linux,amd64
 -
@@ -15,7 +24,7 @@ diff -uNr docker-0.10.0/runtime/graphdriver/btrfs/btrfs.go docker-0.10.0-1/runti
 -
 -import (
 -	"fmt"
--	"github.com/dotcloud/docker/runtime/graphdriver"
+-	"github.com/dotcloud/docker/daemon/graphdriver"
 -	"os"
 -	"path"
 -	"syscall"
@@ -84,7 +93,7 @@ diff -uNr docker-0.10.0/runtime/graphdriver/btrfs/btrfs.go docker-0.10.0-1/runti
 -	return uintptr(C.dirfd(dir))
 -}
 -
--func subvolCreate(path, name string, mountLabel string) error {
+-func subvolCreate(path, name string) error {
 -	dir, err := openDir(path)
 -	if err != nil {
 -		return err
@@ -159,17 +168,17 @@ diff -uNr docker-0.10.0/runtime/graphdriver/btrfs/btrfs.go docker-0.10.0-1/runti
 -	return path.Join(d.subvolumesDir(), id)
 -}
 -
--func (d *Driver) Create(id string, parent string, mountLabel string) error {
+-func (d *Driver) Create(id string, parent string) error {
 -	subvolumes := path.Join(d.home, "subvolumes")
 -	if err := os.MkdirAll(subvolumes, 0700); err != nil {
 -		return err
 -	}
 -	if parent == "" {
--		if err := subvolCreate(subvolumes, id, mountLabel); err != nil {
+-		if err := subvolCreate(subvolumes, id); err != nil {
 -			return err
 -		}
 -	} else {
--		parentDir, err := d.Get(parent)
+-		parentDir, err := d.Get(parent, "")
 -		if err != nil {
 -			return err
 -		}
@@ -191,7 +200,7 @@ diff -uNr docker-0.10.0/runtime/graphdriver/btrfs/btrfs.go docker-0.10.0-1/runti
 -	return os.RemoveAll(dir)
 -}
 -
--func (d *Driver) Get(id string) (string, error) {
+-func (d *Driver) Get(id, mountLabel string) (string, error) {
 -	dir := d.subvolumesDirId(id)
 -	st, err := os.Stat(dir)
 -	if err != nil {
@@ -215,19 +224,15 @@ diff -uNr docker-0.10.0/runtime/graphdriver/btrfs/btrfs.go docker-0.10.0-1/runti
 -	_, err := os.Stat(dir)
 -	return err == nil
 -}
-diff -uNr docker-0.10.0/runtime/graphdriver/btrfs/dummy_unsupported.go docker-0.10.0-1/runtime/graphdriver/btrfs/dummy_unsupported.go
---- docker-0.10.0/runtime/graphdriver/btrfs/dummy_unsupported.go	2014-04-08 17:49:33.000000000 -0400
-+++ docker-0.10.0-1/runtime/graphdriver/btrfs/dummy_unsupported.go	1969-12-31 19:00:00.000000000 -0500
+diff -uNr docker-0.11.1/daemon/graphdriver/btrfs/dummy_unsupported.go docker-0.11.1-1/daemon/graphdriver/btrfs/dummy_unsupported.go
+--- docker-0.11.1/daemon/graphdriver/btrfs/dummy_unsupported.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/daemon/graphdriver/btrfs/dummy_unsupported.go	1969-12-31 19:00:00.000000000 -0500
 @@ -1,3 +0,0 @@
 -// +build !linux !amd64
 -
 -package btrfs
-diff -uNr docker-0.10.0/runtime/runtime_btrfs.go docker-0.10.0-1/runtime/runtime_btrfs.go
---- docker-0.10.0/runtime/runtime_btrfs.go	2014-04-08 17:49:33.000000000 -0400
-+++ docker-0.10.0-1/runtime/runtime_btrfs.go	2014-04-14 11:47:23.665041947 -0400
-@@ -3,5 +3,4 @@
- package runtime
- 
- import (
--	_ "github.com/dotcloud/docker/runtime/graphdriver/btrfs"
- )
+diff -uNr docker-0.11.1/daemon/graphdriver/btrfs/MAINTAINERS docker-0.11.1-1/daemon/graphdriver/btrfs/MAINTAINERS
+--- docker-0.11.1/daemon/graphdriver/btrfs/MAINTAINERS	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/daemon/graphdriver/btrfs/MAINTAINERS	1969-12-31 19:00:00.000000000 -0500
+@@ -1 +0,0 @@
+-Alexander Larsson <alexl at redhat.com> (@alexlarsson)
diff --git a/sources b/sources
index 8f84b86..6c0b0dc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1a9b569b1627a51b0ce6e85eaad459c4  v0.10.0.tar.gz
+6496901bfc30aa8094411a0dd6c10ab5  v0.11.1.tar.gz
diff --git a/upstream-patched-archive-tar.patch b/upstream-patched-archive-tar.patch
index 225b1ab..7791d82 100644
--- a/upstream-patched-archive-tar.patch
+++ b/upstream-patched-archive-tar.patch
@@ -1,8 +1,7 @@
-diff --git a/archive/archive.go b/archive/archive.go
-index 2fac18e..634e9c1 100644
---- a/archive/archive.go
-+++ b/archive/archive.go
-@@ -8,7 +8,7 @@ import (
+diff -uNr docker-0.11.1/archive/archive.go docker-0.11.1-1/archive/archive.go
+--- docker-0.11.1/archive/archive.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/archive/archive.go	2014-05-12 11:13:56.346022537 -0400
+@@ -8,7 +8,7 @@
  	"fmt"
  	"github.com/dotcloud/docker/pkg/system"
  	"github.com/dotcloud/docker/utils"
@@ -11,11 +10,10 @@ index 2fac18e..634e9c1 100644
  	"io"
  	"io/ioutil"
  	"os"
-diff --git a/archive/archive_test.go b/archive/archive_test.go
-index 4126601..ca5a80c 100644
---- a/archive/archive_test.go
-+++ b/archive/archive_test.go
-@@ -3,7 +3,7 @@ package archive
+diff -uNr docker-0.11.1/archive/archive_test.go docker-0.11.1-1/archive/archive_test.go
+--- docker-0.11.1/archive/archive_test.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/archive/archive_test.go	2014-05-12 11:13:46.713977937 -0400
+@@ -3,7 +3,7 @@
  import (
  	"bytes"
  	"fmt"
@@ -24,11 +22,10 @@ index 4126601..ca5a80c 100644
  	"io"
  	"io/ioutil"
  	"os"
-diff --git a/archive/changes.go b/archive/changes.go
-index 723e4a7..51baa22 100644
---- a/archive/changes.go
-+++ b/archive/changes.go
-@@ -5,7 +5,7 @@ import (
+diff -uNr docker-0.11.1/archive/changes.go docker-0.11.1-1/archive/changes.go
+--- docker-0.11.1/archive/changes.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/archive/changes.go	2014-05-12 11:13:37.413934009 -0400
+@@ -5,7 +5,7 @@
  	"fmt"
  	"github.com/dotcloud/docker/pkg/system"
  	"github.com/dotcloud/docker/utils"
@@ -37,11 +34,10 @@ index 723e4a7..51baa22 100644
  	"io"
  	"os"
  	"path/filepath"
-diff --git a/archive/diff.go b/archive/diff.go
-index e20e4b1..a67b48a 100644
---- a/archive/diff.go
-+++ b/archive/diff.go
-@@ -2,7 +2,7 @@ package archive
+diff -uNr docker-0.11.1/archive/diff.go docker-0.11.1-1/archive/diff.go
+--- docker-0.11.1/archive/diff.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/archive/diff.go	2014-05-12 11:13:27.070884840 -0400
+@@ -2,7 +2,7 @@
  
  import (
  	"fmt"
@@ -50,11 +46,10 @@ index e20e4b1..a67b48a 100644
  	"io"
  	"io/ioutil"
  	"os"
-diff --git a/archive/wrap.go b/archive/wrap.go
-index 03ea508..0abe320 100644
---- a/archive/wrap.go
-+++ b/archive/wrap.go
-@@ -2,7 +2,7 @@ package archive
+diff -uNr docker-0.11.1/archive/wrap.go docker-0.11.1-1/archive/wrap.go
+--- docker-0.11.1/archive/wrap.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/archive/wrap.go	2014-05-12 11:14:03.103055123 -0400
+@@ -2,7 +2,7 @@
  
  import (
  	"bytes"
@@ -63,37 +58,34 @@ index 03ea508..0abe320 100644
  	"io/ioutil"
  )
  
-diff --git a/graph/tags_unit_test.go b/graph/tags_unit_test.go
-index 1777391..5cfe4c2 100644
---- a/graph/tags_unit_test.go
-+++ b/graph/tags_unit_test.go
-@@ -6,7 +6,7 @@ import (
- 	"github.com/dotcloud/docker/runtime/graphdriver"
- 	_ "github.com/dotcloud/docker/runtime/graphdriver/vfs" // import the vfs driver so it is used in the tests
+diff -uNr docker-0.11.1/graph/tags_unit_test.go docker-0.11.1-1/graph/tags_unit_test.go
+--- docker-0.11.1/graph/tags_unit_test.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/graph/tags_unit_test.go	2014-05-12 11:14:12.608099648 -0400
+@@ -6,7 +6,7 @@
+ 	_ "github.com/dotcloud/docker/daemon/graphdriver/vfs" // import the vfs driver so it is used in the tests
+ 	"github.com/dotcloud/docker/image"
  	"github.com/dotcloud/docker/utils"
 -	"github.com/dotcloud/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
 +	"archive/tar"
  	"io"
  	"os"
  	"path"
-diff --git a/integration/api_test.go b/integration/api_test.go
-index 26441a2..a313382 100644
---- a/integration/api_test.go
-+++ b/integration/api_test.go
-@@ -21,7 +21,7 @@ import (
+diff -uNr docker-0.11.1/integration/api_test.go docker-0.11.1-1/integration/api_test.go
+--- docker-0.11.1/integration/api_test.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/integration/api_test.go	2014-05-12 11:14:32.203193162 -0400
+@@ -21,7 +21,7 @@
+ 	"github.com/dotcloud/docker/image"
  	"github.com/dotcloud/docker/runconfig"
- 	"github.com/dotcloud/docker/runtime"
  	"github.com/dotcloud/docker/utils"
 -	"github.com/dotcloud/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar"
 +	"archive/tar"
  )
  
  func TestGetEvents(t *testing.T) {
-diff --git a/integration/utils_test.go b/integration/utils_test.go
-index 8ad6ccb..5b16f2a 100644
---- a/integration/utils_test.go
-+++ b/integration/utils_test.go
-@@ -3,7 +3,7 @@ package docker
+diff -uNr docker-0.11.1/integration/utils_test.go docker-0.11.1-1/integration/utils_test.go
+--- docker-0.11.1/integration/utils_test.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/integration/utils_test.go	2014-05-12 11:14:23.329149517 -0400
+@@ -3,7 +3,7 @@
  import (
  	"bytes"
  	"fmt"
@@ -102,11 +94,10 @@ index 8ad6ccb..5b16f2a 100644
  	"io"
  	"io/ioutil"
  	"net/http"
-diff --git a/utils/tarsum.go b/utils/tarsum.go
-index 67e94aa..5132194 100644
---- a/utils/tarsum.go
-+++ b/utils/tarsum.go
-@@ -5,7 +5,7 @@ import (
+diff -uNr docker-0.11.1/utils/tarsum.go docker-0.11.1-1/utils/tarsum.go
+--- docker-0.11.1/utils/tarsum.go	2014-05-07 20:29:56.000000000 -0400
++++ docker-0.11.1-1/utils/tarsum.go	2014-05-12 11:14:41.322234586 -0400
+@@ -5,7 +5,7 @@
  	"compress/gzip"
  	"crypto/sha256"
  	"encoding/hex"


More information about the scm-commits mailing list