diff --git a/lock.json b/lock.json index ebea03d0..27d1d5d9 100644 --- a/lock.json +++ b/lock.json @@ -1,5 +1,5 @@ { - "memo": "54df0475f8948f4d0f416a919b64659031d5da2b3ba1f87141eb855c832b952c", + "memo": "43d56ce99d6232de6146fa891dafc690d66b05555ce6587759f39d037e37c84a", "projects": [ { "name": "github.com/BurntSushi/toml", @@ -41,8 +41,10 @@ "revision": "530dd71e193012895ff7beee42cd64a02e1993da", "packages": [ "libcni", + "pkg/invoke", "pkg/ns", - "pkg/types" + "pkg/types", + "pkg/version" ] }, { @@ -51,10 +53,21 @@ "revision": "1c202c5d85d2ee531acb1e91740144410066d19e", "packages": [ "copy", + "directory", + "directory/explicitfilepath", + "docker", + "docker/daemon", + "docker/policyconfiguration", + "docker/reference", + "image", + "manifest", + "oci/layout", + "openshift", "signature", "storage", "transports", - "types" + "types", + "version" ] }, { @@ -62,11 +75,39 @@ "branch": "master", "revision": "5cbbc6bafb45bd7ef10486b673deb3b81bb3b787", "packages": [ + "drivers", + "drivers/aufs", + "drivers/btrfs", + "drivers/devmapper", + "drivers/overlay", + "drivers/overlay2", + "drivers/register", + "drivers/vfs", + "drivers/windows", + "drivers/zfs", "pkg/archive", + "pkg/chrootarchive", + "pkg/devicemapper", + "pkg/directory", + "pkg/fileutils", "pkg/homedir", + "pkg/idtools", "pkg/ioutils", + "pkg/longpath", + "pkg/loopback", + "pkg/mount", + "pkg/parsers", + "pkg/parsers/kernel", + "pkg/plugins", + "pkg/plugins/transport", + "pkg/pools", + "pkg/promise", + "pkg/random", "pkg/reexec", - "storage" + "pkg/stringid", + "pkg/system", + "storage", + "storageversion" ] }, { @@ -74,7 +115,8 @@ "version": "v14", "revision": "48702e0da86bd25e76cfef347e2adeb434a0d0a6", "packages": [ - "daemon" + "daemon", + "dbus" ] }, { @@ -82,8 +124,18 @@ "branch": "master", "revision": "fb0bebc4b64e3881cc52a2478d749845ed76d2a8", "packages": [ + ".", + "context", + "digestset", "reference", - "registry/client" + "registry/api/errcode", + "registry/api/v2", + "registry/client", + "registry/client/auth/challenge", + "registry/client/transport", + "registry/storage/cache", + "registry/storage/cache/memory", + "uuid" ] }, { @@ -91,11 +143,26 @@ "version": "v1.13.0", "revision": "49bf474f9ed7ce7143a59d1964ff7b7fd9b52178", "packages": [ + "api/types", + "api/types/blkiodev", + "api/types/container", + "api/types/events", + "api/types/filters", + "api/types/mount", + "api/types/network", + "api/types/reference", + "api/types/registry", "api/types/strslice", + "api/types/swarm", + "api/types/time", + "api/types/versions", + "api/types/volume", "client", + "pkg/random", "pkg/registrar", "pkg/stringid", "pkg/stringutils", + "pkg/tlsconfig", "pkg/truncindex", "utils/templates" ] @@ -134,6 +201,14 @@ "." ] }, + { + "name": "github.com/godbus/dbus", + "version": "v4.0.0", + "revision": "5f6efc7ef2759c81b7ba876593971bfce311eab3", + "packages": [ + "." + ] + }, { "name": "github.com/gogo/protobuf", "version": "v0.3", @@ -141,6 +216,7 @@ "packages": [ "gogoproto", "proto", + "protoc-gen-gogo/descriptor", "sortkeys" ] }, @@ -258,7 +334,8 @@ "branch": "master", "revision": "2d92f6557e64d4f9a0e799a75fdf153cec13dffa", "packages": [ - "generate" + "generate", + "generate/seccomp" ] }, { @@ -306,6 +383,7 @@ "version": "v0.10.1", "revision": "d3f1b54304d656376e58f9406a9cb4775799a357", "packages": [ + "archive/tar", "tar/asm", "tar/storage" ] @@ -315,7 +393,13 @@ "branch": "master", "revision": "dc137beb6cce2043eb6b5f223ab8bf51c32459f4", "packages": [ - "openpgp" + "cast5", + "openpgp", + "openpgp/armor", + "openpgp/elgamal", + "openpgp/errors", + "openpgp/packet", + "openpgp/s2k" ] }, { @@ -327,6 +411,9 @@ "context/ctxhttp", "http2", "http2/hpack", + "idna", + "internal/timeseries", + "lex/httplex", "proxy", "trace" ] @@ -345,7 +432,15 @@ "version": "v1.0.1-GA", "revision": "0032a855ba5c8a3c8e0d71c2deef354b70af1584", "packages": [ - "." + ".", + "codes", + "credentials", + "grpclog", + "internal", + "metadata", + "naming", + "peer", + "transport" ] }, { @@ -369,7 +464,8 @@ "branch": "master", "revision": "21807b270ec15d19215659a5caa08b17f66d6f44", "packages": [ - "pkg/fields" + "pkg/fields", + "pkg/selection" ] }, { @@ -385,7 +481,6 @@ "branch": "master", "revision": "760d8e98e8f6ad27aaf50b1a030cb9e7b6859aab", "packages": [ - "pkg/fields", "pkg/kubelet/api/v1alpha1/runtime" ] } diff --git a/manifest.json b/manifest.json index b108b5ff..b44a07fc 100644 --- a/manifest.json +++ b/manifest.json @@ -9,6 +9,15 @@ "github.com/docker/distribution": { "branch": "master" }, + "github.com/godbus/dbus": { + "version": "^4.0.0" + }, + "github.com/opencontainers/runc": { + "branch": "master" + }, + "github.com/opencontainers/runtime-spec": { + "branch": "master" + }, "google.golang.org/grpc": { "version": "v1.0.1-GA" }, diff --git a/utils/utils.go b/utils/utils.go index 0db64aaf..b5d29a4f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -7,6 +7,9 @@ import ( "os/exec" "strings" "syscall" + + systemdDbus "github.com/coreos/go-systemd/dbus" + "github.com/godbus/dbus" ) // ExecCmd executes a command with args and returns its output as a string along @@ -54,3 +57,27 @@ func Prctl(option int, arg2, arg3, arg4, arg5 uintptr) (err error) { func StatusToExitCode(status int) int { return ((status) & 0xff00) >> 8 } + +// RunUnderSystemdScope adds the specified pid to a systemd scope +func RunUnderSystemdScope(pid int, slice string, unitName string) error { + var properties []systemdDbus.Property + conn, err := systemdDbus.New() + if err != nil { + return err + } + properties = append(properties, systemdDbus.PropSlice(slice)) + properties = append(properties, newProp("PIDs", []uint32{uint32(pid)})) + properties = append(properties, newProp("Delegate", true)) + properties = append(properties, newProp("DefaultDependencies", false)) + if _, err := conn.StartTransientUnit(unitName, "replace", properties, nil); err != nil { + return err + } + return nil +} + +func newProp(name string, units interface{}) systemdDbus.Property { + return systemdDbus.Property{ + Name: name, + Value: dbus.MakeVariant(units), + } +} diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-manifest-digest-error/manifest.json b/vendor/github.com/containers/image/signature/fixtures/dir-img-manifest-digest-error/manifest.json deleted file mode 120000 index 3dee14b4..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-manifest-digest-error/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../v2s1-invalid-signatures.manifest.json \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-manifest-digest-error/signature-1 b/vendor/github.com/containers/image/signature/fixtures/dir-img-manifest-digest-error/signature-1 deleted file mode 120000 index f010fd4c..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-manifest-digest-error/signature-1 +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/signature-1 \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/manifest.json b/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/manifest.json deleted file mode 120000 index ff7d2ffa..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/manifest.json \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/signature-1 b/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/signature-1 deleted file mode 120000 index b27cdc45..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/signature-1 +++ /dev/null @@ -1 +0,0 @@ -../invalid-blob.signature \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/signature-2 b/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/signature-2 deleted file mode 120000 index f010fd4c..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-mixed/signature-2 +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/signature-1 \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-modified-manifest/signature-1 b/vendor/github.com/containers/image/signature/fixtures/dir-img-modified-manifest/signature-1 deleted file mode 120000 index f010fd4c..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-modified-manifest/signature-1 +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/signature-1 \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-no-manifest/signature-1 b/vendor/github.com/containers/image/signature/fixtures/dir-img-no-manifest/signature-1 deleted file mode 120000 index f010fd4c..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-no-manifest/signature-1 +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/signature-1 \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-unsigned/manifest.json b/vendor/github.com/containers/image/signature/fixtures/dir-img-unsigned/manifest.json deleted file mode 120000 index ff7d2ffa..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-unsigned/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/manifest.json \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-valid-2/manifest.json b/vendor/github.com/containers/image/signature/fixtures/dir-img-valid-2/manifest.json deleted file mode 120000 index ff7d2ffa..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-valid-2/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/manifest.json \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-valid-2/signature-1 b/vendor/github.com/containers/image/signature/fixtures/dir-img-valid-2/signature-1 deleted file mode 120000 index f010fd4c..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-valid-2/signature-1 +++ /dev/null @@ -1 +0,0 @@ -../dir-img-valid/signature-1 \ No newline at end of file diff --git a/vendor/github.com/containers/image/signature/fixtures/dir-img-valid/manifest.json b/vendor/github.com/containers/image/signature/fixtures/dir-img-valid/manifest.json deleted file mode 120000 index c5bd2543..00000000 --- a/vendor/github.com/containers/image/signature/fixtures/dir-img-valid/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../image.manifest.json \ No newline at end of file diff --git a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.default b/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.default deleted file mode 120000 index 4278533d..00000000 --- a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.default +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/sysvinit-debian/docker.default \ No newline at end of file diff --git a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.init b/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.init deleted file mode 120000 index 8cb89d30..00000000 --- a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.init +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/sysvinit-debian/docker \ No newline at end of file diff --git a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.upstart b/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.upstart deleted file mode 120000 index 7e1b64a3..00000000 --- a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.docker.upstart +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/upstart/docker.conf \ No newline at end of file diff --git a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.udev b/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.udev deleted file mode 120000 index 914a3619..00000000 --- a/vendor/github.com/containers/storage/hack/make/.build-deb/docker-engine.udev +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/udev/80-docker.rules \ No newline at end of file diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.default b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.default deleted file mode 120000 index 4278533d..00000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.default +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/sysvinit-debian/docker.default \ No newline at end of file diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.init b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.init deleted file mode 120000 index 8cb89d30..00000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.init +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/sysvinit-debian/docker \ No newline at end of file diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.upstart b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.upstart deleted file mode 120000 index 7e1b64a3..00000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.upstart +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/upstart/docker.conf \ No newline at end of file diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.udev b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.udev deleted file mode 120000 index 914a3619..00000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.udev +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/udev/80-docker.rules \ No newline at end of file diff --git a/vendor/github.com/docker/docker/project/CONTRIBUTORS.md b/vendor/github.com/docker/docker/project/CONTRIBUTORS.md deleted file mode 120000 index 44fcc634..00000000 --- a/vendor/github.com/docker/docker/project/CONTRIBUTORS.md +++ /dev/null @@ -1 +0,0 @@ -../CONTRIBUTING.md \ No newline at end of file diff --git a/vendor/github.com/godbus/dbus/CONTRIBUTING.md b/vendor/github.com/godbus/dbus/CONTRIBUTING.md new file mode 100644 index 00000000..c88f9b2b --- /dev/null +++ b/vendor/github.com/godbus/dbus/CONTRIBUTING.md @@ -0,0 +1,50 @@ +# How to Contribute + +## Getting Started + +- Fork the repository on GitHub +- Read the [README](README.markdown) for build and test instructions +- Play with the project, submit bugs, submit patches! + +## Contribution Flow + +This is a rough outline of what a contributor's workflow looks like: + +- Create a topic branch from where you want to base your work (usually master). +- Make commits of logical units. +- Make sure your commit messages are in the proper format (see below). +- Push your changes to a topic branch in your fork of the repository. +- Make sure the tests pass, and add any new tests as appropriate. +- Submit a pull request to the original repository. + +Thanks for your contributions! + +### Format of the Commit Message + +We follow a rough convention for commit messages that is designed to answer two +questions: what changed and why. The subject line should feature the what and +the body of the commit should describe the why. + +``` +scripts: add the test-cluster command + +this uses tmux to setup a test cluster that you can easily kill and +start for debugging. + +Fixes #38 +``` + +The format can be described more formally as follows: + +``` +: + + + +