aur-buildbot/README.md

29 lines
1.2 KiB
Markdown
Raw Normal View History

2016-09-24 00:24:58 +03: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
2016-09-24 00:26:12 +03:00
* Set up new Arch Linux nspawn container (I recommend using this [script](https://gist.github.com/artizirk/fab2ce13277a190ee6063b03b8e0a6e9) made by @arti)
2016-09-24 00:24:58 +03:00
* Install [aurutils](https://aur.archlinux.org/packages/aurutils) and set it up
* Copy `buildpkg` to `/usr/bin` in builder container
* Set up [OpenSMTPD](https://wiki.archlinux.org/index.php/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)
2017-02-19 16:12:46 +02:00
* Take look at `scripts/` directory, you might find useful scripts there
2016-09-24 00:24:58 +03:00
## 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
2017-02-19 16:12:46 +02:00
* Storing GPG password is insecure, if your builder gets hacked, then revoke your key
2016-09-24 00:26:51 +03:00
2016-09-24 00:29:02 +03:00
## TODO
* Pacman cache automatic cleanup timer
* AUR build data automatic cleanup
2016-09-24 00:26:51 +03:00
## More ideas
2016-09-24 00:29:02 +03:00
* Telegram Bot to build packages?