Skip to content

Commit

Permalink
Windows: Add initialConsoleSize to process
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <jhoward@microsoft.com>
  • Loading branch information
John Howard committed Sep 18, 2016
1 parent b3ce195 commit 0efe3b8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [Se
**`process`** (object, required) configures the container process.

* **`terminal`** (bool, optional) specifies whether you want a terminal attached to that process, defaults to false.
* **`initialConsoleSize`** (box, optional) specifies the initial console size of the terminal if attached.
* **`cwd`** (string, required) is the working directory that will be set for the executable.
This value MUST be an absolute path.
* **`env`** (array of strings, optional) contains a list of variables that will be set in the process's environment prior to execution.
Expand Down Expand Up @@ -139,6 +140,10 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
```json
"process": {
"terminal": true,
"initialConsoleSize": {
"height": 25,
"width": 80
},
"user": {
"uid": 1,
"gid": 1,
Expand Down Expand Up @@ -174,6 +179,10 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th
```json
"process": {
"terminal": true,
"initialConsoleSize": {
"height": 25,
"width": 80
},
"user": {
"uid": 1,
"gid": 1,
Expand Down
7 changes: 7 additions & 0 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type Spec struct {
type Process struct {
// Terminal creates an interactive terminal for the container.
Terminal bool `json:"terminal,omitempty"`
// InitialConsoleSize contains the initial size of the console.
InitialConsoleSize Box `json:"initialConsoleSize"`
// User specifies user information for the process.
User User `json:"user"`
// Args specifies the binary and arguments for the application to execute.
Expand Down Expand Up @@ -64,6 +66,11 @@ type User struct {
AdditionalGids []uint32 `json:"additionalGids,omitempty" platform:"linux,solaris"`
}

type Box struct {
Height uint `json:"height"`
Width uint `json:"width"`
}

// Root contains information about the container's root filesystem on the host.
type Root struct {
// Path is the absolute path to the container's root filesystem.
Expand Down

0 comments on commit 0efe3b8

Please sign in to comment.