Commit Graph

58 Commits

Author SHA1 Message Date
Chris Evich 1bc5dd6921
[CI:DOCS] Migrate buildah container image
Moved to: https://github.com/containers/image_build

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-03-11 09:53:42 -04:00
Chris Evich fee7050811
Revert "Reduce official image size"
Fixes: #5349

Unanticipated missing `dnf` functionality likely negatively impacts a
significant number of image users.  Further exploration of size
reduction is needed, but we cannot (likely) swap to `microdnf` easily.

This reverts commit cdb1a4ff8e.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-02-21 15:03:52 -05:00
Ian Kerins cdb1a4ff8e Reduce official image size
Current image size is 728MB.

1. Switch to fedora-minimal. Requires switching to dnf5. shadow-utils is
no longer included in the base image, so the bits about it are renmoved.
728MB -> 650MB.
2. Don't update unrelated packages. 650MB -> 598MB.

Ultimately the image is still very large, which is driven by the
veritable constellation of dependencies buildah installs.  Installing
`buildah` in fedora-minimal gives you this plan:

```
Package                            Arch    Version              Repository      Size
Upgrading:
 alternatives                      aarch64 1.26-1.fc39          updates    218.2 KiB
  replacing alternatives           aarch64 1.25-1.fc39          <unknown>  218.2 KiB
 bash                              aarch64 5.2.26-1.fc39        updates      8.3 MiB
  replacing bash                   aarch64 5.2.21-1.fc39        <unknown>    8.3 MiB
 crypto-policies                   noarch  20231204-1.git1e3a2e updates    149.3 KiB
  replacing crypto-policies        noarch  20231113-1.gitb402e8 <unknown>  149.1 KiB
 glibc                             aarch64 2.38-16.fc39         updates      9.7 MiB
  replacing glibc                  aarch64 2.38-11.fc39         <unknown>    9.7 MiB
 glibc-common                      aarch64 2.38-16.fc39         updates      2.6 MiB
  replacing glibc-common           aarch64 2.38-11.fc39         <unknown>    2.6 MiB
 glibc-minimal-langpack            aarch64 2.38-16.fc39         updates      0.0   B
  replacing glibc-minimal-langpack aarch64 2.38-11.fc39         <unknown>    0.0   B
 gnutls                            aarch64 3.8.3-1.fc39         updates      3.4 MiB
  replacing gnutls                 aarch64 3.8.1-1.fc39         <unknown>    3.4 MiB
 libacl                            aarch64 2.3.1-9.fc39         updates    196.0 KiB
  replacing libacl                 aarch64 2.3.1-8.fc39         <unknown>  196.0 KiB
 libblkid                          aarch64 2.39.3-5.fc39        updates    392.9 KiB
  replacing libblkid               aarch64 2.39.2-1.fc39        <unknown>  392.9 KiB
 libcap                            aarch64 2.48-9.fc39          updates      1.4 MiB
  replacing libcap                 aarch64 2.48-7.fc39          <unknown>    1.4 MiB
 libgcc                            aarch64 13.2.1-6.fc39        updates    349.7 KiB
  replacing libgcc                 aarch64 13.2.1-4.fc39        <unknown>  349.8 KiB
 libidn2                           aarch64 2.3.7-1.fc39         updates    457.1 KiB
  replacing libidn2                aarch64 2.3.4-3.fc39         <unknown>  451.0 KiB
 libmount                          aarch64 2.39.3-5.fc39        updates    484.1 KiB
  replacing libmount               aarch64 2.39.2-1.fc39        <unknown>  484.1 KiB
 libsmartcols                      aarch64 2.39.3-5.fc39        updates    288.1 KiB
  replacing libsmartcols           aarch64 2.39.2-1.fc39        <unknown>  288.1 KiB
 libuuid                           aarch64 2.39.3-5.fc39        updates    197.5 KiB
  replacing libuuid                aarch64 2.39.2-1.fc39        <unknown>  197.5 KiB
 readline                          aarch64 8.2-6.fc39           updates    689.1 KiB
  replacing readline               aarch64 8.2-4.fc39           <unknown>  689.1 KiB
 systemd-libs                      aarch64 254.9-1.fc39         updates      2.4 MiB
  replacing systemd-libs           aarch64 254.5-2.fc39         <unknown>    2.4 MiB
 util-linux-core                   aarch64 2.39.3-5.fc39        updates      6.1 MiB
   replacing util-linux-core       aarch64 2.39.2-1.fc39        <unknown>    5.9 MiB
Installing:
 buildah                           aarch64 1.34.0-1.fc39        updates     28.7 MiB
Installing dependencies:
 audit-libs                        aarch64 3.1.2-8.fc39         updates    547.2 KiB
 containers-common                 noarch  4:1-99.fc39          updates    124.4 KiB
 containers-common-extra           noarch  4:1-99.fc39          updates      0.0   B
 cracklib                          aarch64 2.9.11-2.fc39        fedora     934.7 KiB
 criu                              aarch64 3.19-2.fc39          updates      1.6 MiB
 crun                              aarch64 1.14.3-1.fc39        updates    554.2 KiB
 dbus                              aarch64 1:1.14.10-1.fc39     fedora       0.0   B
 dbus-broker                       aarch64 35-2.fc39            updates    614.2 KiB
 dbus-common                       noarch  1:1.14.10-1.fc39     fedora      11.2 KiB
 device-mapper                     aarch64 1.02.197-1.fc39      updates    630.3 KiB
 device-mapper-libs                aarch64 1.02.197-1.fc39      updates    511.4 KiB
 duktape                           aarch64 2.7.0-5.fc39         fedora     928.1 KiB
 elfutils-default-yama-scope       noarch  0.190-4.fc39         updates      1.8 KiB
 expat                             aarch64 2.6.0-1.fc39         updates    532.9 KiB
 fuse-common                       aarch64 3.16.1-1.fc39        fedora      38.0   B
 fuse3                             aarch64 3.16.1-1.fc39        fedora     457.7 KiB
 fuse3-libs                        aarch64 3.16.1-1.fc39        fedora     353.5 KiB
 gnupg2                            aarch64 2.4.3-4.fc39         updates     12.1 MiB
 gpgme                             aarch64 1.20.0-5.fc39        fedora     805.1 KiB
 gzip                              aarch64 1.12-6.fc39          fedora     475.8 KiB
 iptables-legacy                   aarch64 1.8.9-5.fc39         fedora     207.8 KiB
 iptables-legacy-libs              aarch64 1.8.9-5.fc39         fedora     410.4 KiB
 iptables-libs                     aarch64 1.8.9-5.fc39         fedora      19.2 MiB
 jansson                           aarch64 2.13.1-7.fc39        fedora     220.4 KiB
 json-c                            aarch64 0.17-1.fc39          fedora     202.4 KiB
 kmod                              aarch64 30-6.fc39            fedora     316.5 KiB
 kmod-libs                         aarch64 30-6.fc39            fedora     287.3 KiB
 libargon2                         aarch64 20190702-3.fc39      fedora     213.1 KiB
 libassuan                         aarch64 2.5.6-2.fc39         fedora     279.4 KiB
 libatomic                         aarch64 13.2.1-6.fc39        updates    196.8 KiB
 libb2                             aarch64 0.98.1-9.fc39        fedora     202.1 KiB
 libbsd                            aarch64 0.11.7-5.fc39        fedora     485.7 KiB
 libcap-ng                         aarch64 0.8.3-8.fc39         fedora     416.4 KiB
 libeconf                          aarch64 0.5.2-1.fc39         fedora     204.0 KiB
 libedit                           aarch64 3.1-48.20230828cvs.f fedora     343.8 KiB
 libfdisk                          aarch64 2.39.3-5.fc39        updates    494.9 KiB
 libgcrypt                         aarch64 1.10.2-2.fc39        fedora       1.1 MiB
 libgomp                           aarch64 13.2.1-6.fc39        updates    545.5 KiB
 libgpg-error                      aarch64 1.47-2.fc39          fedora       1.1 MiB
 libibverbs                        aarch64 46.0-4.fc39          fedora       3.9 MiB
 libksba                           aarch64 1.6.4-2.fc39         fedora     522.9 KiB
 libmd                             aarch64 1.1.0-2.fc39         fedora     238.9 KiB
 libmnl                            aarch64 1.0.5-3.fc39         fedora     223.2 KiB
 libnet                            aarch64 1.3-1.fc39           updates    228.7 KiB
 libnetfilter_conntrack            aarch64 1.0.9-2.fc39         fedora     279.5 KiB
 libnfnetlink                      aarch64 1.0.1-24.fc39        fedora     213.8 KiB
 libnftnl                          aarch64 1.2.6-2.fc39         fedora     286.1 KiB
 libnl3                            aarch64 3.9.0-1.fc39         updates      1.7 MiB
 libnsl2                           aarch64 2.0.0-6.fc39         fedora     221.9 KiB
 libpcap                           aarch64 14:1.10.4-2.fc39     fedora     489.6 KiB
 libseccomp                        aarch64 2.5.3-6.fc39         fedora     243.2 KiB
 libsecret                         aarch64 0.21.2-1.fc39        updates    873.3 KiB
 libsemanage                       aarch64 3.5-4.fc39           fedora     364.2 KiB
 libslirp                          aarch64 4.7.0-4.fc39         fedora     278.6 KiB
 libtirpc                          aarch64 1.3.4-0.rc2.fc39     updates    274.7 KiB
 libusb1                           aarch64 1.0.26-3.fc39        fedora     241.0 KiB
 mpdecimal                         aarch64 2.5.1-7.fc39         fedora     328.7 KiB
 netavark                          aarch64 1.10.3-1.fc39        updates     10.0 MiB
 nftables                          aarch64 1:1.0.7-3.fc39       fedora       1.2 MiB
 npth                              aarch64 1.6-14.fc39          fedora     221.4 KiB
 pam-libs                          aarch64 1.5.3-3.fc39         updates    607.9 KiB
 pcsc-lite                         aarch64 2.0.1-1.fc39         updates    354.7 KiB
 pcsc-lite-libs                    aarch64 2.0.1-1.fc39         updates    200.5 KiB
 polkit                            aarch64 123-1.fc39.1         updates      1.4 MiB
 polkit-libs                       aarch64 123-1.fc39.1         updates    415.2 KiB
 polkit-pkla-compat                aarch64 0.1-26.fc39          fedora     425.7 KiB
 protobuf-c                        aarch64 1.4.1-5.fc39         fedora     225.1 KiB
 python-pip-wheel                  noarch  23.2.1-1.fc39        fedora       1.5 MiB
 python3                           aarch64 3.12.1-2.fc39        updates    211.8 KiB
 python3-libs                      aarch64 3.12.1-2.fc39        updates     51.9 MiB
 qemu-user-static-aarch64          aarch64 2:8.1.3-3.fc39       updates     12.9 MiB
 qemu-user-static-alpha            aarch64 2:8.1.3-3.fc39       updates      3.5 MiB
 qemu-user-static-arm              aarch64 2:8.1.3-3.fc39       updates      9.1 MiB
 qemu-user-static-cris             aarch64 2:8.1.3-3.fc39       updates      3.4 MiB
 qemu-user-static-hexagon          aarch64 2:8.1.3-3.fc39       updates      5.8 MiB
 qemu-user-static-hppa             aarch64 2:8.1.3-3.fc39       updates      3.5 MiB
 qemu-user-static-loongarch64      aarch64 2:8.1.3-3.fc39       updates      3.8 MiB
 qemu-user-static-m68k             aarch64 2:8.1.3-3.fc39       updates      3.7 MiB
 qemu-user-static-microblaze       aarch64 2:8.1.3-3.fc39       updates      6.9 MiB
 qemu-user-static-mips             aarch64 2:8.1.3-3.fc39       updates     26.4 MiB
 qemu-user-static-nios2            aarch64 2:8.1.3-3.fc39       updates      3.4 MiB
 qemu-user-static-or1k             aarch64 2:8.1.3-3.fc39       updates      3.4 MiB
 qemu-user-static-ppc              aarch64 2:8.1.3-3.fc39       updates     13.5 MiB
 qemu-user-static-riscv            aarch64 2:8.1.3-3.fc39       updates      9.2 MiB
 qemu-user-static-s390x            aarch64 2:8.1.3-3.fc39       updates      3.9 MiB
 qemu-user-static-sh4              aarch64 2:8.1.3-3.fc39       updates      7.0 MiB
 qemu-user-static-sparc            aarch64 2:8.1.3-3.fc39       updates     10.8 MiB
 qemu-user-static-x86              aarch64 2:8.1.3-3.fc39       updates      8.1 MiB
 qemu-user-static-xtensa           aarch64 2:8.1.3-3.fc39       updates     13.7 MiB
 shadow-utils                      aarch64 2:4.14.0-2.fc39      updates      7.1 MiB
 shadow-utils-subid                aarch64 2:4.14.0-2.fc39      updates    394.8 KiB
 systemd                           aarch64 254.9-1.fc39         updates     25.0 MiB
 systemd-pam                       aarch64 254.9-1.fc39         updates      1.2 MiB
 tpm2-tss                          aarch64 4.0.1-6.fc39         updates      3.2 MiB
 tzdata                            noarch  2024a-2.fc39         updates      1.6 MiB
 xkeyboard-config                  noarch  2.40-1.fc39          updates      6.6 MiB
 yajl                              aarch64 2.1.0-22.fc39        fedora     598.4 KiB
Installing weak dependencies:
 aardvark-dns                      aarch64 1.10.0-1.fc39        updates      2.1 MiB
 cracklib-dicts                    aarch64 2.9.11-2.fc39        fedora       9.3 MiB
 criu-libs                         aarch64 3.19-2.fc39          updates    196.7 KiB
 cryptsetup-libs                   aarch64 2.6.1-3.fc39         fedora       2.1 MiB
 diffutils                         aarch64 3.10-3.fc39          fedora       2.1 MiB
 elfutils-debuginfod-client        aarch64 0.190-4.fc39         updates    396.8 KiB
 elfutils-libelf                   aarch64 0.190-4.fc39         updates      1.1 MiB
 elfutils-libs                     aarch64 0.190-4.fc39         updates      1.0 MiB
 fuse-overlayfs                    aarch64 1.12-2.fc39          fedora     218.8 KiB
 glibc-langpack-en                 aarch64 2.38-16.fc39         updates      5.7 MiB
 gnupg2-smime                      aarch64 2.4.3-4.fc39         updates    739.1 KiB
 libbpf                            aarch64 2:1.1.0-4.fc39       fedora     458.5 KiB
 libpwquality                      aarch64 1.4.5-6.fc39         fedora       1.1 MiB
 libxkbcommon                      aarch64 1.6.0-1.fc39         updates    597.3 KiB
 passt                             aarch64 0^20231230.gf091893- updates    784.7 KiB
 pcsc-lite-ccid                    aarch64 1.5.5-1.fc39         updates      1.9 MiB
 pinentry                          aarch64 1.2.1-4.fc39         fedora     361.7 KiB
 python-unversioned-command        noarch  3.12.1-2.fc39        updates     23.0   B
 qemu-user-static                  aarch64 2:8.1.3-3.fc39       updates     44.6 KiB
 qrencode-libs                     aarch64 4.1.1-5.fc39         fedora     300.9 KiB
 slirp4netns                       aarch64 1.2.2-1.fc39         updates    225.6 KiB
 systemd-networkd                  aarch64 254.9-1.fc39         updates      2.3 MiB
 systemd-resolved                  aarch64 254.9-1.fc39         updates    704.8 KiB
 tar                               aarch64 2:1.35-2.fc39        fedora       3.1 MiB

Transaction Summary:
 Installing:      122 packages
 Upgrading:        18 packages
 Replacing:        18 packages

Total size of inbound packages is 89 MiB. Need to download 89 MiB.
After this operation 390 MiB will be used (install 427 MiB, remove 37MiB).
```

There's a lot of confusing stuff in there, and we can't do anything to
fix that here.

See #5321.

Signed-off-by: Ian Kerins <git@isk.haus>
2024-02-21 00:07:36 -05:00
Daniel J Walsh 7e0d664839
Pass secrets from the host down to internal podman containers
This change will allow RHEL subscriptions from the host to flow to internal containers.

Fixes: containers/common#1735

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-11-13 10:54:49 -05:00
Indy Van Mol 4942cc9089 Fixing the owner of the storage.conf.
Adding a chown after the containers storage.conf file is made for the build user in the buildah container image otherwise the file is owned by root while it should be owned by the build user and its group.

Signed-off-by: Indy Van Mol <indy.van.mol@endstra.dev>
2023-08-25 22:26:47 +02:00
Aditya R 97b84029a9
contrib/buildahimage: set config correctly for rootless build user
For image published at `quay.io/containers/buildah` buildah should
correctly use `fuseoverlay` for rootless `build` user `fuse-overlayfs`.

Closes: https://github.com/containers/buildah/issues/4669

[NO NEW TESTS NEEDED]

Signed-off-by: Aditya R <arajan@redhat.com>
2023-07-03 12:02:45 +05:30
Aditya R 6d877d89dd
Revert "buildah image should not enable fuse-overlayfs for rootful mode"
This reverts commit 2e25b156f7.

Signed-off-by: Aditya R <arajan@redhat.com>
2023-04-11 12:58:26 +05:30
Daniel J Walsh 2e25b156f7
buildah image should not enable fuse-overlayfs for rootful mode
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-04-05 06:44:10 -04:00
Daniel J Walsh 376eb73ab9
Add default list of capabilities required to run buildah in a container
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-03-05 06:46:36 -08:00
Chris Evich 1950ab687e
Fix multi-arch manifest-list build timeouts
As of this commit, the build script runs the process on x86_64 hardware
(4cpus/8gig) using emulation for foreign architectures.  Due to various
delays, inefficiencies, and other emulation-related slowdowns, it's
possible for dnf to timeout and/or mis-measure a minimum repository
download rate.  Bump up the minimum download rate by 10x and timeout
interval by double.  This should allow the builds to complete more
consistently.

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-01-13 15:11:26 -05:00
Daniel J Walsh a172388917
codespell code
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-11-03 17:09:03 -04:00
Andrew Meadows 1a2af6864d Update contrib/buildahimage/Containerfile
Co-authored-by: Chris Evich <1183438+cevich@users.noreply.github.com>
Signed-off-by: Andrew Meadows <andrew@befuddled.ca>
2022-10-07 13:37:19 -07:00
Andrew Meadows b5c86a8e05 Correction - `FLAVOR` not `FLAVOUR`
This project uses the American dialect of written English. Not the
English (or Canadian) dialects as some more befuddled individuals might
do. I hope you enjoy the humour of this, I do.

Signed-off-by: Andrew Meadows <andrew@befuddled.ca>
2022-10-07 13:37:19 -07:00
Andrew Meadows f5fc96e79b Changed build argument from `RELEASE` to `FLAVOUR`
Due to concerns about the ambiguous overloaded meaning of RELEASE in
this context, the build argument has been renamed to `FLAVOUR`.

Signed-off-by: Andrew Meadows <andrew@befuddled.ca>
2022-10-07 13:37:19 -07:00
Andrew Meadows 36afa3530e Combine buildahimage Containerfiles
A single `Containerfile` should be easier to maintain and more reliable
than having three nearly identical files. The new file uses an argument
named `RELEASE` with the value `stable`, `testing`, or `upstream`.

Signed-off-by: Andrew Meadows <andrew@befuddled.ca>
2022-10-07 13:37:19 -07:00
Chris Evich 88615e98be
[CI:DOCS] Add quay-description update reminder
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-09-29 14:34:55 -04:00
Andrew Meadows 28195ac9d9 Changing shell list operators from `;` to `&&`
As per discussion with @nalid, updating the inconsistent use of
sequential operator (`;`) to the AND operator (`&&`) to avoid ignoring
errors. (Previous commit mimicked existing style.)

Signed-off-by: Andrew Meadows <andrew@befuddled.ca>
2022-09-28 14:21:31 -07:00
Andrew Meadows fc45803295 Fix buildahimage container.conf permissions regression
Signed-off-by: Andrew Meadows <andrew@befuddled.ca>
2022-09-28 14:21:31 -07:00
Chris Evich 263f5adc3f
[CI:DOCS] Update buildahimage comment
Drop a reference as to why the rpm --setcaps... line is needed, along
with a TODO reminder to check if it's still needed.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-29 11:39:58 -04:00
Chris Evich c0be04e63f
[CI:BUILD] Install latest buildah instead of compiling
When building the multi-arch "upstream" flavor of buildah container
images, it's more optimal to use separate compilation and image
construction steps.  The image-build automation is time-limited,
and operating under a (slow) emulation environment.  So using a
continuously pre-built buildah RPM will also improve build
reliability.

ref: https://github.com/containers/buildah/pull/4062

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-27 10:52:35 -04:00
openshift-ci[bot] 0a4fa3cd87
Merge pull request #4062 from lsm5/copr-auto-build
buildah.spec.rpkg: initial addition
2022-06-23 10:01:49 +00:00
Daniel J Walsh ffce8b3666
Make sure cpp is installed in buildah images
[NO NEW TESTS NEEDED]

Fixes: https://github.com/containers/buildah/issues/4070

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-06-22 09:22:04 -04:00
Lokesh Mandvekar 198b4c360b buildah.spec.rpkg: initial addition
This specfile along with a webhook will trigger auto rpm builds on the
`rhcontainerbot/podman-next` copr after every upstream PR merge.

Useful for those who want to fetch the latest upstream buildah without
having to build from source.

This commit also gets rid of `contrib/rpm/buildah.spec` and
`tests/version.bats`.

Known issue: Currently fails to build for EL8 envs.

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-06-21 15:10:28 -04:00
Chris Evich ecae0e2fe6
Fix building upstream buildah image
Previously, `;` were separating several `RUN` commands.  This is
dangerous, as failure in one won't result in a build failure.  This was
happening due to the `runc` package having a required dependency on
`contaqiner-selinux` which was excluded.  Fix this by using `&&` and
switching to the crun package.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-17 11:18:44 -04:00
Chris Evich cf6b1bcfba
Docs: Update multi-arch buildah images readme
Contents updated to more closely resemble the same docs in the podman
repository.  Also, remove the `centos7` compatibility section (and
build context) given it's not been built or maintained in over two
years.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-17 11:18:43 -04:00
Daniel J Walsh 0b7c50023b
Fix up buildah images
Fedora no longer ships /etc/containers/storage.conf but
/usr/share/containers/storage.conf, this causes the buildimages
to fail to build. This PR uses the storage.conf in /usr.

Removed Centos7 image, since this distribution is no longer supported
and no reason to ship an image specific to this distribution.
Removed stablebyhand image, since this does not look like it is needed
any longer, and was not being maintained.

[NO NEW TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-06-13 13:25:34 -04:00
tomsweeneyredhat be9ef3b602 [CI:BUILD] WIP Cleanup Image Dockerfiles
Cleans up the Dockerfiles for the buildah images that land on quay.

A number of readability changes, and an adjustment to sed to
handle storage.conf.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-06-04 18:23:46 -04:00
Valentin Rothberg 61005c76bc buildah image: install cpp
Ship `cpp` with the Buildah container images to make sure that
preprocessing .in files works as expected and documented.

Fixes: #3822
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-03-17 09:36:42 +01:00
Chmouel Boudjnah 41d384c3bc Increase subuid/subgid to 65535
We have a limit of 50000 for subuid and subgid in the buildah container image
for the build user which may be too low for when running rootless

Increasing the value to 65535 skipping build own id (1000) which should be good
enough for most cases.

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
2022-02-16 09:16:12 +01:00
Daniel J Walsh 75bbfdf3c0
Fix ownership of /home/build/.local/share/containers
Fixes: https://github.com/containers/buildah/issues/3457

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-26 06:21:37 -04:00
Daniel J Walsh abf6ea0e4f
Fix handling of --restore shadow-utils
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-07-27 13:33:47 -04:00
Daniel J Walsh 410c866212
Just restore protections of shadow-utils
Base images don't have shadow-utils permissions set correctly, this
change should speed up the building of images a little bit.

[NO TESTS NEEDED] This does not change buildah in any way, so no need to
tests.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-07-19 08:58:38 -04:00
Daniel J Walsh cfe911a3f0
Change references from master to main
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-06-23 11:03:24 -04:00
Daniel J Walsh e9a875b769
Add volumes to make running buildah within a container easier
[NO TESTS NEEDED] Since this is just changing Dockerfiles for use on
quay.io.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-05-27 06:21:05 -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
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
Josh Soref c7963db369 Spelling
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-12-21 16:47:18 -05:00
TomSweeneyRedHat 3a9ac75e40 Add fuse module warning to image readme
We've recently had a number of issues reported against our
pre-fabricated images on quay.io and a couple of rhel repositories
throwing a fuse error when run:
```
fuse: device not found, try 'modprobe fuse' first
```

The tip on modprobe fuse is not always seen by or displayed to
the end user.  Adding a couple of doc pointers to hopefully help.
Arises from this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1867892
and several others.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-08-28 18:19:00 -04:00
Job Céspedes Ortiz bcf4495214 fix(buildahimage): add xz dependency in buildah image
xz package is required by buildah and podman when building a
image and ADD a tar.xz file archive is used

Closes https://github.com/containers/buildah/issues/2525
Signed-off-by: Job Cespedes Ortiz <jobcespedes@gmail.com>
2020-08-11 12:14:29 -06:00
TomSweeneyRedHat d4a3f7cca9 DOC: Add quay.io/containers/buildah image to README.md
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-08-05 16:46:40 -04:00
TomSweeneyRedHat 17696b2aa3 Update buildahimages readme
Updates the buildahimage README.md to document what
the settings of PATH, ENTRYPOINT and WORKDIR are within
the container images that are stored in quay.io.

Addresses: #1693

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-08-04 14:47:24 -04:00
Daniel J Walsh a3f9c3c652
switch containers/libpod to containers/podman
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-07-13 17:21:55 -04:00
Zvi "CtrlZvi" Effron b2ad00c1bf Add VFS additional image store to container
For the overlay driver, the buildah container was given an additional
image store. Unfortunatley, overlay doesn't work out-of-the-box in a
Kubernetes cluster do to the lack of appropriate access to /dev/fuse.
In Minikube, it's non-trivial to provide that access, but it is trivial
to use the VFS storage driver.

Previously, the VFS storage driver would fail due to not having the
appropriate directory structure and required files in the additional
image store. This commit adds those files to the pre-built container
images to allow for easy use in Kubernetes.

Signed-off-by: Zvi "CtrlZvi" Effron <viz_skywalker+GitHub@outlook.com>
2020-07-08 09:23:03 -07:00
xiaotuanyu120 56750c1d0a add version centos7 for compatible
Signed-off-by: xiaotuanyu120 <zhaopeiwu@outlook.com>

Update contrib/buildahimage/centos7/Dockerfile

Co-authored-by: Tom Sweeney <tsweeney@redhat.com>

Update contrib/buildahimage/README.md

Co-authored-by: Tom Sweeney <tsweeney@redhat.com>

Update contrib/buildahimage/README.md

Co-authored-by: Tom Sweeney <tsweeney@redhat.com>

Update contrib/buildahimage/README.md

Co-authored-by: Tom Sweeney <tsweeney@redhat.com>

update description of the image centos7 and using containers.conf in stable instead

Signed-off-by: xiaotuanyu120 <zhaopeiwu@outlook.com>

Update contrib/buildahimage/centos7/Dockerfile

Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
2020-06-17 20:49:17 +08:00
TomSweeneyRedHat d4103b788d Add registry to buildahimage Dockerfiles
Adding the registry name registry.fedoraproject.org/
to the `FROM fedora:latest` statement in each of the
buildahimage Docker/Containerfiles.

When the buildah/testing:latest image is autobuilt by
the quay.io build triggers, Buildah's version is set to
v1.14.0 instead of v1.14.8.  If I use the same Dockerfile
and build on my test machine, the version is set to v1.14.8
as it should be.

quay.io uses Docker to do their image builds and it pulls
fedoara from docker.io by default.  I'm hoping that fully
specifying the image name will help that out.  Regardelss,
it won't hurt.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-04-30 19:32:39 -04:00
Daniel J Walsh da071e1c59
Fix permissions on containers.conf
When running in a rootless buildah, the build user
is not allowed to read /etc/containers/containers.conf
which is causing these containers to fail.

This patch makes containers.conf world readable.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-27 16:57:09 -04:00
Daniel J Walsh 92285646bc
cgroup_manager should be under [engine]
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-18 07:09:39 -04:00
TomSweeneyRedHat 4fdcfc4f22 Add containers.conf to stablebyhand build
Add the containers.conf in the build process of the
"stablebyhand" Containerfile which is used to build
a particular variant of Buildah by hand for use in quay.io.

The change for that is the ADD of the container.conf in
GitHub.com and emulates @rhatdan 's work in #2284

Also bumped the version to a more recent release while
I was in here.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-04-14 09:09:21 -04:00
Daniel J Walsh 88e882eb08
Remove warning for systemd inside of container
Change the default cgroup_manager to cgroupfs to change the warning
inside of the containers on systemd not being supported.

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