robur-coop / builder

Scheduling build jobs on regular intervals, collecting artifacts
ISC License
13 stars 1 forks source link

reboot safety on linux #27

Closed hannesm closed 9 months ago

hannesm commented 1 year ago

somehow is there a dependency missing between builder and docker? on our linux VM it fails to start after a reboot, since the IP 172.17.0.1 is not there yet... maybe we need to adjust the installation instructions, or the systemd script to include such a(n optional) dependency!?

reynir commented 1 year ago

Hmm yes. It is not easy to write a script that is general enough to work with different setups, but we can at least write instructions. On my setup I have After=syslog.target network.target tinc@reynir.service where tinc@reynir.service is my VPN service (I run builder and builder-workers on different hosts). Since we're by default using the default docker network we should maybe add docker.service to After= with a comment.

hannesm commented 12 months ago

We should indeed work on this -- it would make our life easier :)

hannesm commented 12 months ago

on a side-note, for Linux we have both builder and builder-worker systemd scripts -- on FreeBSD we only have builder and should provide a builder_worker as well :)