stage1: add WorkingDirectory support

This commit is contained in:
Brandon Philips
2015-01-02 01:29:05 +00:00
parent 0d68cd4b8b
commit dbcdb4a8f7
+4
View File
@@ -118,6 +118,10 @@ func (c *Container) appToSystemd(am *schema.ImageManifest, id types.Hash) error
opts = append(opts, &unit.UnitOption{"Service", "Environment", ee})
}
if app.WorkingDirectory != "" {
opts = append(opts, &unit.UnitOption{"Service", "WorkingDirectory", app.WorkingDirectory})
}
saPorts := []types.Port{}
for _, p := range app.Ports {
if p.SocketActivated {