Stout is external isolation plugin for Cocaine Cloud.
See configuration example:
{
"version": 2,
"metrics": {
"type": "graphite",
"period": "10s",
"args": {
"prefix": "cloud.env.{{hostname}}.cocaine_isolate_daemon",
"addr": ":12345"
}
},
"logger": {
"level": "debug",
"output": "/dev/stdout"
},
"endpoints": ["0.0.0.0:29042"],
"debugserver": "127.0.0.1:9000",
"mtn": {
"enable": false,
"allocbuffer": 4,
"label": "somelabelforallocation",
"ident": "someidentforallocation",
"url": "http://net.allocator.service.local/api",
"headers": {
"Authorization": "OAuth youroauthkeyfornetallocator"
},
"dbpath": "/path/to/state/db",
"allowlocalstate": false
},
"isolate": {
"porto": {
"type": "porto",
"args": {
"layers": "/tmp",
"cleanupenabled": true,
"setimgurl": false,
"weakenabled": false,
"gc": true,
"waitloopstepsec": 5,
"journal": "/tmp/portojournal.jrnl",
"containers": "/tmp",
"registryauth": {
"registry.your.domain": "OAuth youroauthkeyforregistry"
}
}
},
"docker": {
"type": "docker",
"args": {
"registryauth": {
"registry.your.domain": "authdatafordockerdaemon"
}
}
},
"process": {
"type": "process"
}
}
}
go get -u github.com/interiorem/stout/cmd/stout
cd $GOPATH/src/github.com/noxiouz/stout
go build -o cocaine-isolate-daemon cmd/stout/main.go
if $GOPATH/bin
is added to $PATH
, you can use:
go install github.com/interiorem/stout/cmd/stout
cocaine-isolate-daemon -config=path/to/config.conf