Accepting request 499667 from Virtualization:containers
1 OBS-URL: https://build.opensuse.org/request/show/499667 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/docker?expand=0&rev=55
This commit is contained in:
commit
50be8ad7ff
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 30 11:29:45 UTC 2017 - jmassaguerpla@suse.com
|
||||||
|
|
||||||
|
- Fix bsc#1032287: missing docker systemd configuration
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 29 11:08:44 UTC 2017 - asarai@suse.com
|
||||||
|
|
||||||
|
- Update SUSE secrets patch to correctly handle restarting of containers.
|
||||||
|
+ secrets-0001-daemon-allow-directory-creation-in-run-secrets.patch
|
||||||
|
+ secrets-0002-SUSE-implement-SUSE-container-secrets.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 17 14:41:29 UTC 2017 - asarai@suse.com
|
Wed May 17 14:41:29 UTC 2017 - asarai@suse.com
|
||||||
|
|
||||||
@ -5,6 +17,14 @@ Wed May 17 14:41:29 UTC 2017 - asarai@suse.com
|
|||||||
backport of https://github.com/moby/moby/pull/33250.
|
backport of https://github.com/moby/moby/pull/33250.
|
||||||
+ bsc1037607-0001-apparmor-make-pkg-aaparser-work-on-read-only-root.patch
|
+ bsc1037607-0001-apparmor-make-pkg-aaparser-work-on-read-only-root.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 11 07:36:32 UTC 2017 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Fix bsc#1038476 warning about non-executable docker
|
||||||
|
* Simply verify we have binary prior using it, might happen if
|
||||||
|
someone had docker installed and then did remove it and install
|
||||||
|
from scratch again
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 10 13:54:44 UTC 2017 - asarai@suse.com
|
Wed May 10 13:54:44 UTC 2017 - asarai@suse.com
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Docker Application Container Engine
|
Description=Docker Application Container Engine
|
||||||
Documentation=http://docs.docker.com
|
Documentation=http://docs.docker.com
|
||||||
After=network.target containerd.socket
|
After=network.target containerd.socket containerd.service
|
||||||
Requires=containerd.socket
|
Requires=containerd.socket containerd.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/sysconfig/docker
|
EnvironmentFile=/etc/sysconfig/docker
|
||||||
|
@ -335,7 +335,7 @@ install -D -m 0644 %{SOURCE9} %{buildroot}%{docker_migration_warnfile}
|
|||||||
# will stick around if it has been migrated -- which is why we need the
|
# will stick around if it has been migrated -- which is why we need the
|
||||||
# MIGRATION_TESTFILE check).
|
# MIGRATION_TESTFILE check).
|
||||||
# 4. Check that there are images in the graph/ directory.
|
# 4. Check that there are images in the graph/ directory.
|
||||||
if [[ -d "%{docker_store}" && -n "$(find "%{docker_graph}" -maxdepth 1 -type d 2>/dev/null | grep -Ev '_tmp|^%{docker_graph}$')" ]]; then
|
if [[ -x %{_bindir}/docker && -d "%{docker_store}" && -n "$(find "%{docker_graph}" -maxdepth 1 -type d 2>/dev/null | grep -Ev '_tmp|^%{docker_graph}$')" ]]; then
|
||||||
# Check if currently installed version of docker is old enough to need migration.
|
# Check if currently installed version of docker is old enough to need migration.
|
||||||
CURRENT_DOCKER_VERSION=$(docker -v | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')
|
CURRENT_DOCKER_VERSION=$(docker -v | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')
|
||||||
# This variable will contain the current docker version if migration is needed otherwise it will contain the upgrade point.
|
# This variable will contain the current docker version if migration is needed otherwise it will contain the upgrade point.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
From 36b539ca64d8c47681d5f15689db03751962d496 Mon Sep 17 00:00:00 2001
|
From 4de0a0a9689c4063d369d54ecc16952241c7f241 Mon Sep 17 00:00:00 2001
|
||||||
From: Aleksa Sarai <asarai@suse.de>
|
From: Aleksa Sarai <asarai@suse.de>
|
||||||
Date: Wed, 8 Mar 2017 12:41:54 +1100
|
Date: Wed, 8 Mar 2017 12:41:54 +1100
|
||||||
Subject: [PATCH 1/2] daemon: allow directory creation in /run/secrets
|
Subject: [PATCH 1/2] daemon: allow directory creation in /run/secrets
|
||||||
@ -8,16 +8,17 @@ implementation to return secrets that are actually directories. This is
|
|||||||
useful for creating directories and subdirectories of secrets.
|
useful for creating directories and subdirectories of secrets.
|
||||||
|
|
||||||
Backport: https://github.com/docker/docker/pull/31632
|
Backport: https://github.com/docker/docker/pull/31632
|
||||||
|
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
|
||||||
Signed-off-by: Aleksa Sarai <asarai@suse.de>
|
Signed-off-by: Aleksa Sarai <asarai@suse.de>
|
||||||
---
|
---
|
||||||
daemon/container_operations_unix.go | 15 ++++++++-------
|
daemon/container_operations_unix.go | 18 +++++++++---------
|
||||||
1 file changed, 8 insertions(+), 7 deletions(-)
|
1 file changed, 9 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
diff --git a/daemon/container_operations_unix.go b/daemon/container_operations_unix.go
|
diff --git a/daemon/container_operations_unix.go b/daemon/container_operations_unix.go
|
||||||
index 2296045765d4..bb08d3c4a207 100644
|
index 67b3ee38c0ab..a538ba4e73e8 100644
|
||||||
--- a/daemon/container_operations_unix.go
|
--- a/daemon/container_operations_unix.go
|
||||||
+++ b/daemon/container_operations_unix.go
|
+++ b/daemon/container_operations_unix.go
|
||||||
@@ -177,11 +177,6 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
@@ -178,11 +178,6 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
targetPath := filepath.Clean(s.File.Name)
|
targetPath := filepath.Clean(s.File.Name)
|
||||||
@ -29,23 +30,33 @@ index 2296045765d4..bb08d3c4a207 100644
|
|||||||
fPath := filepath.Join(localMountPath, targetPath)
|
fPath := filepath.Join(localMountPath, targetPath)
|
||||||
if err := idtools.MkdirAllAs(filepath.Dir(fPath), 0700, rootUID, rootGID); err != nil {
|
if err := idtools.MkdirAllAs(filepath.Dir(fPath), 0700, rootUID, rootGID); err != nil {
|
||||||
return errors.Wrap(err, "error creating secret mount path")
|
return errors.Wrap(err, "error creating secret mount path")
|
||||||
@@ -195,8 +190,14 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
@@ -196,9 +191,6 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
||||||
if secret == nil {
|
if secret == nil {
|
||||||
return fmt.Errorf("unable to get secret from secret store")
|
return fmt.Errorf("unable to get secret from secret store")
|
||||||
}
|
}
|
||||||
- if err := ioutil.WriteFile(fPath, secret.Spec.Data, s.File.Mode); err != nil {
|
- if err := ioutil.WriteFile(fPath, secret.Spec.Data, s.File.Mode); err != nil {
|
||||||
- return errors.Wrap(err, "error injecting secret")
|
- return errors.Wrap(err, "error injecting secret")
|
||||||
|
- }
|
||||||
|
|
||||||
|
uid, err := strconv.Atoi(s.File.UID)
|
||||||
|
if err != nil {
|
||||||
|
@@ -208,7 +200,15 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
-
|
||||||
+ if s.File.Mode.IsDir() {
|
+ if s.File.Mode.IsDir() {
|
||||||
+ if err := os.Mkdir(fPath, s.File.Mode); err != nil {
|
+ if err := idtools.MkdirAllAs(fPath, s.File.Mode, rootUID+uid, rootGID+gid); err != nil {
|
||||||
+ return errors.Wrap(err, "error injecting secret dir")
|
+ return errors.Wrap(err, "error injecting secret dir")
|
||||||
+ }
|
+ }
|
||||||
+ } else {
|
+ } else {
|
||||||
+ if err := ioutil.WriteFile(fPath, secret.Spec.Data, s.File.Mode); err != nil {
|
+ if err := ioutil.WriteFile(fPath, secret.Spec.Data, s.File.Mode); err != nil {
|
||||||
+ return errors.Wrap(err, "error injecting secret")
|
+ return errors.Wrap(err, "error injecting secret")
|
||||||
+ }
|
+ }
|
||||||
|
+ }
|
||||||
|
if err := os.Chown(fPath, rootUID+uid, rootGID+gid); err != nil {
|
||||||
|
return errors.Wrap(err, "error setting ownership for secret")
|
||||||
}
|
}
|
||||||
|
|
||||||
uid, err := strconv.Atoi(s.File.UID)
|
|
||||||
--
|
--
|
||||||
2.12.2
|
2.13.0
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
From a7fbdb729255da73e47e77ca37eec0da325356c4 Mon Sep 17 00:00:00 2001
|
From a6d2f9f43ea02d93534867271f7fa7cf0f77e70c Mon Sep 17 00:00:00 2001
|
||||||
From: Aleksa Sarai <asarai@suse.de>
|
From: Aleksa Sarai <asarai@suse.de>
|
||||||
Date: Wed, 8 Mar 2017 11:43:29 +1100
|
Date: Wed, 8 Mar 2017 11:43:29 +1100
|
||||||
Subject: [PATCH 2/2] SUSE: implement SUSE container secrets
|
Subject: [PATCH 2/2] SUSE: implement SUSE container secrets
|
||||||
@ -18,10 +18,10 @@ Signed-off-by: Aleksa Sarai <asarai@suse.de>
|
|||||||
create mode 100644 daemon/suse_secrets.go
|
create mode 100644 daemon/suse_secrets.go
|
||||||
|
|
||||||
diff --git a/daemon/start.go b/daemon/start.go
|
diff --git a/daemon/start.go b/daemon/start.go
|
||||||
index 6c94fd5482d0..3c06eed778d7 100644
|
index eddb5d3d5060..eb74e2ab1096 100644
|
||||||
--- a/daemon/start.go
|
--- a/daemon/start.go
|
||||||
+++ b/daemon/start.go
|
+++ b/daemon/start.go
|
||||||
@@ -146,6 +146,11 @@ func (daemon *Daemon) containerStart(container *container.Container, checkpoint
|
@@ -141,6 +141,11 @@ func (daemon *Daemon) containerStart(container *container.Container, checkpoint
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ index 6c94fd5482d0..3c06eed778d7 100644
|
|||||||
return err
|
return err
|
||||||
diff --git a/daemon/suse_secrets.go b/daemon/suse_secrets.go
|
diff --git a/daemon/suse_secrets.go b/daemon/suse_secrets.go
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 000000000000..591abc998e67
|
index 000000000000..99bdbefdebcc
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/daemon/suse_secrets.go
|
+++ b/daemon/suse_secrets.go
|
||||||
@@ -0,0 +1,246 @@
|
@@ -0,0 +1,246 @@
|
||||||
@ -66,8 +66,8 @@ index 000000000000..591abc998e67
|
|||||||
+ "syscall"
|
+ "syscall"
|
||||||
+
|
+
|
||||||
+ "github.com/Sirupsen/logrus"
|
+ "github.com/Sirupsen/logrus"
|
||||||
+ "github.com/opencontainers/go-digest"
|
|
||||||
+ "github.com/docker/docker/container"
|
+ "github.com/docker/docker/container"
|
||||||
|
+ "github.com/opencontainers/go-digest"
|
||||||
+
|
+
|
||||||
+ swarmtypes "github.com/docker/docker/api/types/swarm"
|
+ swarmtypes "github.com/docker/docker/api/types/swarm"
|
||||||
+ swarmexec "github.com/docker/swarmkit/agent/exec"
|
+ swarmexec "github.com/docker/swarmkit/agent/exec"
|
||||||
@ -286,5 +286,5 @@ index 000000000000..591abc998e67
|
|||||||
+ return nil
|
+ return nil
|
||||||
+}
|
+}
|
||||||
--
|
--
|
||||||
2.12.2
|
2.13.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user