Commit Graph

111 Commits

Author SHA1 Message Date
Nalin Dahyabhai 0afa60eb05 Add CLI options for specifying namespace and cgroup setup
Add options to the CLI that specify which cgroups we execute "run"
commands under, and controlling how we set up namespaces for them.
Pass them down to Builders that we create, and allow them to be
overridden by options passed to Builder.Run().

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #700
Approved by: rhatdan
2018-05-24 14:10:01 +00:00
Nalin Dahyabhai 71f0f9d063 build-using-dockerfile: add --annotation
Add an --annotation flag to "buildah build-using-dockerfile".

Refactor the logic for --label handling to use SetLabel() to set them in
the image configuration in Executor.Commit(), instead of passing them as
a field in CommitOptions for Builder.Commit() and expecting it to do so.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #716
Approved by: rhatdan
2018-05-22 19:27:45 +00:00
Nalin Dahyabhai 1ad8dc0c24 Documentation fixes
Update some comments and a couple of man pages.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #709
Approved by: rhatdan
2018-05-18 19:58:31 +00:00
Daniel J Walsh 02cc30ba17 Add support for buildah bud --label
We want to be able to add labels when building a container image.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #698
Approved by: umohnani8
2018-05-18 14:03:35 +00:00
pixdrift e17534d816 Add cpu-shares short flag (-c) and cpu-shares CI tests
Signed-off-by: pixdrift <support@pixeldrift.net>

Closes: #670
Approved by: rhatdan
2018-05-10 15:52:19 +00:00
pixdrift 14837e2441 CI tests and minor fix for cache related noop flags
Signed-off-by: pixdrift <support@pixeldrift.net>

Closes: #667
Approved by: ripcurld
2018-05-08 12:46:45 +00:00
pixdrift 8e77a0c2f7 Add cache-from and no-cache noops, and fix doco
Signed-off-by: pixdrift <support@pixeldrift.net>

Closes: #659
Approved by: rhatdan
2018-05-07 13:24:43 +00:00
pixdrift 8e519c76b5 Update option and documentation for --force-rm
Signed-off-by: pixdrift <support@pixeldrift.net>

Closes: #659
Approved by: rhatdan
2018-05-07 13:24:43 +00:00
Daniel J Walsh 072ee88817 Add --compress, --rm, --squash flags as a noop for bud
We don't have a client server operation, so there
is no reason to compress the input.

We don't currently support cache so --rm and --squash are NOOPS

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #639
Approved by: rhatdan
2018-04-30 13:40:59 +00:00
Daniel J Walsh 3088277ee8 Add support for --iidfile to bud and commit
Add support for an --iidfile which specifies the file to write the
image id, when committing a new image.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #636
Approved by: TomSweeneyRedHat
2018-04-26 12:19:43 +00:00
baude 49abf8264e Refactor buildah bud for vendoring
Projects like libpod would benefit greatly if we could vendor in buildah
rather than execing it.  This refactor moves some of the key parsing
functions that buds uses to pkg/parse so that the project vendoring
buildah can also benefit from them.

Signed-off-by: baude <bbaude@redhat.com>

Closes: #608
Approved by: rhatdan
2018-04-24 20:08:51 +00:00