cmd/app: additional bind types
Test / Create distribution (push) Successful in 52s
Test / Sandbox (push) Successful in 2m58s
Test / ShareFS (push) Successful in 3m54s
Test / Hakurei (push) Successful in 4m7s
Test / Sandbox (race detector) (push) Successful in 5m27s
Test / Hakurei (race detector) (push) Successful in 6m43s
Test / Flake checks (push) Successful in 1m25s
Test / Create distribution (push) Successful in 52s
Test / Sandbox (push) Successful in 2m58s
Test / ShareFS (push) Successful in 3m54s
Test / Hakurei (push) Successful in 4m7s
Test / Sandbox (race detector) (push) Successful in 5m27s
Test / Hakurei (race detector) (push) Successful in 6m43s
Test / Flake checks (push) Successful in 1m25s
This adds optional and device mount points. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -201,6 +201,20 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) {
|
|||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
case "ro+":
|
||||||
|
source, target, err := parsePair(value)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
c.Container.Filesystem = append(c.Container.Filesystem,
|
||||||
|
hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSBind{
|
||||||
|
Target: target,
|
||||||
|
Source: source,
|
||||||
|
Optional: true,
|
||||||
|
}},
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
|
||||||
case "rw":
|
case "rw":
|
||||||
source, target, err := parsePair(value)
|
source, target, err := parsePair(value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -215,6 +229,20 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) {
|
|||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
case "dev":
|
||||||
|
source, target, err := parsePair(value)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
c.Container.Filesystem = append(c.Container.Filesystem,
|
||||||
|
hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSBind{
|
||||||
|
Target: target,
|
||||||
|
Source: source,
|
||||||
|
Device: true,
|
||||||
|
}},
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
|
||||||
case "own":
|
case "own":
|
||||||
c.SessionBus.Own = append(c.SessionBus.Own, value)
|
c.SessionBus.Own = append(c.SessionBus.Own, value)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user