Remove output formats from the Yaml file, put in CLI

This removes outputs from yaml, instead you can do
```
moby build -output tar -output qcow2 file.yaml
```
or alternative syntax
```
moby build -output tar,qcow2 file.yaml
```

In future we may change this to be available in a `moby package`
step, but lets try this for now.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-05-25 16:30:48 +01:00
parent b47f3dec4a
commit cbbedbfc57
7 changed files with 144 additions and 107 deletions

View File

@@ -12,7 +12,7 @@ import (
func TestOverrides(t *testing.T) {
var yamlCaps = []string{"CAP_SYS_ADMIN"}
var yaml MobyImage = MobyImage{
var yaml = MobyImage{
Name: "test",
Image: "testimage",
Capabilities: &yamlCaps,
@@ -20,7 +20,7 @@ func TestOverrides(t *testing.T) {
var labelCaps = []string{"CAP_SYS_CHROOT"}
var label MobyImage = MobyImage{
var label = MobyImage{
Capabilities: &labelCaps,
Cwd: "/label/directory",
}