Commit Graph

135 Commits

Author SHA1 Message Date
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
Sascha Grunert 7eb4e5972d
Add goimports linter and apply fixes
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-07-18 10:42:46 +02:00
Daniel J Walsh ffe96befde
Bump to v1.9.2-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-07-12 15:46:35 -04:00
Daniel J Walsh e5e054795b
Bump to v1.9.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-07-12 15:46:35 -04:00
Daniel J Walsh 4e78f9f346
Bump to v1.9.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-06-15 08:13:18 -04:00
Daniel J Walsh 00eb895d6f
Bump to v1.9.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-06-15 05:45:50 -04:00
TomSweeneyRedHat aa06a772a1 Bump back to v1.9.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1641
Approved by: nalind
2019-06-04 15:04:54 +00:00
TomSweeneyRedHat 547bd9a5cb Bump to v1.8.3
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1641
Approved by: nalind
2019-06-04 15:04:54 +00:00
Daniel J Walsh bcc5e51a94 Add support for Overlay volumes into the container.
Overlay mounts allow buildah bud and buildah from to
specify a directory on the disk that will be mounted
as an overlay into the container, where the overlay can be written to
but when the RUN or buildah run exits, the modified files will dissapear.

The basic idea is to be able to mount cache from the disk for things like yum/dnf/apt
to be able to be used and modified in the contianer on a run command, but to be
kept fresh for each RUN.

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

Closes: #1560
Approved by: giuseppe
2019-05-20 12:54:10 +00:00
TomSweeneyRedHat 75dbed7c01 Bump back to v1.9.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1571
Approved by: rhatdan
2019-05-03 01:25:30 +00:00
TomSweeneyRedHat e23314b172 Bump to v1.8.2
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1571
Approved by: rhatdan
2019-05-03 01:25:30 +00:00
TomSweeneyRedHat 08ae38206a Bump back to 1.9.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1566
Approved by: nalind
2019-05-02 01:10:51 +00:00
TomSweeneyRedHat 57b428822b Bump to v1.8.1
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1566
Approved by: nalind
2019-05-02 01:10:51 +00:00
TomSweeneyRedHat 031fd8877c Touch up 1.9-dev to 1.9.0-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1555
Approved by: rhatdan
2019-04-26 16:29:56 +00:00
TomSweeneyRedHat 7386ec63c8 Bump to 1.9-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1553
Approved by: rhatdan
2019-04-26 13:16:41 +00:00
TomSweeneyRedHat 4aa16cf48a Bump to v1.8.0
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1553
Approved by: rhatdan
2019-04-26 13:16:41 +00:00
James Cassell cd1b62a9ad auto pass http_proxy to container
- pass all proxy env vars
- --http-proxy option for bud and from
- bash_completion and docs

Signed-off-by: James Cassell <code@james.cassell.me>

Closes: #1525
Approved by: giuseppe
2019-04-17 14:33:46 +00:00
TomSweeneyRedHat d8fe40025a Bump back to 1.8-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1524
Approved by: rhatdan
2019-04-17 02:09:10 +00:00
TomSweeneyRedHat 2941f346db Bump to v1.7.3
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1524
Approved by: rhatdan
2019-04-17 02:09:10 +00:00
Qi Wang d43787be28 add --dns* flags to buildah bud
use --dns* flags to change /etc/resolv.conf in the container during the build.
Signed-off-by: Qi Wang <qiwan@redhat.com>

Closes: #1491
Approved by: rhatdan
2019-04-12 21:01:30 +00:00
TomSweeneyRedHat 13d9142af6 Bump back to 1.8-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1457
Approved by: rhatdan
2019-03-29 10:59:15 +00:00
TomSweeneyRedHat eb325d0733 Bump to v1.7.2
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #1457
Approved by: rhatdan
2019-03-29 10:59:15 +00:00
Daniel J Walsh 939de6f4d9 Allow rootless users to use the cache directory in homedir
Currently rootless podman attempts to write to /var/lib/containers/cache
and fails. This causes us to repeatedly push images that have already been
pushed.  This cache directory should be relative to the location of containers/storage
and not always stored in the same directory.

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

Closes: #1411
Approved by: TomSweeneyRedHat
2019-03-14 14:25:09 +00:00
TomSweeneyRedHat 32311f22fc Bump back to 1.8-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Bump version back to 1.8-dev after spinning 1.7.1.

Closes: #1371
Approved by: rhatdan
2019-02-26 21:56:36 +00:00
TomSweeneyRedHat a1dd1b08ee Bump to v1.7.1
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Create v1.7.1 to pull in c/image v1.5 for bug fix.
2019-02-26 13:17:15 -05:00