Skip to content

Commit

Permalink
Replace old oci specs import with runtime-specs
Browse files Browse the repository at this point in the history
Fixes #25804

The upstream repo changed the import paths.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
  • Loading branch information
crosbymichael committed Aug 17, 2016
1 parent 2ae49a0 commit 041e5a2
Show file tree
Hide file tree
Showing 23 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion daemon/container_operations_unix.go
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/opencontainers/runc/libcontainer/configs"
"github.com/opencontainers/runc/libcontainer/devices"
"github.com/opencontainers/runc/libcontainer/label"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

func u32Ptr(i int64) *uint32 { u := uint32(i); return &u }
Expand Down
2 changes: 1 addition & 1 deletion daemon/daemon_unix.go
Expand Up @@ -38,7 +38,7 @@ import (
"github.com/golang/protobuf/ptypes"
"github.com/opencontainers/runc/libcontainer/label"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion daemon/oci_linux.go
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/opencontainers/runc/libcontainer/apparmor"
"github.com/opencontainers/runc/libcontainer/devices"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

func setResources(s *specs.Spec, r containertypes.Resources) error {
Expand Down
2 changes: 1 addition & 1 deletion daemon/seccomp_disabled.go
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"

"github.com/docker/docker/container"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

var supportsSeccomp = false
Expand Down
2 changes: 1 addition & 1 deletion daemon/seccomp_linux.go
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/docker/docker/container"
"github.com/docker/docker/profiles/seccomp"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

var supportsSeccomp = true
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/commandline/dockerd.md
Expand Up @@ -590,7 +590,7 @@ options for `zfs` start with `zfs` and options for `btrfs` start with `btrfs`.
## Docker runtime execution options

The Docker daemon relies on a
[OCI](https://github.com/opencontainers/specs) compliant runtime
[OCI](https://github.com/opencontainers/runtime-spec) compliant runtime
(invoked via the `containerd` daemon) as its interface to the Linux
kernel `namespaces`, `cgroups`, and `SELinux`.

Expand Down
2 changes: 1 addition & 1 deletion hack/vendor.sh
Expand Up @@ -103,7 +103,7 @@ clone git github.com/docker/go v1.5.1-1-1-gbaf439e
clone git github.com/agl/ed25519 d2b94fd789ea21d12fac1a4443dd3a3f79cda72c

clone git github.com/opencontainers/runc cc29e3dded8e27ba8f65738f40d251c885030a28 # libcontainer
clone git github.com/opencontainers/specs v1.0.0-rc1 # specs
clone git github.com/opencontainers/runtime-spec v1.0.0-rc1 # specs
clone git github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
# libcontainer deps (see src/github.com/opencontainers/runc/Godeps/Godeps.json)
clone git github.com/coreos/go-systemd v4
Expand Down
2 changes: 1 addition & 1 deletion libcontainerd/client_linux.go
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/docker/docker/pkg/mount"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/timestamp"
specs "github.com/opencontainers/specs/specs-go"
specs "github.com/opencontainers/runtime-spec/specs-go"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion libcontainerd/container_linux.go
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/Sirupsen/logrus"
containerd "github.com/docker/containerd/api/grpc/types"
"github.com/docker/docker/restartmanager"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion libcontainerd/types_linux.go
Expand Up @@ -2,7 +2,7 @@ package libcontainerd

import (
containerd "github.com/docker/containerd/api/grpc/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

// Spec is the base configuration for the container. It specifies platform
Expand Down
2 changes: 1 addition & 1 deletion libcontainerd/types_solaris.go
@@ -1,7 +1,7 @@
package libcontainerd

import (
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

// Spec is the base configuration for the container. It specifies platform
Expand Down
2 changes: 1 addition & 1 deletion libcontainerd/utils_linux.go
Expand Up @@ -2,7 +2,7 @@ package libcontainerd

import (
containerd "github.com/docker/containerd/api/grpc/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

func getRootIDs(s specs.Spec) (int, int, error) {
Expand Down
2 changes: 1 addition & 1 deletion oci/defaults_linux.go
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"runtime"

"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

func sPtr(s string) *string { return &s }
Expand Down
2 changes: 1 addition & 1 deletion oci/defaults_solaris.go
@@ -1,7 +1,7 @@
package oci

import (
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

// DefaultSpec returns default oci spec used by docker.
Expand Down
2 changes: 1 addition & 1 deletion plugin/manager_linux.go
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/docker/docker/restartmanager"
"github.com/docker/engine-api/types"
"github.com/docker/engine-api/types/container"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

func (pm *Manager) enable(p *plugin, force bool) error {
Expand Down
2 changes: 1 addition & 1 deletion plugin/manager_windows.go
Expand Up @@ -5,7 +5,7 @@ package plugin
import (
"fmt"

"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

func (pm *Manager) enable(p *plugin, force bool) error {
Expand Down
2 changes: 1 addition & 1 deletion profiles/seccomp/seccomp.go
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"

"github.com/docker/engine-api/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

//go:generate go run -tags 'seccomp' generate.go
Expand Down
2 changes: 1 addition & 1 deletion profiles/seccomp/seccomp_default.go
Expand Up @@ -6,7 +6,7 @@ import (
"syscall"

"github.com/docker/engine-api/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
libseccomp "github.com/seccomp/libseccomp-golang"
)

Expand Down
2 changes: 1 addition & 1 deletion profiles/seccomp/seccomp_unsupported.go
Expand Up @@ -4,7 +4,7 @@ package seccomp

import (
"github.com/docker/engine-api/types"
"github.com/opencontainers/specs/specs-go"
"github.com/opencontainers/runtime-spec/specs-go"
)

// DefaultProfile returns a nil pointer on unsupported systems.
Expand Down

0 comments on commit 041e5a2

Please sign in to comment.