Support --compress docker build flag

This commit is contained in:
Kévin Darcel
2017-01-27 12:04:55 -06:00
parent 07b504834a
commit f4756f8e39
2 changed files with 10 additions and 0 deletions

View File

@@ -118,6 +118,11 @@ func main() {
Usage: "squash the layers at build time",
EnvVar: "PLUGIN_SQUASH",
},
cli.BoolFlag{
Name: "compress",
Usage: "compress the build context using gzip",
EnvVar: "PLUGIN_COMPRESS",
},
cli.StringFlag{
Name: "repo",
Usage: "docker repository",
@@ -167,6 +172,7 @@ func run(c *cli.Context) error {
Tags: c.StringSlice("tags"),
Args: c.StringSlice("args"),
Squash: c.Bool("squash"),
Compress: c.Bool("compress"),
Repo: c.String("repo"),
},
Daemon: Daemon{