Stout is external isolation plugin for Cocaine Cloud.
See configuration example:
{
"logger": {
"level": "debug",
"output": "/dev/stderr"
},
"endpoints": ["0.0.0.0:29042"],
"debugserver": "127.0.0.1:9000",
"isolate": {
"docker": {
"endpoint": "unix:///var/run/docker.sock",
"version": "v1.19",
"concurrency": 10
},
"process": {
"spool": "/var/spool/cocaine",
"locator": "localhost:10053"
}
}
}
go get -u github.com/noxiouz/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/noxiouz/stout/cmd/stout
cocaine-isolate-daemon -config=path/to/config.conf