Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
bootstrap: Ensure controller / gitreceive have tmp volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Marshall <lewis@lmars.net>
  • Loading branch information
lmars committed Nov 9, 2016
1 parent 89cd67d commit b1efbcf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions host/cli/bootstrap.go
Expand Up @@ -323,6 +323,14 @@ WHERE release_id = (SELECT release_id FROM apps WHERE name = 'flannel');
`, network))
}

// ensure controller / gitreceive have tmp volumes
sqlBuf.WriteString(`
UPDATE releases SET processes = jsonb_set(processes, '{web,volumes}', '[{"path": "/tmp", "delete_on_stop": true}]')
WHERE release_id IN (SELECT release_id FROM apps WHERE name = 'controller');
UPDATE releases SET processes = jsonb_set(processes, '{app,volumes}', '[{"path": "/tmp", "delete_on_stop": true}]')
WHERE release_id IN (SELECT release_id FROM apps WHERE name = 'gitreceive');
`)

// start discoverd/flannel/postgres
cfg.Singleton = data.Postgres.Release.Env["SINGLETON"] == "true"
systemSteps := bootstrap.Manifest{
Expand Down

0 comments on commit b1efbcf

Please sign in to comment.