Commit Graph

315 Commits

Author SHA1 Message Date
Nalin Dahyabhai f207a3984b tag v1.21.5
[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-09-20 16:57:48 -04:00
Chris Evich 664ed4add3
Cirrus: Backport PR #3562
Same package metadata problem found to affect older release branch
'conformance' testing.

Make use of a hand-customized Ubuntu image with manually downloaded
(cached) docker packages.  This is necessary to support execution of the
conformance tests long-term.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-12-06 11:52:00 -05:00
Nalin Dahyabhai bf9268c793 Bump to v1.21.4
[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-07-22 14:21:29 -04:00
Nalin Dahyabhai 099b77bc0e Bump to v1.21.3
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-06-30 09:36:17 -04:00
TomSweeneyRedHat 50a2c50984 [release-1.21] Bump to Buildah v1.21.2
[NO NEW TESTS NEEDED]

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-06-29 08:31:57 -04:00
Daniel J Walsh d70e8ae362
Bump to v1.21.1
[NO TESTS NEEDED] Since this is just a release.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-06-07 07:36:22 -04:00
TomSweeneyRedHat 5e3515c5b0 Bump to v1.21.0 - [NO TESTS NEEDED]
[NO TESTS NEEDED] As the title says

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-05-19 17:47:55 -04:00
Hironori Shiina 234aa3277a Remove 'buildah run --security-opt' from completion
This flag is not implemented in 'buildah run'.

Signed-off-by: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
2021-05-18 15:34:01 -04:00
OpenShift Merge Robot 8288f4b4a3
Merge pull request #3205 from rhatdan/cleanup
codespell cleanup
2021-05-05 17:27:36 -04:00
Daniel J Walsh 65048c85d0
codespell cleanup
[NO TESTS NEEDED] Only code cleanup

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-05 15:56:04 -04:00
Chris Evich ba5ee0e8e1
Multi-arch github-action workflow unification
This is a port from the podman repository, of substantially the same
workflow with a number of bugfixes and readability improvements
compared to the original.  Same for the README.md updates.

The significant changes compared to the prior implementation are:

* Run periodically instead of only after every master push.
* Add a build for the "testing" image flavor.
* Fix a blank `org.opencontainers.image.source` value.
* Instead of pushing a `main` (or `master`) tagged image, use `latest`.
* Simplify use of env. vars. and workflow vars.

Note: Aside from a `s/podman/buildah/g` this commit makes the
buildah and podman workflows identical.  This is needed to better
support a smooth transition to a future/intended unification effort.

In other words, I intend to develop a single, shared workflow/script
that can be used for all three: skopeo, buildah, and podman.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-05-05 14:00:12 -04:00
Chris Evich 174cf8963f
Cirrus: Update Ubuntu images to 21.04
Also simplify `lib.sh` after supporting changes incorporated
into automation library 2.x+ (present in all VM and container
images).

* No need to force-load `/etc/profile` and handle it's expectation
  to **not** being in `errexit` mode.
* Slightly re-arrange loading of automation library files for
  clarity.
* Remove dependency on updating `/etc/environment` for GPG.
* Remove redundant showrun() function (now present in automation
  library)
* Update comments.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-04-26 14:15:12 -04:00
Daniel J Walsh bddf46893a
Add buildah manifest rm command
Add command to actually remove the manifest list. This
uses the same basic code that buildah rmi uses, but makes
the error messages more specific to a manifest list.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-23 08:24:35 -04:00
Daniel J Walsh bbf27625d5
Remove buildah bud --loglevel ...
This was never hooked up and just causes confusion for users.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-22 12:54:39 -04:00
TomSweeneyRedHat e5c5760e87 Bump to v1.20.2-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-04-13 18:08:07 -04:00
TomSweeneyRedHat 99f733350d Bump to v1.20.1
As the title says.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-04-13 18:05:44 -04:00
Nalin Dahyabhai dfe404f3de CLI add/copy: add a --from option
Add a --from option to `buildah add` and `buildah copy`, mirroring the
option for the Dockerfile instruction.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-04-08 13:21:26 -04:00
OpenShift Merge Robot 2dff5e0db4
Merge pull request #3109 from cevich/new_get_ci_vm.sh
Cirrus: Make use of shared get_ci_vm container
2021-04-05 22:39:59 +02:00
Chris Evich d46d84e0db
Cirrus: Make use of shared get_ci_vm container
Depends on:
    https://github.com/containers/automation_images/pull/57
    https://github.com/containers/automation/pull/64
    https://github.com/containers/automation/pull/66
    https://github.com/containers/automation/pull/67
    https://github.com/containers/automation/pull/68

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-04-05 13:19:57 -04:00
Daniel J Walsh f4254eef83
Setup alias for --tty to --terminal
Need to properly handle the --tty hidden flag.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-04-02 08:18:14 -04:00
Daniel J Walsh c13f7e3c79
Bump to v1.20.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-25 13:34:38 -04:00
Daniel J Walsh 293e02ac06
Bump to v1.20.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-25 13:28:06 -04:00
Yulia Gaponenko 324040f815 Add information about multi-arch images to the Readme
Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-03-23 10:43:31 +01:00
Tim Etchells 5f7e47bd2c fix: Containerfiles - smaller set of userns u/gids
Signed-off-by: Tim Etchells <tetchel@gmail.com>
2021-03-03 18:11:11 -05:00
Jakub Guzik 0b84bda3ed chmod/chown added/fixed in bash completions
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
2021-02-24 13:31:44 +01:00
Chris Evich 998f98efe3
Cirrus: Native OSX Build
These changes execute the cross-compile build naively on an OSX VM to
more thoroughly verify multi-platform support (other than on Linux). In
other words, it better confirms that any Linux-only changes do not leak
into non-Linux environments.  This change also enables greatly
simplifying automation scripts, as there is no longer any need to
support/check the `$CROSS_TARGET` variable.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-01-21 09:41:19 -05:00
Chris Evich e7e1728b46
Cirrus: Two minor cleanup items
Signed-off-by: Chris Evich <cevich@redhat.com>
2021-01-21 09:41:18 -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
Chris Evich bc9c02f68d
Cirrus: Support new VM Images in get_ci_vm.sh
Due to necessary changes in both scripts and within images, updates are
necessary for this script to function.  These changes also bring
the script very close to being identical to the same in the
containers/podman repository.  The intent is to support a future
where this script can simply be shared across repos.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-01-12 16:26:43 -05:00
Chris Evich 5672097146
Cirrus: Make tests pass with new VM Images
Also, utilize the common library functions from containers/automation.
This library is now pre-installed into the VM images. There are some
minor API differences to a few frequently used functions.  Otherwise
the behaviors are largely identical.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-01-12 16:26:43 -05:00
Chris Evich f4553e7c09
Cirrus: Collect cri-o-runc version
Signed-off-by: Chris Evich <cevich@redhat.com>
2021-01-12 16:26:42 -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
OpenShift Merge Robot 10c10eedd2
Merge pull request #2895 from rhatdan/push
Make buildah push support pushing manifests lists and digests
2021-01-08 08:44:41 -05:00
Daniel J Walsh 57dde8e977
Make buildah push support pushing manifests lists and digests
Currently manifests just look like images in container storage.
It is surprising to the user when they go to push the images
that they end up failing, and have to use the buildah manifest push.

This patch causes buildah push to failover to buildah manifest push
if the image is a manifest.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-01-08 06:36:11 -05:00
Daniel J Walsh 7acdfe8e8d
Add support for --manifest flags
This patch allows users to build a multi arch image with simple commands
using emulation software.

```
buildah bud --arch arm --manifest myimage /tmp/mysrc
buildah bud --arch amd64 --manifest myimage /tmp/mysrc
buildah bud --arch s390x --manifest myimage /tmp/mysrc
```

And something like this for buildah commit
```
build() {
	ctr=$(./bin/buildah from --arch $1 ubi8)
	./bin/buildah run $ctr dnf install -y iputils
	./bin/buildah commit --manifest ubi8ping $ctr
}
build arm
build amd64
build s390x
```

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-01-07 14:41:02 -05:00
Chris Evich 69d4542b7e
Cirrus: Track libseccomp and golang version
The versions of these packages on Fedora/Ubuntu are important/relevant
for testing, make them easy to observe.

Signed-off-by: Chris Evich <cevich@redhat.com>
2021-01-05 12:00:13 -05:00
OpenShift Merge Robot ffef8a6c0b
Merge pull request #2864 from jsoref/spelling
Spelling
2020-12-23 17:04:31 +01:00
Josh Soref c7963db369 Spelling
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-12-21 16:47:18 -05:00
Daniel J Walsh 18f3e8724e
Switch references of /var/run -> /run
Systemd is now complaining or mentioning /var/run as a legacy directory.
It has been many years where /var/run is a symlink to /run on all
most distributions, make the change to the default.

Partial fix for https://github.com/containers/podman/issues/8369

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-12-18 06:37:59 -05:00
dependabot-preview[bot] 063a6533e7
build(deps): bump github.com/containers/storage from 1.24.2 to 1.24.3
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.24.2 to 1.24.3.
- [Release notes](https://github.com/containers/storage/releases)
- [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md)
- [Commits](https://github.com/containers/storage/compare/v1.24.2...v1.24.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-12-16 15:47:16 -05:00
Daniel J Walsh fde2597af8
Add --ignorefile flag to use alternate .dockerignore flags
Allow users to override location of the .dockerignore file.
If user specified an --ignorefile flag, buildah will read the
file and pass in the exclude lines based on the .dockerignore
contents.

Also add a --contextdir flag to buildah copy and buildah add to
specify where the context directory is located.  For these two
commands the --ignorefile flag requires the --contextdir flag.

When the --ignorefile flag is passed in, the .dockerignore files
in the context directory will be ignored.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-24 15:28:07 -05:00
Daniel J Walsh ff5717ab25
Add suggests cpp to spec file
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-19 10:55:38 -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
Daniel J Walsh f280cd0285
Add --policy flag to buildah pull
This allows the user to specify the pull policy for pulling images.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-13 03:38:27 -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 26d2444d9f
Improve buildah completions
Watching users playing with buildah, they were disappointed in some of
the command completions that were missing. I have added the ones that they
were looking for plus a few more.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-09-15 16:45:50 -04:00