From a2023564fb4af5473e12f73ee64a72c415d7e69e160b8658faeacc295e94253b Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Mon, 22 Jun 2015 09:09:23 +0000 Subject: [PATCH] =?UTF-8?q?-=20Updated=20to=201.7.0=20(2015-06-16)=20-=20b?= =?UTF-8?q?nc#935570=20=20=20*=20Runtime=20=20=20=20=20-=20Experimental=20?= =?UTF-8?q?feature:=20support=20for=20out-of-process=20volume=20plugins=20?= =?UTF-8?q?=20=20=20=20-=20The=20userland=20proxy=20can=20be=20disabled=20?= =?UTF-8?q?in=20favor=20of=20hairpin=20NAT=20using=20the=20daemon=E2=80=99?= =?UTF-8?q?s=20`--userland-proxy=3Dfalse`=20flag=20=20=20=20=20-=20The=20`?= =?UTF-8?q?exec`=20command=20supports=20the=20`-u|--user`=20flag=20to=20sp?= =?UTF-8?q?ecify=20the=20new=20process=20owner=20=20=20=20=20-=20Default?= =?UTF-8?q?=20gateway=20for=20containers=20can=20be=20specified=20daemon-w?= =?UTF-8?q?ide=20using=20the=20`--default-gateway`=20and=20`--default-gate?= =?UTF-8?q?way-v6`=20flags=20=20=20=20=20-=20The=20CPU=20CFS=20(Completely?= =?UTF-8?q?=20Fair=20Scheduler)=20quota=20can=20be=20set=20in=20`docker=20?= =?UTF-8?q?run`=20using=20`--cpu-quota`=20=20=20=20=20-=20Container=20bloc?= =?UTF-8?q?k=20IO=20can=20be=20controlled=20in=20`docker=20run`=20using`--?= =?UTF-8?q?blkio-weight`=20=20=20=20=20-=20ZFS=20support=20=20=20=20=20-?= =?UTF-8?q?=20The=20`docker=20logs`=20command=20supports=20a=20`--since`?= =?UTF-8?q?=20argument=20=20=20=20=20-=20UTS=20namespace=20can=20be=20shar?= =?UTF-8?q?ed=20with=20the=20host=20with=20`docker=20run=20--uts=3Dhost`?= =?UTF-8?q?=20=20=20*=20Quality=20=20=20=20=20-=20Networking=20stack=20was?= =?UTF-8?q?=20entirely=20rewritten=20as=20part=20of=20the=20libnetwork=20e?= =?UTF-8?q?ffort=20=20=20=20=20-=20Engine=20internals=20refactoring=20=20?= =?UTF-8?q?=20=20=20-=20Volumes=20code=20was=20entirely=20rewritten=20to?= =?UTF-8?q?=20support=20the=20plugins=20effort=20=20=20=20=20-=20Sending?= =?UTF-8?q?=20SIGUSR1=20to=20a=20daemon=20will=20dump=20all=20goroutines?= =?UTF-8?q?=20stacks=20without=20exiting=20=20=20*=20Build=20=20=20=20=20-?= =?UTF-8?q?=20Support=20${variable:-value}=20and=20${variable:+value}=20sy?= =?UTF-8?q?ntax=20for=20environment=20variables=20=20=20=20=20-=20Support?= =?UTF-8?q?=20resource=20management=20flags=20`--cgroup-parent`,=20`--cpu-?= =?UTF-8?q?period`,=20`--cpu-quota`,=20`--cpuset-cpus`,=20`--cpuset-mems`?= =?UTF-8?q?=20=20=20=20=20-=20git=20context=20changes=20with=20branches=20?= =?UTF-8?q?and=20directories=20=20=20=20=20-=20The=20.dockerignore=20file?= =?UTF-8?q?=20support=20exclusion=20rules=20=20=20*=20Distribution=20=20?= =?UTF-8?q?=20=20=20-=20Client=20support=20for=20v2=20mirroring=20support?= =?UTF-8?q?=20for=20the=20official=20registry=20=20=20*=20Bugfixes=20=20?= =?UTF-8?q?=20=20=20-=20Firewalld=20is=20now=20supported=20and=20will=20au?= =?UTF-8?q?tomatically=20be=20used=20when=20available=20=20=20=20=20-=20mo?= =?UTF-8?q?unting=20--device=20recursively=20-=20Patch=200002-Stripped-doc?= =?UTF-8?q?kerinit-binary.patch=20renamed=20to=20fix-docker-init.patch=20?= =?UTF-8?q?=20=20and=20fixed=20to=20build=20with=20latest=20version=20of?= =?UTF-8?q?=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=12 --- 0002-Stripped-dockerinit-binary.patch | 29 ------------------------ docker-1.6.2.tar.bz2 | 3 --- docker-1.7.0.tar.bz2 | 3 +++ docker.changes | 32 +++++++++++++++++++++++++++ docker.spec | 22 ++++++++---------- fix-docker-init.patch | 12 ++++++++++ 6 files changed, 56 insertions(+), 45 deletions(-) delete mode 100644 0002-Stripped-dockerinit-binary.patch delete mode 100644 docker-1.6.2.tar.bz2 create mode 100644 docker-1.7.0.tar.bz2 create mode 100644 fix-docker-init.patch diff --git a/0002-Stripped-dockerinit-binary.patch b/0002-Stripped-dockerinit-binary.patch deleted file mode 100644 index aefec65..0000000 --- a/0002-Stripped-dockerinit-binary.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 86a768c5a830220024a56495f18e88bfc21f3aac Mon Sep 17 00:00:00 2001 -From: Flavio Castelli -Date: Wed, 26 Mar 2014 17:50:19 +0100 -Subject: [PATCH 2/2] Stripped dockerinit binary - -The sha1sum of `dockerinit` is hardcoded into `docker` binary and is -checked at runtime. OBS strips the debugging symbols from all the -binaries (and hence also from `dockerinit`). That causes the sha1sum of -the installed file to be different from the value computed inside of the -buildroot. - -This commit strips the debugging symbols from `dockerinit` _before_ the -`docker` binary is built. Avoiding all the runtime errors. ---- - hack/make/dynbinary | 1 + - 1 file changed, 1 insertion(+) - -Index: docker/hack/make/.dockerinit -=================================================================== ---- docker.orig/hack/make/.dockerinit -+++ docker/hack/make/.dockerinit -@@ -29,5 +29,7 @@ - exit 1 - fi - -+/usr/bin/strip -s $DEST/dockerinit-$VERSION -+ - # sha1 our new dockerinit to ensure separate docker and dockerinit always run in a perfect pair compiled for one another - export DOCKER_INITSHA1="$($sha1sum $DEST/dockerinit-$VERSION | cut -d' ' -f1)" diff --git a/docker-1.6.2.tar.bz2 b/docker-1.6.2.tar.bz2 deleted file mode 100644 index a0e97ff..0000000 --- a/docker-1.6.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d819c93af2c7dd7ad75d24df5ea525efe2abac8ff23c0a9667796dedd21c8f9f -size 5480404 diff --git a/docker-1.7.0.tar.bz2 b/docker-1.7.0.tar.bz2 new file mode 100644 index 0000000..35b0f11 --- /dev/null +++ b/docker-1.7.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:760807f5c0a28f5262006704d2c682733bf7cddc4bfb1464f7b7eb88c84cb9a6 +size 6524566 diff --git a/docker.changes b/docker.changes index 7c302cf..408e374 100644 --- a/docker.changes +++ b/docker.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +Mon Jun 22 08:48:11 UTC 2015 - fcastelli@suse.com + +- Updated to 1.7.0 (2015-06-16) - bnc#935570 + * Runtime + - Experimental feature: support for out-of-process volume plugins + - The userland proxy can be disabled in favor of hairpin NAT using the daemon’s `--userland-proxy=false` flag + - The `exec` command supports the `-u|--user` flag to specify the new process owner + - Default gateway for containers can be specified daemon-wide using the `--default-gateway` and `--default-gateway-v6` flags + - The CPU CFS (Completely Fair Scheduler) quota can be set in `docker run` using `--cpu-quota` + - Container block IO can be controlled in `docker run` using`--blkio-weight` + - ZFS support + - The `docker logs` command supports a `--since` argument + - UTS namespace can be shared with the host with `docker run --uts=host` + * Quality + - Networking stack was entirely rewritten as part of the libnetwork effort + - Engine internals refactoring + - Volumes code was entirely rewritten to support the plugins effort + - Sending SIGUSR1 to a daemon will dump all goroutines stacks without exiting + * Build + - Support ${variable:-value} and ${variable:+value} syntax for environment variables + - Support resource management flags `--cgroup-parent`, `--cpu-period`, `--cpu-quota`, `--cpuset-cpus`, `--cpuset-mems` + - git context changes with branches and directories + - The .dockerignore file support exclusion rules + * Distribution + - Client support for v2 mirroring support for the official registry + * Bugfixes + - Firewalld is now supported and will automatically be used when available + - mounting --device recursively +- Patch 0002-Stripped-dockerinit-binary.patch renamed to fix-docker-init.patch + and fixed to build with latest version of docker + ------------------------------------------------------------------- Tue Jun 9 16:35:46 UTC 2015 - jmassaguerpla@suse.com diff --git a/docker.spec b/docker.spec index 2986080..e417064 100644 --- a/docker.spec +++ b/docker.spec @@ -16,9 +16,9 @@ # -%define git_version 7c8fca2 +%define git_version 0baf609 Name: docker -Version: 1.6.2 +Version: 1.7.0 Release: 0 Summary: The Linux container runtime License: Apache-2.0 @@ -39,7 +39,7 @@ Source6: docker-rpmlintrc Source7: README_SUSE.md # TODO: remove once we figure out what is wrong with iptables on ppc64le Source100: sysconfig.docker.ppc64le -Patch0: 0002-Stripped-dockerinit-binary.patch +Patch0: fix-docker-init.patch # PATCH-FIX-OPENSUSE libcontainer-apparmor-fixes.patch -- mount rules aren't supported in our apparmor Patch1: libcontainer-apparmor-fixes.patch # Required to overcome some limitations of gcc-go: https://groups.google.com/forum/#!msg/golang-nuts/SlGCPYkjxo4/4DjcjXRCqAkJ @@ -54,7 +54,7 @@ BuildRequires: glibc-devel-static %ifarch ppc ppc64 s390x ppc64p7 ppc64le BuildRequires: gcc5-go >= 5.0 %else -BuildRequires: go >= 1.3 +BuildRequires: go >= 1.4 %endif BuildRequires: go-go-md2man BuildRequires: libapparmor-devel @@ -139,6 +139,7 @@ Test package for docker. It contains the source code and the tests. %patch101 -p1 %endif cp %{SOURCE7} . +find . -name ".gitignore" | xargs rm %build %ifarch ppc ppc64 s390x ppc64p7 ppc64le @@ -155,15 +156,10 @@ EOF ) > docker_build_env . ./docker_build_env ./hack/make.sh dynbinary -docs/man/md2man-all.sh -# remove git files -find . -name ".gitignore" | xargs rm +man/md2man-all.sh # remove other than systemd # otherwise the resulting package will have extra requires -rm -rf contrib/init/openrc -rm -rf contrib/init/sysvinit-debian -rm -rf contrib/init/sysvinit-redhat -rm -rf contrib/init/upstart +rm -rf hack/make/.build-deb %install install -d %{buildroot}%{go_contribdir} @@ -204,9 +200,9 @@ install -D -m 644 %SOURCE4 %{buildroot}/var/adm/fillup-templates/sysconfig.docke # install manpages install -d %{buildroot}%{_mandir}/man1 -install -p -m 644 docs/man/man1/*.1 %{buildroot}%{_mandir}/man1 +install -p -m 644 man/man1/*.1 %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_mandir}/man5 -install -p -m 644 docs/man/man5/Dockerfile.5 %{buildroot}%{_mandir}/man5 +install -p -m 644 man/man5/Dockerfile.5 %{buildroot}%{_mandir}/man5 %pre echo "creating group docker..." diff --git a/fix-docker-init.patch b/fix-docker-init.patch new file mode 100644 index 0000000..fe5d25a --- /dev/null +++ b/fix-docker-init.patch @@ -0,0 +1,12 @@ +Index: docker/hack/make/.dockerinit +=================================================================== +--- docker.orig/hack/make/.dockerinit ++++ docker/hack/make/.dockerinit +@@ -29,5 +29,7 @@ else + exit 1 + fi + ++/usr/bin/strip -s $DEST/dockerinit-$VERSION ++ + # sha1 our new dockerinit to ensure separate docker and dockerinit always run in a perfect pair compiled for one another + export DOCKER_INITSHA1=$($sha1sum "$DEST/dockerinit-$VERSION" | cut -d' ' -f1)