Skip to content

Commit

Permalink
Add composefile schema 3.7 with platfrom
Browse files Browse the repository at this point in the history
It's ignored for now (docker stack deploy) and will print a warning if present.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed May 31, 2018
1 parent a8ee42a commit ddd1590
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 37 deletions.
1 change: 1 addition & 0 deletions cli/compose/loader/full-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ services:
other-other-network:

pid: "host"
platform: "linux/x86_64"

ports:
- 3000
Expand Down
72 changes: 36 additions & 36 deletions cli/compose/schema/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/compose/schema/data/config_schema_v3.7.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
]
},
"pid": {"type": ["string", "null"]},

"platform": {"type": "string"},
"ports": {
"type": "array",
"items": {
Expand Down
1 change: 1 addition & 0 deletions cli/compose/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var UnsupportedProperties = []string{
"mac_address",
"network_mode",
"pid",
"platform",
"privileged",
"restart",
"security_opt",
Expand Down

0 comments on commit ddd1590

Please sign in to comment.