Commit Graph

76 Commits

Author SHA256 Message Date
Jordi Massaguer
fd323b7e80 Accepting request 396996 from home:jordimassaguerpla:mbranch:VC:2016-05-20:docker
- Fix udev files ownership

OBS-URL: https://build.opensuse.org/request/show/396996
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=107
2016-05-20 10:32:51 +00:00
Aleksa Sarai
22d959a1c7 * Make sure we *always* build unstripped Go binaries.
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=106
2016-05-18 14:21:48 +00:00
Aleksa Sarai
ca40a59d67 * Add a patch to fix database soft corruption issues if the Docker dameon dies
in a bad state. There is a PR upstream to vendor Docker to have this fix as
  well, but it probably won't get in until 1.11.2. bnc#964673
  (https://github.com/docker/docker/pull/22765)
  + bnc964673-boltdb-metadata-recovery.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=105
2016-05-16 13:58:14 +00:00
Aleksa Sarai
f2ab5e5b2d * Remove conditional Patch directive for SUSE secrets, since conditionally
including patches results in incompatible .src.rpms. The patch is still
  applied conditionally.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=103
2016-05-02 07:41:45 +00:00
Aleksa Sarai
172c1f6bc3 * Update to Docker 1.11.1. Changelog from upstream:
* Distribution
    - Fix schema2 manifest media type to be of type `application/vnd.docker.container.image.v1+json` ([#21949](https://github.com/docker/docker/pull/21949))
  * Documentation
    + Add missing API documentation for changes introduced with 1.11.0 ([#22048](https://github.com/docker/docker/pull/22048))
  * Builder
    * Append label passed to `docker build` as arguments as an implicit `LABEL` command at the end of the processed `Dockerfile` ([#22184](https://github.com/docker/docker/pull/22184))
  * Networking
    - Fix a panic that would occur when forwarding DNS query ([#22261](https://github.com/docker/docker/pull/22261))
    - Fix an issue where OS threads could end up within an incorrect network namespace when using user defined networks ([#22261](https://github.com/docker/docker/pull/22261))
  * Runtime
    - Fix a bug preventing labels configuration to be reloaded via the config file ([#22299](https://github.com/docker/docker/pull/22299))
    - Fix a regression where container mounting `/var/run` would prevent other containers from being removed ([#22256](https://github.com/docker/docker/pull/22256))
    - Fix an issue where it would be impossible to update both `memory-swap` and `memory` value together ([#22255](https://github.com/docker/docker/pull/22255))
    - Fix a regression from 1.11.0 where the `/auth` endpoint would not initialize `serveraddress` if it is not provided ([#22254](https://github.com/docker/docker/pull/22254))
    - Add missing cleanup of container temporary files when cancelling a schedule restart ([#22237](https://github.com/docker/docker/pull/22237))
    - Removed scary error message when no restart policy is specified ([#21993](https://github.com/docker/docker/pull/21993))
    - Fix a panic that would occur when the plugins were activated via the json spec ([#22191](https://github.com/docker/docker/pull/22191))
    - Fix restart backoff logic to correctly reset delay if container ran for at least 10secs ([#22125](https://github.com/docker/docker/pull/22125))
    - Remove error message when a container restart get cancelled ([#22123](https://github.com/docker/docker/pull/22123))
    - Fix an issue where `docker` would not correcly clean up after `docker exec` ([#22121](https://github.com/docker/docker/pull/22121))
    - Fix a panic that could occur when servicing concurrent `docker stats` commands ([#22120](https://github.com/docker/docker/pull/22120))`
    - Revert deprecation of non-existing host directories auto-creation ([#22065](https://github.com/docker/docker/pull/22065))
    - Hide misleading rpc error on daemon shutdown ([#22058](https://github.com/docker/docker/pull/22058))

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=102
2016-04-29 09:33:54 +00:00
Aleksa Sarai
f9483df5af - Add patch to fix vulnerability in Docker <= 1.11.0. This patch is upstream,
but was merged after the 1.11.0 merge window. CVE-2016-3697. bsc#976777.
    + cve-2016-3697-numeric-uid.patch
  The upstream PR is here[1] and was vendored into Docker here[2].

  [1]: https://github.com/opencontainers/runc/pull/708
  [2]: https://github.com/docker/docker/pull/21665

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=101
2016-04-22 13:09:10 +00:00
Flavio Castelli
8e056c6a5a Accepting request 390606 from home:pluskalm:branches:Virtualization:containers
- Supplemnent zsh from zsh-completion
  * zsh-completion will be automatically installed if zsh and 
    docker are installed

OBS-URL: https://build.opensuse.org/request/show/390606
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=100
2016-04-19 07:54:05 +00:00
Jordi Massaguer
585f0efd39 - Remove gcc5_socker_workaround.patch: This patch is not needed anymore
since gcc5 has been updated in all platforms

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=99
2016-04-18 15:45:05 +00:00
Jordi Massaguer
d627c46579 apply the gcc5 fix only for sle12, not for opensuse tumbleweed
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=98
2016-04-18 10:27:02 +00:00
Aleksa Sarai
3e758ad610 * Removed patches that have been fixed upstream and in gcc-go:
- boltdb_bolt_powerpc.patch
  - fix-apparmor.patch
  - fix-btrfs-ioctl-structure.patch
  - fix-docker-init.patch
  - libnetwork_drivers_bridge_powerpc.patch
  - ignore-dockerinit-checksum.patch
* Require containerd, as it is the only currently supported Docker execdriver.
* Update docker.socket to require containerd.socket and use --containerd in
  docker.service so that the services are self-contained.
* Update to Docker 1.11.0.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=97
2016-04-18 06:28:19 +00:00
Jordi Massaguer
d3a3c409f8 exclude s390x only if opensuse
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=95
2016-04-15 10:30:56 +00:00
Jordi Massaguer
1d9c6c54b9 add mount-secrets patch and apply gcc5 fix also for
sle12 and leap, cause gcc5 has been updated there

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=93
2016-04-15 10:21:32 +00:00
Flavio Castelli
a57c99952a Accepting request 387297 from devel:ARM:Factory
- use go-lang for aarch64:
  - drop fix_platform_type_arm.patch (works around a gcc-go bug, so
  unnecessary)

OBS-URL: https://build.opensuse.org/request/show/387297
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=91
2016-04-11 08:00:40 +00:00
Aleksa Sarai
fc54adafab * Add patch from upstream (https://github.com/docker/docker/pull/21723) to fix
compilation on Factory and Tumbleweed (which have btrfsprogs >= 4.5).
    + fix-btrfs-ioctl-structure.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=89
2016-04-07 09:37:14 +00:00
Jordi Massaguer
6632f104c3 add last minute changes on the migration process
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=85
2016-03-15 11:47:01 +00:00
Jordi Massaguer
9339aa78a4 sync with latest changes for docker-1.10 and also sync changelog with
package for SLE

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=83
2016-03-15 11:35:05 +00:00
Jordi Massaguer
5b9dc986b2 - update to docker 1.10.3 (bnc#970637)
Runtime
    Fix Docker client exiting with an "Unrecognized input header" error #20706
    Fix Docker exiting if Exec is started with both AttachStdin and Detach #20647
  Distribution
    Fix a crash when pushing multiple images sharing the same layers to the same repository in parallel #20831
    Fix a panic when pushing images to a registry which uses a misconfigured token service #21030
  Plugin system
    Fix issue preventing volume plugins to start when SELinux is enabled #20834
    Prevent Docker from exiting if a volume plugin returns a null response for Get requests #20682
    Fix plugin system leaking file descriptors if a plugin has an error #20680
  Security
    Fix linux32 emulation to fail during docker build #20672 It was due to the personality syscall being blocked by the default seccomp profile.
    Fix Oracle XE 10g failing to start in a container #20981 It was due to the ipc syscall being blocked by the default seccomp profile.
    Fix user namespaces not working on Linux From Scratch #20685
    Fix issue preventing daemon to start if userns is enabled and the subuid or subgid files contain comments #20725
  More at https://github.com/docker/docker/releases/tag/v1.10.3

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=82
2016-03-11 09:13:43 +00:00
Jordi Massaguer
0a40d1c851 Accepting request 367638 from home:michel_mno:branches:Virtualization:containers
- more patches to build on ppc64 architecture
  update netlink_gcc_go.patch
  new netlink_netns_powerpc.patch
  new boltdb_bolt_powerpc.patch
  new libnetwork_drivers_bridge_powerpc.patch to replace
      deleted fix-ppc64le.patch

OBS-URL: https://build.opensuse.org/request/show/367638
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=81
2016-03-07 14:44:00 +00:00
Aleksa Sarai
6c72404a57 - Remove docker-image-migrator for now (there are plenty of issues getting it to
work properly at the moment). (bnc#968933)

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=80
2016-03-07 12:08:24 +00:00
Jordi Massaguer
52e75bc376 comment temporary the migration requirement until we fix that package
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=79
2016-03-07 12:08:12 +00:00
Jordi Massaguer
c675fac864 update to docker-1.10.2
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=74
2016-03-01 15:43:51 +00:00
Aleksa Sarai
9e251436af - fix-apparmor.patch: switch to a backported version of docker/docker#20305,
which also fixes several potential issues if the major version of apparmor
  changes.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=73
2016-02-15 13:18:46 +00:00
Jordi Massaguer
570a2ef161 - Update to docker 1.10.1
It includes some fixes to 1.10.0, see detailed changelog in
https://github.com/docker/docker/blob/v1.10.1/CHANGELOG.md

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=72
2016-02-12 16:12:58 +00:00
Jordi Massaguer
fce327c0ca fix-apparmor.patch: fix https://github.com/docker/docker/issues/20269 . It affects SLE12 which has apparmor
version 2.8 and not openSUSE which has version 2.9.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=71
2016-02-12 12:52:19 +00:00
Jordi Massaguer
c9ddc4fd37 fix patch name
in the previous commit I did a mistake when renumbering the patches

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=70
2016-02-09 17:37:28 +00:00
Jordi Massaguer
c6dc735d90 review patch numbers and comments and spaces in files
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=69
2016-02-09 17:35:20 +00:00
Jordi Massaguer
0510b2c508 restore some comments into the spec file regarding docker-init
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=66
2016-02-09 12:20:46 +00:00
Jordi Massaguer
43ef6adcd8 restore ignore-dockerinit-checksum patch
since we still have dockerinit, let's restore
this patch to prevent unexpected side effects

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=64
2016-02-09 11:59:56 +00:00
Jordi Massaguer
aadf656db7 add netlink_gcc_go patch and fix minor issues:
review file list and name of the tarball

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=63
2016-02-09 11:46:03 +00:00
Jordi Massaguer
cf3843ed00 review dockerinit build and installation
even we don't use dockerinit, we should still install
it because that is expected.

Also fix the build for gcc-go regarding dockerinit

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=61
2016-02-08 15:47:24 +00:00
Jordi Massaguer
19f2b26c4c restore fix-docker-init.patch since docker-init has been removed
in master branch, but not in this 1.10.0 version

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=60
2016-02-05 11:01:39 +00:00
Jordi Massaguer
64062d332d - Update to 1.10.0 version
Add usernamespace support
  Add support for custom seccomp profiles
  Improvements in network and volume management
detailed changelog in
590d5108bb/CHANGELOG.md

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=58
2016-02-05 09:21:26 +00:00
Aleksa Sarai
9dce1f84b9 Accepting request 356411 from home:cyphar:branches:Virtualization:containers
This adds a fix for the (quite specific) JSON bug which completely breaks container starts.

OBS-URL: https://build.opensuse.org/request/show/356411
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=57
2016-01-28 08:07:07 +00:00
Jordi Massaguer
cbbbf2fd6f fix spec file. There was an extra space
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=56
2016-01-21 17:25:44 +00:00
Jordi Massaguer
019cc56ccf fix the if expression in the spec file
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=55
2016-01-21 17:21:02 +00:00
Jordi Massaguer
fc77975fbd - gcc5-go in Tumbleweed includes this commit
a850225433
  Which "fixes" the data type for RawSockaddr.Data
  However, docker now expects the "wrong" data type, since docker had a workaround
  for that issue.
  Thus, we need to workaround the workaroundn in tumbleweed
- There was an error in one of the file list

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=54
2016-01-21 16:53:25 +00:00
Jordi Massaguer
c7d85d6fc8 add fix for gcc5 socket issue
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=52
2016-01-21 15:14:37 +00:00
Jordi Massaguer
91c98f7c10 Review patches:
- remove docker_remove_jornald....patch because we suse dyngccgo instead of dynbinary
- replace gcc-go-bulid-static-libgo.patch by gcc-go-patches which patches dyngccgo instea of dynbinary
- add fix-ppc64le.patch to fix ppc64le build
- fix_bnc_958255.patch: fix Docker creates strange apparmor profile
  (bnc#958255)
- use_fs_cgroups_by_default.patch: Use fs cgroups by default:
   419fd7449f
- fix_cgroup.parent_path_sanitisation.patch: fix cgroup.Parent path
  sanitisation:
   bf899fef45

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=51
2016-01-20 18:58:55 +00:00
Flavio Castelli
f75a1e668a - Add rules for auditd. This is required to fix bnc#959405
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=49
2015-12-23 10:57:20 +00:00
Jordi Massaguer
b348880837 Accepting request 347470 from home:michel_mno:branches:Virtualization:containers
-  remove 2 patches and add 5 others after 1.9.1 upgrade
   Removed:
    docker_missing_ppc64le_netlink_linux_files.patch
    docker_rename_jump_amd64_as_jump_linux.patch
   Added:
    add_bolt_ppc64.patch
    add_bolt_arm64.patch
    docker_remove_journald_to_fix_dynbinary_build_on_arm.patch
    docker_remove_journald_to_fix_dynbinary_build_on_powerpc.patch
    docker_remove_journald_to_fix_dynbinary_build_on_arm64.patch

OBS-URL: https://build.opensuse.org/request/show/347470
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=47
2015-12-07 08:58:45 +00:00
Flavio Castelli
c22c6eb66c - Upgrade to 1.9.1(bnc#956434)
* Runtime:
    - Do not prevent daemon from booting if images could not be restored (#17695)
    - Force IPC mount to unmount on daemon shutdown/init (#17539)
    - Turn IPC unmount errors into warnings (#17554)
    - Fix `docker stats` performance regression (#17638)
    - Clarify cryptic error message upon `docker logs` if `--log-driver=none` (#17767)
    - Fix seldom panics (#17639, #17634, #17703)
    - Fix opq whiteouts problems for files with dot prefix (#17819)
    - devicemapper: try defaulting to xfs instead of ext4 for performance reasons (#17903, #17918)
    - devicemapper: fix displayed fs in docker info (#17974)
    - selinux: only relabel if user requested so with the `z` option (#17450, #17834)
    - Do not make network calls when normalizing names (#18014)
  *Client:
    - Fix `docker login` on windows (#17738)
    - Fix bug with `docker inspect` output when not connected to daemon (#17715)
    - Fix `docker inspect -f {{.HostConfig.Dns}} somecontainer` (#17680)
  * Builder:
    - Fix regression with symlink behavior in ADD/COPY (#17710)
  * Networking:
    - Allow passing a network ID as an argument for `--net` (#17558)
    - Fix connect to host and prevent disconnect from host for `host` network (#17476)
    - Fix `--fixed-cidr` issue when gateway ip falls in ip-range and ip-range is
      not the first block in the network (#17853)
    - Restore deterministic `IPv6` generation from `MAC` address on default `bridge` network (#17890)
    - Allow port-mapping only for endpoints created on docker run (#17858)
    - Fixed an endpoint delete issue with a possible stale sbox (#18102)
  * Distribution:
    - Correct parent chain in v2 push when v1Compatibility files on the disk are inconsistent (#18047)

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=44
2015-11-24 11:52:52 +00:00
Flavio Castelli
7271c7c852 - Update to version 1.9.0 (bnc#954812):
- Remove fix_15279.patch: code has been merged upstream
- Change systemd unit file to no longer use the deprecated "-d" option (bnc#954737)

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=43
2015-11-13 17:38:43 +00:00
Flavio Castelli
c2bb76f4bf Accepting request 341015 from home:michel_mno:branches:Virtualization:containers
- new patch to avoid ppc64le build error
  docker_missing_ppc64le_netlink_linux_files.patch

OBS-URL: https://build.opensuse.org/request/show/341015
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=41
2015-10-26 17:42:45 +00:00
Flavio Castelli
2e6d120ee5 - Update docker to 1.8.3 version:
* Fix layer IDs lead to local graph poisoning (CVE-2014-8178) (bnc#949660)
  * Fix manifest validation and parsing logic errors allow pull-by-digest validation bypass (CVE-2014-8179)
  * Add `--disable-legacy-registry` to prevent a daemon from using a v1 registry

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=39
2015-10-12 20:33:58 +00:00
Jordi Massaguer
4771fe429a - Update docker to 1.8.2 version
see detailed changelog in
  https://github.com/docker/docker/releases/tag/v1.8.2 
- devicemapper: fix zero-sized field access 
  Fix issue #15279: does not build with Go 1.5 tip
  Due to golang/go@7904946
  the devices field is dropped.
  This solution works on go1.4 and go1.5
  See more in https://github.com/docker/docker/pull/15404
  
  This fix was not included in v1.8.2. See previous link
  on why.
  fix_15279.patch: contains the patch for issue#15279

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=32
2015-09-10 22:36:30 +00:00
Jordi Massaguer
c59282bf35 Accepting request 324771 from home:michel_mno:branches:Virtualization:containers
- new patch as per upstream issue
  https://github.com/docker/docker/issues/14056#issuecomment-113680944
  docker_rename_jump_amd64_as_jump_linux.patch

- ignore-dockerinit-checksum.patch need -p1 in spec

OBS-URL: https://build.opensuse.org/request/show/324771
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=30
2015-08-21 09:18:31 +00:00
Jordi Massaguer
0f220182b4 - Update to docker 1.8.1:
- Fix a bug where pushing multiple tags would result in invalid images

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=27
2015-08-13 09:00:13 +00:00
Jordi Massaguer
af67b92266 - Update to docker 1.8.0:
see detailed changelog in
  https://github.com/docker/docker/releases/tag/v1.8.0

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=26
2015-08-12 16:16:03 +00:00
Jordi Massaguer
fe9b98619e - Exclude archs where docker does not build. Otherwise it gets into
and infinite loop when building.
  We'll fix that later if we want to release for those archs.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=24
2015-07-24 14:22:23 +00:00
Jordi Massaguer
82ffe3baf1 run fdupes macro in order to remove duplicates
building this package with debuginfo enabled (which is required for openSUSE:Factory)
was giving this warning:

[  112s] extracting debug info from
/home/abuild/rpmbuild/BUILDROOT/docker-1.7.1-22.1.x86_64/usr/src/docker/bundles/1.7.1/dynbinary/docker-1.7.1
[  112s] *** WARNING: identical binaries are copied, not linked:
[  112s]         /usr/src/docker/bundles/1.7.1/dynbinary/docker-1.7.1
[  112s]    and  /usr/bin/docker

which was creating this error:

RPM build errors:
[  292s]     Installed (but unpackaged) file(s) found:
[  292s]
/usr/lib/debug/usr/src/docker/bundles/1.7.1/dynbinary/docker-1.7.1.debug


Running fdupes fixes it.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=22
2015-07-22 15:00:07 +00:00