Last active
September 27, 2016 15:34
-
-
Save rtgnx/b8df8922b2d81b954d307d9330557300 to your computer and use it in GitHub Desktop.
[JSON] systemd container description file
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
{ | |
"name": "test", | |
"_comment": "type is either arch or image", | |
"type": "arch|image", | |
"_comment": "if arch then specifiy packages beside base ", | |
"packages": [ | |
"vim", | |
"git" | |
], | |
"_comment": "if image then specifiy either url or path to img", | |
"image": { | |
"url": "http://server.xyz/raw/centos.arch.raw.xz", | |
"file": "/images/centos.arch.raw.xz" | |
}, | |
"mount": [ | |
{ | |
"src": "src", | |
"dst": "dst", | |
"mode": "ro|rw", | |
"fs": "tmpfs|local" | |
} | |
], | |
"env": { | |
"key": "value" | |
}, | |
"_comment": "add multiple network interfaces", | |
"network": [ | |
{"type": "bride", "iface": "eth0"} | |
], | |
"_comment": "run host clone in ephemeral snapshot", | |
"host-clone": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment