cli for Eru.
Modify resources for eru pods / nodes, manipulate containers and images.
- Use
cli -h
to show commands and subcommands. - Currently supported commands are:
container
subcommands:container get {id} ...
container remove {id} ...
container realloc --cpu {cpu} --memory {memory}
container deploy
pod
subcommands:pod list
pod add
pod nodes {podname}
pod networks {podname}
node
subcommands:node get {nodename}
node remove {nodename}
node set-status [--available] {nodename}
image
subcommands:image build
lambda
Start developing:
go get github.com/projecteru2/cli
cd $GOPATH/src/github.com/projecteru2/cli
make deps
Commands' source code in commands
dir, you can define your own commands inside. Use make test
to test and make build
to build. If you want to modify and build in local, you can use make deps
to generate vendor dirs.
Image: projecteru2/cli
docker run -it --rm \
--net host \
--name eru-cli \
projecteru2/cli \
/usr/bin/eru-cli <PARAMS>