Commit Graph

159 Commits

Author SHA1 Message Date
Daniel J Walsh 4704e6cb3f
Eliminate the use of containers/building import in pkg subdirs
We want to shrink the size of the import when importing pkg from
buildah. This should help us shrink the size of the golang bindings
in podman.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-02-12 12:43:08 -05:00
TomSweeneyRedHat 2efb6cc555 Reset upstream branch to dev version
Reset back to v1.20.0-dev for the upstream branch.
Any 1.19.* releases should come out of that release branch.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-01-16 12:11:39 -05:00
Daniel J Walsh aba61cdec4
Fix version of release to v1.19.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-01-14 16:47:41 -05:00
TomSweeneyRedHat 4f7c609f67 Bump to v1.20.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-01-08 14:35:43 -05:00
TomSweeneyRedHat 474febf0dc Bump to v1.19.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-01-08 14:30:59 -05:00
TomSweeneyRedHat a65e628f2c Bump to v1.19.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-11-16 09:45:35 -05:00
TomSweeneyRedHat d3a01d0041 Bump to v1.18.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-11-16 09:25:22 -05:00
TomSweeneyRedHat 7098e0e21f Bump to v1.18.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-10-29 18:36:52 -04:00
TomSweeneyRedHat 8891d05dba Bump to v1.17.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-10-29 18:33:13 -04:00
Daniel J Walsh 39f4cfb79d
Stop excessive wrapping
Golang built in functions like os.Create and others print the name of
the file system object when they fail.  Wrapping them a second time
with the file system object, makes the error message look like crap
when reported to the user.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-10-15 14:03:13 -04:00
baude 681e3eff98 refactor pullpolicy to avoid deps
refeactor the pullpollicy to its own package so that it can be imported on its own without deps like containers/storage, etc. this will help consuming podman's go bindings.

Signed-off-by: baude <bbaude@redhat.com>
2020-10-12 13:17:31 -05:00
Nalin Dahyabhai bf41a3d707 Makefile: tweak the cross-compile target
What `go tool dist list` says the toolchain supports changes, so this
change removes these attempted cross-compile build targets.
* GOOS=darwin, GOARCH unspecified
* GOOS=darwin, GOARCH=386

Replace our use of slices of
github.com/opencontainers/runc/libcontainer/configs.Device structures
with a locally-defined type alias so that we can avoid importing the
package on non-Unixy systems.  The result is not going to be a very
useful binary on non-Linux systems, but it helps ensure that our
subpackages won't break compilation for other projects who consume us as
a library.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2020-09-24 12:09:48 -04:00
Daniel J Walsh 87f3fa59d8
Timestamp gets updated everytime you inspect an image
I don't see a purpose of this field in the History log, removing.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-08 16:33:43 -04:00
TomSweeneyRedHat 785a750886 Bump to v1.17.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-09-03 17:19:05 -04:00
TomSweeneyRedHat 295b825cdc Bump to v1.16.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-09-03 17:19:05 -04:00
Daniel J Walsh 8bb100be2a
Add --omit-timestamp flag to buildah bud
Currently you can only do deterministic builds with commit command
this change will cause the metadata in the container image to be
epoch 0.

Next step is to save the data in the tar balls as 0.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-08-11 05:28:41 -04:00
TomSweeneyRedHat 038a24b6a3 Bump to v1.16.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-06-17 13:20:13 -04:00
TomSweeneyRedHat 368c41b8ed Bump to v1.15.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-06-17 13:20:13 -04:00
Brandon Lum 37df2b9690 implementation of encrypt/decrypt push/pull/bud/from
Signed-off-by: Brandon Lum <lumjjb@gmail.com>
2020-05-18 21:27:23 +00:00
Nalin Dahyabhai b72bda2dff pull/from/commit/push: retry on most failures
If PullOptions/BuilderOptions/CommitOptions/PushOptions includes a
MaxRetries value other than 0, retry operations except for (currently)
connection-refused, authentication, and no-such-repository/no-such-tag
errors, at a default-but-configurable interval of 5 seconds.

Set the default for `buildah pull/from/commit/push` to 3 retries at 2
second intervals.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2020-02-10 14:07:10 -05:00
TomSweeneyRedHat fbab7d4705 Bump to v1.15.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-02-06 19:22:39 -05:00
TomSweeneyRedHat 5965d9acff Bump to v1.14.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-02-06 19:22:39 -05:00
TomSweeneyRedHat 3177db512b Bump back to v1.14.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #2122
Approved by: rhatdan
2020-01-31 00:45:10 +00:00
TomSweeneyRedHat b8a8a01c6c Bump to v1.13.2
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #2122
Approved by: rhatdan
2020-01-31 00:45:10 +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
TomSweeneyRedHat bf14e6ca2d Bump back to v1.14.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #2081
Approved by: rhatdan
2020-01-14 17:27:04 +00:00
TomSweeneyRedHat e8c07c6eac Bump to v1.13.1
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #2081
Approved by: rhatdan
2020-01-14 17:27:04 +00:00
TomSweeneyRedHat 4b5437a981 Bump to v1.14.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #2053
Approved by: rhatdan
2019-12-28 11:28:25 +00:00
TomSweeneyRedHat 57bd81884c Bump to v1.13.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #2053
Approved by: rhatdan
2019-12-28 11:28:25 +00:00
TomSweeneyRedHat de31778eec Bump to v1.13.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-12-13 11:42:33 -05:00
TomSweeneyRedHat 6cc46567d1 Bump to v1.12.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-12-13 11:39:25 -05:00
Daniel J Walsh cd88667465 Ran buildah through codespell
Thanks to Dmitry Smirnov @onlyjob for suggesting this tool.

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

Closes: #1985
Approved by: TomSweeneyRedHat
2019-11-20 17:38:41 +00:00
TomSweeneyRedHat 85ab067e58 Bump back to v1.12.0-dev
Closes: #1978
Approved by: rhatdan
2019-11-12 04:31:12 +00:00
TomSweeneyRedHat 7c97335f2c Bump to v1.11.5
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1978
Approved by: rhatdan
2019-11-12 04:31:12 +00:00
TomSweeneyRedHat 89bc2a6a6a Fix --pull=true||false and add --pull-never to bud and from (retry)
(Replaces #1873 as it had lint issues that were timing out tests that I couldn't
track down easily)

Prior to this fix, if someone did `buildah bud --pull=false .` and the image in
the Containerfile's FROM statement was not local, the build would fail. The same
build on Docker will succeed. In Docker, when `--pull` is set to false, it only
pulls the image from the registry if there was not one locally. Buildah would never
pull the image and if the image was not locally available, it would throw an error.
In certain Kubernetes environments, this was especially troublesome.

To retain the old `--pull=false` functionality, I've created a new `--pull-never`
option that fails if an image is not locally available just like the old
`--pull=false` option used to do.

In addition, if there was a newer version of the image on the repository than
the one locally, the `--pull=true` option would not pull the image as it should
have, this corrects that.

Changes both the from and bud commands.

Addresses: #1675

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

Closes: #1959
Approved by: rhatdan
2019-11-06 22:20:24 +00:00
TomSweeneyRedHat c2dc46a478 Bump back to v1.12.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1946
Approved by: rhatdan
2019-10-28 17:37:31 +00:00
TomSweeneyRedHat 21b4778b35 Bump to v1.11.4
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1946
Approved by: rhatdan
2019-10-28 17:37:31 +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
TomSweeneyRedHat 7a7e1f07ee Bump back to v1.12.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1896
Approved by: rhatdan
2019-10-04 17:45:51 +00:00
TomSweeneyRedHat bdd78ad917 Bump to v1.11.3
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1896
Approved by: rhatdan
2019-10-04 17:45:51 +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
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
TomSweeneyRedHat 61469c5f16 Bump to v1.12.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-08-29 18:40:07 -04:00
TomSweeneyRedHat 2c5da1be10 Bump to v1.11.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-08-29 18:35:02 -04: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
TomSweeneyRedHat 216aeec8ab Bump to v1.11.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-08-02 11:31:21 -04:00
TomSweeneyRedHat 5a3e9fb262 Bump to v1.10.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2019-08-02 11:22:28 -04:00
Daniel J Walsh 0f5e51b039
Bump to v1.9.3-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-07-19 07:25:39 -04:00
Daniel J Walsh d2a3249ab6
Bump to v1.9.2
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-07-19 07:24:02 -04:00
Nalin Dahyabhai d7dec37df7 from/import: record the base image's digest, if it has one
Record the digest of the base image's manifest, if there is a base
image.

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

Closes: #1724
Approved by: rhatdan
2019-07-19 07:36:17 +00:00