Last active
August 29, 2015 14:10
-
-
Save deepak1556/11061cc9731dc03b4268 to your computer and use it in GitHub Desktop.
Rocket Volume Spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App1.aci: | |
``` | |
{ | |
"mountPoints": [ | |
{ | |
"name": "A", | |
"path": "/app1/a" | |
}, | |
{ | |
"name": "B", | |
"path": "/app1/b" | |
} | |
] | |
} | |
``` | |
App2: | |
``` | |
{ | |
"mountPoints": [ | |
{ | |
"name": "A", | |
"path": "/app2/a" | |
} | |
] | |
} | |
``` | |
App3: | |
``` | |
{ | |
"mountPoints": [ | |
{ | |
"name": "B", | |
"path": "/app3/b" | |
} | |
] | |
} | |
``` | |
rkt run -volume A:/opt/lib/A -volume B:/opt/lib/B App1.aci App2.aci App3.aci | |
will this generate a container manifest like this one ?: | |
``` | |
{ | |
... app details goes here | |
"volumes": [ | |
{ | |
"kind": "host", | |
"source": "/opt/lib/A", | |
"fulfills": [ | |
"A" | |
] | |
}, | |
{ | |
"kind": "host", | |
"source": "/opt/lib/B", | |
"fulfills": [ | |
"B" | |
] | |
} | |
] | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment