propellor spin
This commit is contained in:
parent
377fa80378
commit
d38c48b97f
|
@ -132,6 +132,7 @@ orca = standardSystem "orca.kitenet.net" Unstable "amd64"
|
||||||
& Systemd.persistentJournal
|
& Systemd.persistentJournal
|
||||||
& Docker.configured
|
& Docker.configured
|
||||||
& Docker.docked (GitAnnexBuilder.standardAutoBuilderContainer dockerImage "amd64" 15 "2h")
|
& Docker.docked (GitAnnexBuilder.standardAutoBuilderContainer dockerImage "amd64" 15 "2h")
|
||||||
|
& Systemd.nspawned (GitAnnexBuilder.standardAutoBuilderContainerNspawn "amd64" 15 "2h")
|
||||||
& Docker.docked (GitAnnexBuilder.standardAutoBuilderContainer dockerImage "i386" 45 "2h")
|
& Docker.docked (GitAnnexBuilder.standardAutoBuilderContainer dockerImage "i386" 45 "2h")
|
||||||
& Docker.docked (GitAnnexBuilder.armelCompanionContainer dockerImage)
|
& Docker.docked (GitAnnexBuilder.armelCompanionContainer dockerImage)
|
||||||
& Docker.docked (GitAnnexBuilder.armelAutoBuilderContainer dockerImage (Cron.Times "1 3 * * *") "5h")
|
& Docker.docked (GitAnnexBuilder.armelAutoBuilderContainer dockerImage (Cron.Times "1 3 * * *") "5h")
|
||||||
|
|
|
@ -9,6 +9,8 @@ import qualified Propellor.Property.Cron as Cron
|
||||||
import qualified Propellor.Property.Ssh as Ssh
|
import qualified Propellor.Property.Ssh as Ssh
|
||||||
import qualified Propellor.Property.File as File
|
import qualified Propellor.Property.File as File
|
||||||
import qualified Propellor.Property.Docker as Docker
|
import qualified Propellor.Property.Docker as Docker
|
||||||
|
import qualified Propellor.Property.Systemd as Systemd
|
||||||
|
import qualified Propellor.Property.Chroot as Chroot
|
||||||
import Propellor.Property.Cron (Times)
|
import Propellor.Property.Cron (Times)
|
||||||
|
|
||||||
builduser :: UserName
|
builduser :: UserName
|
||||||
|
@ -105,6 +107,20 @@ standardAutoBuilderContainer dockerImage arch buildminute timeout = Docker.conta
|
||||||
& autobuilder arch (Cron.Times $ show buildminute ++ " * * * *") timeout
|
& autobuilder arch (Cron.Times $ show buildminute ++ " * * * *") timeout
|
||||||
& Docker.tweaked
|
& Docker.tweaked
|
||||||
|
|
||||||
|
standardAutoBuilderContainerNspawn :: Architecture -> Int -> TimeOut -> Systemd.Container
|
||||||
|
standardAutoBuilderContainerNspawn arch buildminute timeout = Systemd.container name bootstrap
|
||||||
|
& os myos
|
||||||
|
& Apt.stdSourcesList
|
||||||
|
& Apt.unattendedUpgrades
|
||||||
|
& User.accountFor (User builduser)
|
||||||
|
& tree arch
|
||||||
|
& buildDepsApt
|
||||||
|
& autobuilder arch (Cron.Times $ show buildminute ++ " * * * *") timeout
|
||||||
|
where
|
||||||
|
name = arch ++ "-git-annex-builder"
|
||||||
|
bootstrap = Chroot.debootstrapped myos mempty
|
||||||
|
myos = System (Debian Unstable) arch
|
||||||
|
|
||||||
androidAutoBuilderContainer :: (System -> Docker.Image) -> Times -> TimeOut -> Docker.Container
|
androidAutoBuilderContainer :: (System -> Docker.Image) -> Times -> TimeOut -> Docker.Container
|
||||||
androidAutoBuilderContainer dockerImage crontimes timeout =
|
androidAutoBuilderContainer dockerImage crontimes timeout =
|
||||||
androidContainer dockerImage "android-git-annex-builder" (tree "android") builddir
|
androidContainer dockerImage "android-git-annex-builder" (tree "android") builddir
|
||||||
|
|
Loading…
Reference in New Issue