Commit Graph

6 Commits

Author SHA1 Message Date
Martchus 1e5ded1c67 Ensure the devel container can be built if archlinux-keyring needs an update 2024-02-24 21:12:23 +01:00
Martchus 719f39092c Make recent `makecontainerpkg` changes work with Docker 2023-11-10 14:11:54 +01:00
Martchus b7fb618581 Improve user mapping in `makecontainerpkg`
* Use `--userns` to become `builduser` right away instead of using `sudo`
  to become `builduser`
* Add `builduser` to `sudoers` so it can become root to synchronize
  packages
* Ensure this way that files created within the container have the
  user/group of the user starting the container so build artifacts have the
  right ownership
2023-11-08 17:45:14 +01:00
Martchus 3c78fa5fa7 Improve `makecontainerpkg`
* Parse `pkgname` from `PKGBUILD` via sourcing to cope with variables
* Allow overriding the container name to be able to re-use an existing
  container
* Be verbose when installing packages during the image creation
2023-02-16 18:59:05 +01:00
Martchus 513103840d Improve `makecontainerpkg`
* Add my GPG key to the pacman keyring (not nice to hard-code it in the
  Dockerfile but good enough for now)
* Install ccache into the base image to support makepkg's ccache option
* Split syncing packages and execution of `makepkg` so syncing can be
  avoided when only building source package
* Don't quote `CRE`, it is unlikely spaces are needed here and using
  chained commands (e.g. `sudo …`) might be useful
* Add documentation
2022-06-12 21:00:20 +02:00
Martchus 97dc991438 Add `makecontainerpkg`
* Allow building Arch Linux packages within a "standard" container similar
  to how `makechrootpkg` allows building packages within a systemd-nspawn
  container
* Add a Dockerfile to create an Arch Linux image suitable for package
  builds via `makepkg`
2022-06-11 17:06:54 +02:00