Arch Linux AUR build bot using nspawn container
Go to file
2017-09-14 17:32:19 +03:00
scripts Make gpg-agent to fetch gpg keys automatically 2017-09-14 17:32:19 +03:00
smtpd Add initial files 2016-09-24 00:24:58 +03:00
aur Add initial files 2016-09-24 00:24:58 +03:00
buildpkg Add initial files 2016-09-24 00:24:58 +03:00
README.md Add useful scripts 2017-02-19 16:12:46 +02:00

mikroskeem's AUR build bot

NOTE: This is actually not ready, so it is not recommended to run it in production (don't be like me!)

Installing

  • Set up new Arch Linux nspawn container (I recommend using this script made by @arti)
  • Install aurutils and set it up
  • Copy buildpkg to /usr/bin in builder container
  • Set up OpenSMTPD server on container and host (to send emails to builder in case of failure)
    • Note: Don't forget to firewall!
  • Copy aur script to /usr/bin in host machine
  • Set up nginx to serve packages to host (and maybe for public)
  • Take look at scripts/ directory, you might find useful scripts there

Known issues

  • You can't edit PKGBUILD-s
  • You can't accept GPG keys automatically (insecure to do so, but you can do gpg --recv-key <key> in container shell)
  • Not documentated enough!
  • Probably something more I'm not currently aware of
  • Storing GPG password is insecure, if your builder gets hacked, then revoke your key

TODO

  • Pacman cache automatic cleanup timer
  • AUR build data automatic cleanup

More ideas

  • Telegram Bot to build packages?