propellor spin
This commit is contained in:
parent
ffcc53d730
commit
2c2247fc23
|
@ -75,7 +75,6 @@ darkstar = host "darkstar.kitenet.net"
|
||||||
|
|
||||||
& Apt.buildDep ["git-annex"] `period` Daily
|
& Apt.buildDep ["git-annex"] `period` Daily
|
||||||
& Docker.configured
|
& Docker.configured
|
||||||
! Docker.docked gitAnnexAndroidDev
|
|
||||||
|
|
||||||
& JoeySites.postfixClientRelay (Context "darkstar.kitenet.net")
|
& JoeySites.postfixClientRelay (Context "darkstar.kitenet.net")
|
||||||
& JoeySites.dkimMilter
|
& JoeySites.dkimMilter
|
||||||
|
@ -130,9 +129,9 @@ orca = standardSystem "orca.kitenet.net" Unstable "amd64"
|
||||||
& Apt.unattendedUpgrades
|
& Apt.unattendedUpgrades
|
||||||
& Postfix.satellite
|
& Postfix.satellite
|
||||||
& Systemd.persistentJournal
|
& Systemd.persistentJournal
|
||||||
& Systemd.nspawned (GitAnnexBuilder.standardAutoBuilderContainerNspawn "amd64" 15 "2h")
|
& Systemd.nspawned (GitAnnexBuilder.standardAutoBuilderContainer "amd64" 15 "2h")
|
||||||
& Systemd.nspawned (GitAnnexBuilder.standardAutoBuilderContainerNspawn "i386" 15 "2h")
|
& Systemd.nspawned (GitAnnexBuilder.standardAutoBuilderContainer "i386" 15 "2h")
|
||||||
& Apt.buildDep ["git-annex"] `period` Daily
|
& Systemd.nspawned (GitAnnexBuilder.androidAutoBuilderContainer (Cron.Times "1 1 * * *") "3h")
|
||||||
|
|
||||||
-- This is not a complete description of kite, since it's a
|
-- This is not a complete description of kite, since it's a
|
||||||
-- multiuser system with eg, user passwords that are not deployed
|
-- multiuser system with eg, user passwords that are not deployed
|
||||||
|
@ -402,13 +401,6 @@ oldusenetShellBox = standardStableContainer "oldusenet-shellbox"
|
||||||
& Docker.publish "4200:4200"
|
& Docker.publish "4200:4200"
|
||||||
& JoeySites.oldUseNetShellBox
|
& JoeySites.oldUseNetShellBox
|
||||||
|
|
||||||
-- for development of git-annex for android, using my git-annex work tree
|
|
||||||
gitAnnexAndroidDev :: Docker.Container
|
|
||||||
gitAnnexAndroidDev = GitAnnexBuilder.androidContainer dockerImage "android-git-annex" doNothing gitannexdir
|
|
||||||
& Docker.volume ("/home/joey/src/git-annex:" ++ gitannexdir)
|
|
||||||
where
|
|
||||||
gitannexdir = GitAnnexBuilder.homedir </> "git-annex"
|
|
||||||
|
|
||||||
jerryPlay :: Docker.Container
|
jerryPlay :: Docker.Container
|
||||||
jerryPlay = standardContainer "jerryplay" Unstable "amd64"
|
jerryPlay = standardContainer "jerryplay" Unstable "amd64"
|
||||||
& alias "jerryplay.kitenet.net"
|
& alias "jerryplay.kitenet.net"
|
||||||
|
|
|
@ -94,22 +94,9 @@ cabalDeps = flagFile go cabalupdated
|
||||||
go = userScriptProperty (User builduser) ["cabal update && cabal install git-annex --only-dependencies || true"]
|
go = userScriptProperty (User builduser) ["cabal update && cabal install git-annex --only-dependencies || true"]
|
||||||
cabalupdated = homedir </> ".cabal" </> "packages" </> "hackage.haskell.org" </> "00-index.cache"
|
cabalupdated = homedir </> ".cabal" </> "packages" </> "hackage.haskell.org" </> "00-index.cache"
|
||||||
|
|
||||||
standardAutoBuilderContainer :: (System -> Docker.Image) -> Architecture -> Int -> TimeOut -> Docker.Container
|
standardAutoBuilderContainer :: Architecture -> Int -> TimeOut -> Systemd.Container
|
||||||
standardAutoBuilderContainer dockerImage arch buildminute timeout = Docker.container (arch ++ "-git-annex-builder")
|
standardAutoBuilderContainer arch buildminute timeout = Systemd.container name bootstrap
|
||||||
(dockerImage $ System (Debian Testing) arch)
|
& os osver
|
||||||
& os (System (Debian Testing) arch)
|
|
||||||
& Apt.stdSourcesList
|
|
||||||
& Apt.installed ["systemd"]
|
|
||||||
& Apt.unattendedUpgrades
|
|
||||||
& User.accountFor (User builduser)
|
|
||||||
& tree arch
|
|
||||||
& buildDepsApt
|
|
||||||
& autobuilder arch (Cron.Times $ show buildminute ++ " * * * *") timeout
|
|
||||||
& Docker.tweaked
|
|
||||||
|
|
||||||
standardAutoBuilderContainerNspawn :: Architecture -> Int -> TimeOut -> Systemd.Container
|
|
||||||
standardAutoBuilderContainerNspawn arch buildminute timeout = Systemd.container name bootstrap
|
|
||||||
& os myos
|
|
||||||
& Apt.stdSourcesList
|
& Apt.stdSourcesList
|
||||||
& Apt.unattendedUpgrades
|
& Apt.unattendedUpgrades
|
||||||
& User.accountFor (User builduser)
|
& User.accountFor (User builduser)
|
||||||
|
@ -118,29 +105,25 @@ standardAutoBuilderContainerNspawn arch buildminute timeout = Systemd.container
|
||||||
& autobuilder arch (Cron.Times $ show buildminute ++ " * * * *") timeout
|
& autobuilder arch (Cron.Times $ show buildminute ++ " * * * *") timeout
|
||||||
where
|
where
|
||||||
name = arch ++ "-git-annex-builder"
|
name = arch ++ "-git-annex-builder"
|
||||||
bootstrap = Chroot.debootstrapped myos mempty
|
bootstrap = Chroot.debootstrapped osver mempty
|
||||||
myos = System (Debian Testing) arch
|
osver = System (Debian Testing) arch
|
||||||
|
|
||||||
androidAutoBuilderContainer :: (System -> Docker.Image) -> Times -> TimeOut -> Docker.Container
|
androidAutoBuilderContainer :: Times -> TimeOut -> Systemd.Container
|
||||||
androidAutoBuilderContainer dockerImage crontimes timeout =
|
androidAutoBuilderContainer crontimes timeout =
|
||||||
androidContainer dockerImage "android-git-annex-builder" (tree "android") builddir
|
androidContainer "android-git-annex-builder" (tree "android") builddir
|
||||||
& Apt.unattendedUpgrades
|
& Apt.unattendedUpgrades
|
||||||
& autobuilder "android" crontimes timeout
|
& autobuilder "android" crontimes timeout
|
||||||
|
|
||||||
-- Android is cross-built in a Debian i386 container, using the Android NDK.
|
-- Android is cross-built in a Debian i386 container, using the Android NDK.
|
||||||
androidContainer
|
androidContainer
|
||||||
:: (IsProp (Property (CInfo NoInfo i)), (Combines (Property NoInfo) (Property i)))
|
:: (IsProp (Property (CInfo NoInfo i)), (Combines (Property NoInfo) (Property i)))
|
||||||
=> (System -> Docker.Image)
|
=> Systemd.MachineName
|
||||||
-> Docker.ContainerName
|
|
||||||
-> Property i
|
-> Property i
|
||||||
-> FilePath
|
-> FilePath
|
||||||
-> Docker.Container
|
-> Systemd.Container
|
||||||
androidContainer dockerImage name setupgitannexdir gitannexdir = Docker.container name
|
androidContainer name setupgitannexdir gitannexdir = Systemd.container name bootstrap
|
||||||
(dockerImage osver)
|
|
||||||
& os osver
|
& os osver
|
||||||
& Apt.stdSourcesList
|
& Apt.stdSourcesList
|
||||||
& Apt.installed ["systemd"]
|
|
||||||
& Docker.tweaked
|
|
||||||
& User.accountFor (User builduser)
|
& User.accountFor (User builduser)
|
||||||
& File.dirExists gitbuilderdir
|
& File.dirExists gitbuilderdir
|
||||||
& File.ownerGroup homedir (User builduser) (Group builduser)
|
& File.ownerGroup homedir (User builduser) (Group builduser)
|
||||||
|
@ -159,6 +142,7 @@ androidContainer dockerImage name setupgitannexdir gitannexdir = Docker.containe
|
||||||
[ "cd " ++ gitannexdir ++ " && ./standalone/android/install-haskell-packages"
|
[ "cd " ++ gitannexdir ++ " && ./standalone/android/install-haskell-packages"
|
||||||
]
|
]
|
||||||
osver = System (Debian Testing) "i386"
|
osver = System (Debian Testing) "i386"
|
||||||
|
bootstrap = Chroot.debootstrapped osver mempty
|
||||||
|
|
||||||
-- armel builder has a companion container using amd64 that
|
-- armel builder has a companion container using amd64 that
|
||||||
-- runs the build first to get TH splices. They need
|
-- runs the build first to get TH splices. They need
|
||||||
|
|
Loading…
Reference in New Issue