Implement read-only root file system for store

Add `ReadOnlyRootFilesystem` to `StoreItem` schema and implement the
field within `commands/store_deploy.go`. This change will allow store
functions that are read-only to take affect.

Fixes: #490

Signed-off-by: James Smith <jamessmithsmusic@gmail.com>
This commit is contained in:
James Smith
2018-08-03 11:58:32 -05:00
committed by Alex Ellis
parent 3b5e7b7b80
commit d8ff52e8bb
3 changed files with 19 additions and 16 deletions

View File

@@ -2,14 +2,15 @@ package schema
// StoreItem represents an item of store
type StoreItem struct {
Icon string `json:"icon"`
Title string `json:"title"`
Description string `json:"description"`
Image string `json:"image"`
Name string `json:"name"`
Fprocess string `json:"fprocess"`
Network string `json:"network"`
RepoURL string `json:"repo_url"`
Environment map[string]string `json:"environment"`
Labels map[string]string `json:"labels"`
Icon string `json:"icon"`
Title string `json:"title"`
Description string `json:"description"`
Image string `json:"image"`
Name string `json:"name"`
Fprocess string `json:"fprocess"`
Network string `json:"network"`
RepoURL string `json:"repo_url"`
Environment map[string]string `json:"environment"`
Labels map[string]string `json:"labels"`
ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem"`
}