diff options
author | umohnani8 <umohnani@redhat.com> | 2018-06-17 11:35:16 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-18 14:41:51 +0000 |
commit | 0f2ea23de567983521ce6be8804deda06056af10 (patch) | |
tree | d5c9600458900446951e9ea89cae02aad647a963 /cmd | |
parent | db094f6e15d3e63772d4346b0176cb6fc682b2fc (diff) | |
download | podman-0f2ea23de567983521ce6be8804deda06056af10.tar.gz podman-0f2ea23de567983521ce6be8804deda06056af10.tar.bz2 podman-0f2ea23de567983521ce6be8804deda06056af10.zip |
Add missing functionality for podman build layers
Need to pick the values from the flags and send it to
buildah for build.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes: #947
Approved by: rhatdan
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/build.go | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/cmd/podman/build.go b/cmd/podman/build.go index 14efb16fb..1f05da918 100644 --- a/cmd/podman/build.go +++ b/cmd/podman/build.go @@ -179,32 +179,36 @@ func buildCmd(c *cli.Context) error { namespaceOptions.AddOrReplace(usernsOption...) options := imagebuildah.BuildOptions{ - ContextDirectory: contextDir, - PullPolicy: pullPolicy, - Compression: imagebuildah.Gzip, - Quiet: c.Bool("quiet"), - SignaturePolicyPath: c.String("signature-policy"), - Args: args, - Output: output, - AdditionalTags: tags, - Out: stdout, - Err: stderr, - ReportWriter: reporter, - Runtime: c.String("runtime"), - RuntimeArgs: runtimeFlags, - OutputFormat: format, - SystemContext: systemContext, - NamespaceOptions: namespaceOptions, - ConfigureNetwork: networkPolicy, - CNIPluginPath: c.String("cni-plugin-path"), - CNIConfigDir: c.String("cni-config-dir"), - IDMappingOptions: idmappingOptions, - CommonBuildOpts: commonOpts, - DefaultMountsFilePath: c.GlobalString("default-mounts-file"), - IIDFile: c.String("iidfile"), - Squash: c.Bool("squash"), - Labels: c.StringSlice("label"), - Annotations: c.StringSlice("annotation"), + ContextDirectory: contextDir, + PullPolicy: pullPolicy, + Compression: imagebuildah.Gzip, + Quiet: c.Bool("quiet"), + SignaturePolicyPath: c.String("signature-policy"), + Args: args, + Output: output, + AdditionalTags: tags, + Out: stdout, + Err: stderr, + ReportWriter: reporter, + Runtime: c.String("runtime"), + RuntimeArgs: runtimeFlags, + OutputFormat: format, + SystemContext: systemContext, + NamespaceOptions: namespaceOptions, + ConfigureNetwork: networkPolicy, + CNIPluginPath: c.String("cni-plugin-path"), + CNIConfigDir: c.String("cni-config-dir"), + IDMappingOptions: idmappingOptions, + CommonBuildOpts: commonOpts, + DefaultMountsFilePath: c.GlobalString("default-mounts-file"), + IIDFile: c.String("iidfile"), + Squash: c.Bool("squash"), + Labels: c.StringSlice("label"), + Annotations: c.StringSlice("annotation"), + Layers: c.Bool("layers"), + NoCache: c.Bool("no-cache"), + RemoveIntermediateCtrs: c.BoolT("rm"), + ForceRmIntermediateCtrs: c.Bool("force-rm"), } if !c.Bool("quiet") { |