Add readonlyRootfs flag to apps table

When turned off, it will put the app in a writable rootfs. This
allows us to debug live/production apps (like change start.sh) and
just get them up and running. Once turned off, this app cannot be
updated anymore (unless the force flag is set). This way we can
then update it using the CLI if we are convinced that the upcoming
update fixes the problem.

Part of #171
This commit is contained in:
Girish Ramakrishnan
2017-01-19 11:20:24 -08:00
parent 02f0bb3ea5
commit 7ef6bd0d3f
7 changed files with 29 additions and 8 deletions

View File

@@ -197,7 +197,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
MemorySwap: memoryLimit, // Memory + Swap
PortBindings: isAppContainer ? dockerPortBindings : { },
PublishAllPorts: false,
ReadonlyRootfs: !developmentMode, // see also Volumes in startContainer
ReadonlyRootfs: app.readonlyRootfs,
RestartPolicy: {
"Name": isAppContainer ? "always" : "no",
"MaximumRetryCount": 0