Update runtime-spec rc6

This should be the same commit tagged as the 1.0 release

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-07-12 09:09:48 -07:00
parent 0600399b0d
commit 4e8943f7bb
7 changed files with 13 additions and 13 deletions

View File

@ -38,7 +38,7 @@ install:
- unzip -o -d /tmp/protobuf /tmp/protoc-3.1.0-linux-x86_64.zip - unzip -o -d /tmp/protobuf /tmp/protoc-3.1.0-linux-x86_64.zip
- export PATH=$PATH:/tmp/protobuf/bin/ - export PATH=$PATH:/tmp/protobuf/bin/
- go get -u github.com/vbatts/git-validation - go get -u github.com/vbatts/git-validation
- sudo wget https://github.com/crosbymichael/runc/releases/download/ctd-2/runc -O /bin/runc; sudo chmod +x /bin/runc - sudo wget https://github.com/crosbymichael/runc/releases/download/ctd-3/runc -O /bin/runc; sudo chmod +x /bin/runc
- wget https://github.com/xemul/criu/archive/v3.0.tar.gz -O /tmp/criu.tar.gz - wget https://github.com/xemul/criu/archive/v3.0.tar.gz -O /tmp/criu.tar.gz
- tar -C /tmp/ -zxf /tmp/criu.tar.gz - tar -C /tmp/ -zxf /tmp/criu.tar.gz
- cd /tmp/criu-3.0 && sudo make install-criu - cd /tmp/criu-3.0 && sudo make install-criu

View File

@ -64,7 +64,7 @@ func spec(id string, config *ocispec.ImageConfig, context *cli.Context) *specs.S
return &specs.Spec{ return &specs.Spec{
Version: specs.Version, Version: specs.Version,
Root: specs.Root{ Root: &specs.Root{
Readonly: context.Bool("readonly"), Readonly: context.Bool("readonly"),
}, },
Process: &specs.Process{ Process: &specs.Process{

View File

@ -64,7 +64,7 @@ func defaultNamespaces() []specs.LinuxNamespace {
func createDefaultSpec() (*specs.Spec, error) { func createDefaultSpec() (*specs.Spec, error) {
s := &specs.Spec{ s := &specs.Spec{
Version: specs.Version, Version: specs.Version,
Root: specs.Root{ Root: &specs.Root{
Path: defaultRootfsPath, Path: defaultRootfsPath,
}, },
Process: &specs.Process{ Process: &specs.Process{
@ -81,7 +81,7 @@ func createDefaultSpec() (*specs.Spec, error) {
Effective: defaltCaps(), Effective: defaltCaps(),
Ambient: defaltCaps(), Ambient: defaltCaps(),
}, },
Rlimits: []specs.LinuxRlimit{ Rlimits: []specs.POSIXRlimit{
{ {
Type: "RLIMIT_NOFILE", Type: "RLIMIT_NOFILE",
Hard: uint64(1024), Hard: uint64(1024),

View File

@ -18,7 +18,7 @@ const pipeRoot = `\\.\pipe`
func createDefaultSpec() (*specs.Spec, error) { func createDefaultSpec() (*specs.Spec, error) {
return &specs.Spec{ return &specs.Spec{
Version: specs.Version, Version: specs.Version,
Root: specs.Root{}, Root: &specs.Root{},
Process: &specs.Process{ Process: &specs.Process{
ConsoleSize: &specs.Box{ ConsoleSize: &specs.Box{
Width: 80, Width: 80,

View File

@ -14,7 +14,7 @@ github.com/matttproud/golang_protobuf_extensions v1.0.0
github.com/docker/go-units v0.3.1 github.com/docker/go-units v0.3.1
github.com/gogo/protobuf d2e1ade2d719b78fe5b061b4c18a9f7111b5bdc8 github.com/gogo/protobuf d2e1ade2d719b78fe5b061b4c18a9f7111b5bdc8
github.com/golang/protobuf 5a0f697c9ed9d68fef0116532c6e05cfeae00e55 github.com/golang/protobuf 5a0f697c9ed9d68fef0116532c6e05cfeae00e55
github.com/opencontainers/runtime-spec 198f23f827eea397d4331d7eb048d9d4c7ff7bee github.com/opencontainers/runtime-spec v1.0.0-rc6
github.com/opencontainers/runc 429a5387123625040bacfbb60d96b1cbd02293ab github.com/opencontainers/runc 429a5387123625040bacfbb60d96b1cbd02293ab
github.com/Sirupsen/logrus v0.11.0 github.com/Sirupsen/logrus v0.11.0
github.com/containerd/btrfs e9c546f46bccffefe71a6bc137e4c21b5503cc18 github.com/containerd/btrfs e9c546f46bccffefe71a6bc137e4c21b5503cc18

View File

@ -9,7 +9,7 @@ type Spec struct {
// Process configures the container process. // Process configures the container process.
Process *Process `json:"process,omitempty"` Process *Process `json:"process,omitempty"`
// Root configures the container's root filesystem. // Root configures the container's root filesystem.
Root Root `json:"root"` Root *Root `json:"root,omitempty"`
// Hostname configures the container's hostname. // Hostname configures the container's hostname.
Hostname string `json:"hostname,omitempty"` Hostname string `json:"hostname,omitempty"`
// Mounts configures additional mounts (on top of Root). // Mounts configures additional mounts (on top of Root).
@ -45,7 +45,7 @@ type Process struct {
// Capabilities are Linux capabilities that are kept for the process. // Capabilities are Linux capabilities that are kept for the process.
Capabilities *LinuxCapabilities `json:"capabilities,omitempty" platform:"linux"` Capabilities *LinuxCapabilities `json:"capabilities,omitempty" platform:"linux"`
// Rlimits specifies rlimit options to apply to the process. // Rlimits specifies rlimit options to apply to the process.
Rlimits []LinuxRlimit `json:"rlimits,omitempty" platform:"linux"` Rlimits []POSIXRlimit `json:"rlimits,omitempty" platform:"linux,solaris"`
// NoNewPrivileges controls whether additional privileges could be gained by processes in the container. // NoNewPrivileges controls whether additional privileges could be gained by processes in the container.
NoNewPrivileges bool `json:"noNewPrivileges,omitempty" platform:"linux"` NoNewPrivileges bool `json:"noNewPrivileges,omitempty" platform:"linux"`
// ApparmorProfile specifies the apparmor profile for the container. // ApparmorProfile specifies the apparmor profile for the container.
@ -94,7 +94,7 @@ type User struct {
// Root contains information about the container's root filesystem on the host. // Root contains information about the container's root filesystem on the host.
type Root struct { type Root struct {
// Path is the absolute path to the container's root filesystem. // Path is the absolute path to the container's root filesystem.
Path string `json:"path,omitempty"` Path string `json:"path"`
// Readonly makes the root filesystem for the container readonly before the process is executed. // Readonly makes the root filesystem for the container readonly before the process is executed.
Readonly bool `json:"readonly,omitempty"` Readonly bool `json:"readonly,omitempty"`
} }
@ -202,8 +202,8 @@ type LinuxIDMapping struct {
Size uint32 `json:"size"` Size uint32 `json:"size"`
} }
// LinuxRlimit type and restrictions // POSIXRlimit type and restrictions
type LinuxRlimit struct { type POSIXRlimit struct {
// Type of the rlimit to set // Type of the rlimit to set
Type string `json:"type"` Type string `json:"type"`
// Hard is the hard limit for the specified type // Hard is the hard limit for the specified type
@ -550,7 +550,7 @@ const (
type LinuxSeccompArg struct { type LinuxSeccompArg struct {
Index uint `json:"index"` Index uint `json:"index"`
Value uint64 `json:"value"` Value uint64 `json:"value"`
ValueTwo uint64 `json:"valueTwo"` ValueTwo uint64 `json:"valueTwo,omiempty"`
Op LinuxSeccompOperator `json:"op"` Op LinuxSeccompOperator `json:"op"`
} }

View File

@ -11,7 +11,7 @@ const (
VersionPatch = 0 VersionPatch = 0
// VersionDev indicates development branch. Releases will be empty string. // VersionDev indicates development branch. Releases will be empty string.
VersionDev = "-rc5-dev" VersionDev = "-rc6"
) )
// Version is the specification version that the package types support. // Version is the specification version that the package types support.