propellor spin

This commit is contained in:
Joey Hess 2014-06-01 13:40:06 -04:00
parent c224625734
commit 3df3fd1746
Failed to extract signature
2 changed files with 6 additions and 1 deletions

View File

@ -224,9 +224,11 @@ hosts = -- (o) `
in GitAnnexBuilder.androidContainer dockerImage "android-git-annex" doNothing gitannexdir
& Docker.volume ("/home/joey/src/git-annex:" ++ gitannexdir)
-- temp for an accuantance
-- temp for an acquantance
, standardContainer "voltagex" Stable "amd64"
& Docker.publish "22022:22"
& Docker.memory "500m"
& Docker.cpuShares 1
& Apt.serviceInstalledRunning "ssh"
& Ssh.permitRootLogin True
& Ssh.passwordAuthentication True

View File

@ -244,6 +244,9 @@ memory :: String -> Property
memory = runProp "memory"
-- | CPU shares (relative weight).
--
-- By default, all containers run at the same priority, but you can tell
-- the kernel to give more CPU time to a container using this property.
cpuShares :: Int -> Property
cpuShares = runProp "cpu-shares" . show