Commit Graph

10 Commits

Author SHA1 Message Date
Nalin Dahyabhai a925f79cc3 add --sign-by to bud/commit/push, --remove-signatures for pull/push
Add the --sign-by option to `buildah build-using-dockerfile`,
`buildah commit`, `buildah push`, and `buildah manifest push`.  Add the
`--remove-signatures` option to `buildah pull`, `buildah push`, and
`buildah manifest push`.  We just pass them to the image library, which
does all of the heavy lifting.

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

Closes: #2085
Approved by: rhatdan
2020-01-17 18:22:34 +00:00
Daniel J Walsh 09d1c24e3d Add support for containers.conf
This is a rework of Qi Wang's patches.
Import package pkg/config from containers/common to read containers.conf
This patch allows users to specify default values stored in containers.conf
that will modify the behaviour of buildah tool.

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

Closes: #2011
Approved by: TomSweeneyRedHat
2020-01-15 17:24:36 +00:00
Daniel J Walsh 147d106c36 Only output image id if running buildah bud --quiet
We should be outputing just the imageID when doing a buildah bud quiet.
Currently the stdout from containers is showing up on the screen.

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

Closes: #1963
Approved by: TomSweeneyRedHat
2019-11-06 22:35:55 +00:00
Nalin Dahyabhai f0cf07bb60 Move to containers/image v5.0.0
Bump to containers/image's 5.0 release.

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

Closes: #1902
Approved by: rhatdan
2019-10-28 15:15:34 +00:00
Miloslav Trmač 797e618cbe Update c/image to v4.0.1
This requires updating all import paths throughout.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>

Closes: #1891
Approved by: vrothberg
2019-10-04 07:34:03 +00:00
TomSweeneyRedHat 61e32a5711 Print build 'STEP' line to stdout, not stderr
The 'STEP' line that's printed as part of the build processing was
going to Stderr and causing some issues for OpenShift who was looking
for it.  Instead print it to Stdout.

Addresses: #1772

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1869
Approved by: rhatdan
2019-09-28 06:03:54 +00:00
Daniel J Walsh 20a33e0791 Add --devices flag to bud and from
Some Dockerfiles (fuse-overlay) require additional devices to be in the
build environment.

This patch allows the user to specify additional devices.

Also I noticed that CapAdd and CapDrop was not working in buildah bud situations,
so this patch also fixes this.

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

Closes: #1820
Approved by: @TomSweeneyRedHat
2019-09-07 17:32:43 +00:00
Nalin Dahyabhai ebf6f518d0 Use content digests in ADD/COPY history entries
Use digests of the added content in history entries that we create for
ADD and COPY instructions, tightening up cache checking just a little
bit more.

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

Closes: #1792
Approved by: TomSweeneyRedHat
2019-08-16 20:16:40 +00:00
Nalin Dahyabhai 2df08f07f7 imagebuilder: fix detection of referenced stage roots
Fix detection of when we need to have an up-to-date copy of a stage's
root filesystem for later stages.  ADD and COPY instructions aren't the
first lines in their stages, so we can't stop parsing a stage's lines
after its first line.

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

Closes: #1786
Approved by: TomSweeneyRedHat
2019-08-12 18:10:19 +00:00
WanLinghao 7fc4ca7678 Refactor code in package imagebuildah
Signed-off-by: WanLinghao <wanlh.fnst@cn.fujitsu.com>

Closes: #1659
Approved by: rhatdan
2019-07-02 16:54:58 +00:00