You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Close: opencontainers#725
See discussion in opencontainers#830 , the full platform can be maintained
in image-spec, but since we have platform-specific configurations
in runtime-spec, I think it makes sence we keep a general simple
definition for platform.
Signed-off-by: Qiang Huang <[email protected]>
Copy file name to clipboardExpand all lines: config.md
+9-26Lines changed: 9 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -304,46 +304,32 @@ For Windows based systems the user structure has the following fields:
304
304
305
305
## <aname="configPlatform" />Platform
306
306
307
-
**`platform`** (object, REQUIRED) specifies the configuration's target platform.
308
-
309
-
***`os`** (string, REQUIRED) specifies the operating system family of the container configuration's specified [`root`](#root) file system bundle.
310
-
The runtime MUST generate an error if it does not support the specified **`os`**.
311
-
Bundles SHOULD use, and runtimes SHOULD understand, **`os`** entries listed in the Go Language document for [`GOOS`][go-environment].
312
-
If an operating system is not included in the `GOOS` documentation, it SHOULD be submitted to this specification for standardization.
313
-
***`arch`** (string, REQUIRED) specifies the instruction set for which the binaries in the specified [`root`](#root) file system bundle have been compiled.
314
-
The runtime MUST generate an error if it does not support the specified **`arch`**.
315
-
Values for **`arch`** SHOULD use, and runtimes SHOULD understand, **`arch`** entries listed in the Go Language document for [`GOARCH`][go-environment].
316
-
If an architecture is not included in the `GOARCH` documentation, it SHOULD be submitted to this specification for standardization.
307
+
**`platform`** (string, REQUIRED) specifies the configuration's target platform.
308
+
The value MUST be a slug from [the platform list](spec.md#platforms).
Copy file name to clipboardExpand all lines: specs-go/config.go
+1-10Lines changed: 1 addition & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ type Spec struct {
7
7
// Version of the Open Container Runtime Specification with which the bundle complies.
8
8
Versionstring`json:"ociVersion"`
9
9
// Platform specifies the configuration's target platform.
10
-
PlatformPlatform`json:"platform"`
10
+
Platformstring`json:"platform"`
11
11
// Process configures the container process.
12
12
Process*Process`json:"process,omitempty"`
13
13
// Root configures the container's root filesystem.
@@ -101,15 +101,6 @@ type Root struct {
101
101
Readonlybool`json:"readonly,omitempty"`
102
102
}
103
103
104
-
// Platform specifies OS and arch information for the host system that the container
105
-
// is created for.
106
-
typePlatformstruct {
107
-
// OS is the operating system.
108
-
OSstring`json:"os"`
109
-
// Arch is the architecture
110
-
Archstring`json:"arch"`
111
-
}
112
-
113
104
// Mount specifies a mount for a container.
114
105
typeMountstruct {
115
106
// Destination is the path where the mount will be placed relative to the container's root. The path and child directories MUST exist, a runtime MUST NOT create directories automatically to a mount point.
0 commit comments