mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Revendor runtime-spec
Signed-off-by: Darren Stahl <darst@microsoft.com>
This commit is contained in:
parent
f888a25ff5
commit
b90f294c1c
4 changed files with 35 additions and 16 deletions
|
@ -62,8 +62,8 @@ github.com/miekg/pkcs11 df8ae6ca730422dba20c768ff38ef7d79077a59f
|
||||||
|
|
||||||
# When updating, also update RUNC_COMMIT in hack/dockerfile/binaries-commits accordingly
|
# When updating, also update RUNC_COMMIT in hack/dockerfile/binaries-commits accordingly
|
||||||
github.com/opencontainers/runc 992a5be178a62e026f4069f443c6164912adbf09
|
github.com/opencontainers/runc 992a5be178a62e026f4069f443c6164912adbf09
|
||||||
github.com/opencontainers/runtime-spec v1.0.0-rc5 # specs
|
|
||||||
github.com/opencontainers/image-spec f03dbe35d449c54915d235f1a3cf8f585a24babe
|
github.com/opencontainers/image-spec f03dbe35d449c54915d235f1a3cf8f585a24babe
|
||||||
|
github.com/opencontainers/runtime-spec d42f1eb741e6361e858d83fc75aa6893b66292c4 # specs
|
||||||
|
|
||||||
github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
|
github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0
|
||||||
|
|
||||||
|
|
15
vendor/github.com/opencontainers/runtime-spec/README.md
generated
vendored
15
vendor/github.com/opencontainers/runtime-spec/README.md
generated
vendored
|
@ -60,10 +60,16 @@ When in doubt, start on the [mailing-list](#mailing-list).
|
||||||
|
|
||||||
### Weekly Call
|
### Weekly Call
|
||||||
|
|
||||||
The contributors and maintainers of all OCI projects have a weekly meeting Wednesdays at 2:00 PM (USA Pacific).
|
The contributors and maintainers of all OCI projects have a weekly meeting on Wednesdays at:
|
||||||
Everyone is welcome to participate via [UberConference web][uberconference] or audio-only: 415-968-0849 (no PIN needed.)
|
|
||||||
|
* 8:00 AM (USA Pacific), during [odd weeks][iso-week].
|
||||||
|
* 5:00 PM (USA Pacific), during [even weeks][iso-week].
|
||||||
|
|
||||||
|
There is an [iCalendar][rfc5545] format for the meetings [here](meeting.ics).
|
||||||
|
|
||||||
|
Everyone is welcome to participate via [UberConference web][uberconference] or audio-only: +1 415 968 0849 (no PIN needed).
|
||||||
An initial agenda will be posted to the [mailing list](#mailing-list) earlier in the week, and everyone is welcome to propose additional topics or suggest other agenda alterations there.
|
An initial agenda will be posted to the [mailing list](#mailing-list) earlier in the week, and everyone is welcome to propose additional topics or suggest other agenda alterations there.
|
||||||
Minutes are posted to the [mailing list](#mailing-list) and minutes from past calls are archived to the [wiki][runtime-wiki].
|
Minutes are posted to the [mailing list](#mailing-list) and minutes from past calls are archived [here][minutes], with minutes from especially old meetings (September 2015 and earlier) archived [here][runtime-wiki].
|
||||||
|
|
||||||
### Mailing List
|
### Mailing List
|
||||||
|
|
||||||
|
@ -148,7 +154,10 @@ Read more on [How to Write a Git Commit Message][how-to-git-commit] or the Discu
|
||||||
[dev-list]: https://groups.google.com/a/opencontainers.org/forum/#!forum/dev
|
[dev-list]: https://groups.google.com/a/opencontainers.org/forum/#!forum/dev
|
||||||
[how-to-git-commit]: http://chris.beams.io/posts/git-commit
|
[how-to-git-commit]: http://chris.beams.io/posts/git-commit
|
||||||
[irc-logs]: http://ircbot.wl.linuxfoundation.org/eavesdrop/%23opencontainers/
|
[irc-logs]: http://ircbot.wl.linuxfoundation.org/eavesdrop/%23opencontainers/
|
||||||
|
[iso-week]: https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_of_a_given_date
|
||||||
|
[minutes]: http://ircbot.wl.linuxfoundation.org/meetings/opencontainers/
|
||||||
[oci]: https://www.opencontainers.org
|
[oci]: https://www.opencontainers.org
|
||||||
|
[rfc5545]: https://tools.ietf.org/html/rfc5545
|
||||||
[runtime-wiki]: https://github.com/opencontainers/runtime-spec/wiki
|
[runtime-wiki]: https://github.com/opencontainers/runtime-spec/wiki
|
||||||
[uberconference]: https://www.uberconference.com/opencontainers
|
[uberconference]: https://www.uberconference.com/opencontainers
|
||||||
|
|
||||||
|
|
32
vendor/github.com/opencontainers/runtime-spec/specs-go/config.go
generated
vendored
32
vendor/github.com/opencontainers/runtime-spec/specs-go/config.go
generated
vendored
|
@ -169,6 +169,9 @@ type Linux struct {
|
||||||
ReadonlyPaths []string `json:"readonlyPaths,omitempty"`
|
ReadonlyPaths []string `json:"readonlyPaths,omitempty"`
|
||||||
// MountLabel specifies the selinux context for the mounts in the container.
|
// MountLabel specifies the selinux context for the mounts in the container.
|
||||||
MountLabel string `json:"mountLabel,omitempty"`
|
MountLabel string `json:"mountLabel,omitempty"`
|
||||||
|
// IntelRdt contains Intel Resource Director Technology (RDT) information
|
||||||
|
// for handling resource constraints (e.g., L3 cache) for the container
|
||||||
|
IntelRdt *LinuxIntelRdt `json:"intelRdt,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LinuxNamespace is the configuration for a Linux namespace
|
// LinuxNamespace is the configuration for a Linux namespace
|
||||||
|
@ -247,9 +250,9 @@ type linuxBlockIODevice struct {
|
||||||
// LinuxWeightDevice struct holds a `major:minor weight` pair for blkioWeightDevice
|
// LinuxWeightDevice struct holds a `major:minor weight` pair for blkioWeightDevice
|
||||||
type LinuxWeightDevice struct {
|
type LinuxWeightDevice struct {
|
||||||
linuxBlockIODevice
|
linuxBlockIODevice
|
||||||
// Weight is the bandwidth rate for the device, range is from 10 to 1000
|
// Weight is the bandwidth rate for the device.
|
||||||
Weight *uint16 `json:"weight,omitempty"`
|
Weight *uint16 `json:"weight,omitempty"`
|
||||||
// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, range is from 10 to 1000, CFQ scheduler only
|
// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
|
||||||
LeafWeight *uint16 `json:"leafWeight,omitempty"`
|
LeafWeight *uint16 `json:"leafWeight,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -262,9 +265,9 @@ type LinuxThrottleDevice struct {
|
||||||
|
|
||||||
// LinuxBlockIO for Linux cgroup 'blkio' resource management
|
// LinuxBlockIO for Linux cgroup 'blkio' resource management
|
||||||
type LinuxBlockIO struct {
|
type LinuxBlockIO struct {
|
||||||
// Specifies per cgroup weight, range is from 10 to 1000
|
// Specifies per cgroup weight
|
||||||
Weight *uint16 `json:"blkioWeight,omitempty"`
|
Weight *uint16 `json:"blkioWeight,omitempty"`
|
||||||
// Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, range is from 10 to 1000, CFQ scheduler only
|
// Specifies tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler only
|
||||||
LeafWeight *uint16 `json:"blkioLeafWeight,omitempty"`
|
LeafWeight *uint16 `json:"blkioLeafWeight,omitempty"`
|
||||||
// Weight per cgroup per device, can override BlkioWeight
|
// Weight per cgroup per device, can override BlkioWeight
|
||||||
WeightDevice []LinuxWeightDevice `json:"blkioWeightDevice,omitempty"`
|
WeightDevice []LinuxWeightDevice `json:"blkioWeightDevice,omitempty"`
|
||||||
|
@ -457,8 +460,8 @@ type WindowsCPUResources struct {
|
||||||
Count *uint64 `json:"count,omitempty"`
|
Count *uint64 `json:"count,omitempty"`
|
||||||
// CPU shares (relative weight to other containers with cpu shares). Range is from 1 to 10000.
|
// CPU shares (relative weight to other containers with cpu shares). Range is from 1 to 10000.
|
||||||
Shares *uint16 `json:"shares,omitempty"`
|
Shares *uint16 `json:"shares,omitempty"`
|
||||||
// Percent of available CPUs usable by the container.
|
// Specifies the portion of processor cycles that this container can use as a percentage times 100.
|
||||||
Percent *uint8 `json:"percent,omitempty"`
|
Maximum *uint16 `json:"maximum,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WindowsStorageResources contains storage resource management settings.
|
// WindowsStorageResources contains storage resource management settings.
|
||||||
|
@ -481,7 +484,7 @@ type WindowsNetworkResources struct {
|
||||||
type LinuxSeccomp struct {
|
type LinuxSeccomp struct {
|
||||||
DefaultAction LinuxSeccompAction `json:"defaultAction"`
|
DefaultAction LinuxSeccompAction `json:"defaultAction"`
|
||||||
Architectures []Arch `json:"architectures,omitempty"`
|
Architectures []Arch `json:"architectures,omitempty"`
|
||||||
Syscalls []LinuxSyscall `json:"syscalls"`
|
Syscalls []LinuxSyscall `json:"syscalls,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Arch used for additional architectures
|
// Arch used for additional architectures
|
||||||
|
@ -546,8 +549,15 @@ type LinuxSeccompArg struct {
|
||||||
|
|
||||||
// LinuxSyscall is used to match a syscall in Seccomp
|
// LinuxSyscall is used to match a syscall in Seccomp
|
||||||
type LinuxSyscall struct {
|
type LinuxSyscall struct {
|
||||||
Names []string `json:"names"`
|
Names []string `json:"names"`
|
||||||
Action LinuxSeccompAction `json:"action"`
|
Action LinuxSeccompAction `json:"action"`
|
||||||
Args []LinuxSeccompArg `json:"args"`
|
Args []LinuxSeccompArg `json:"args,omitempty"`
|
||||||
Comment string `json:"comment"`
|
}
|
||||||
|
|
||||||
|
// LinuxIntelRdt has container runtime resource constraints
|
||||||
|
// for Intel RDT/CAT which introduced in Linux 4.10 kernel
|
||||||
|
type LinuxIntelRdt struct {
|
||||||
|
// The schema for L3 cache id and capacity bitmask (CBM)
|
||||||
|
// Format: "L3:<cache_id0>=<cbm0>;<cache_id1>=<cbm1>;..."
|
||||||
|
L3CacheSchema string `json:"l3CacheSchema,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
2
vendor/github.com/opencontainers/runtime-spec/specs-go/version.go
generated
vendored
2
vendor/github.com/opencontainers/runtime-spec/specs-go/version.go
generated
vendored
|
@ -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"
|
VersionDev = "-rc5-dev"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Version is the specification version that the package types support.
|
// Version is the specification version that the package types support.
|
||||||
|
|
Loading…
Add table
Reference in a new issue