Skip to content

interiorem/stout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Dmitriy Karpukhin
Oct 20, 2017
d1fc3e8 · Oct 20, 2017
Feb 13, 2017
Oct 13, 2016
Oct 19, 2017
Jan 18, 2017
Oct 19, 2017
Oct 20, 2017
Oct 19, 2017
Oct 19, 2017
Feb 13, 2017
May 19, 2016
Jul 23, 2016
Apr 12, 2016
Oct 13, 2016
Apr 21, 2016
Apr 21, 2016
May 19, 2016
Oct 19, 2017
Nov 16, 2016

Repository files navigation

Stout Build Status codecov.io

Stout is external isolation plugin for Cocaine Cloud.

Configuration file

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,
        "url": "http://net.allocator.service.local/api",
        "headers": {
          "Authorization": "OAuth youroauthkeyfornetallocator"
        }
    },
    "isolate": {
        "porto": {
            "type": "porto",
            "args": {
                "layers": "/tmp",
                "cleanupenabled": true,
                "setimgurl": false,
                "weakenabled": false,
                "journal": "/tmp/portojournal.jrnl",
                "containers": "/tmp",
                "registryauth": {
                    "registry.your.domain": "OAuth youroauthkeyforregistry"
                }
            }
        },
        "docker": {
            "type": "docker",
            "args": {
                "registryauth": {
                    "registry.your.domain": "authdatafordockerdaemon"
                }
            }
        },
        "process": {
            "type": "process"
        }
    }
}

Build

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

Run it

cocaine-isolate-daemon -config=path/to/config.conf