Eru cli
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci
commands
types
utils
versioninfo
.gitignore
Dockerfile
LICENSE
Makefile
README.md
VERSION
build.yaml.example
cli.go
glide.lock
glide.yaml
make-release
specs.yaml.example

README.md

Cli

CircleCI Codacy Badge

cli for Eru.

Modify resources for eru pods / nodes, manipulate containers and images.

Usage

  • Use cli -h to show commands and subcommands.
  • Currently supported commands are:
    • container subcommands:
      • container get {id} ...
      • container remove {id} ...
      • container realloc --cpu {cpu} --mem {mem}
      • container deploy
    • pod subcommands:
      • pod list
      • pod add
      • pod nodes {podname}
      • pod networks {podname}
    • node subcommands:
      • node get {nodename}
      • node remove {nodename}
      • node available {nodename} --available
    • image subcommands:
      • image build
    • lambda

Develop

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.

Dockerized cli

Image: projecteru2/cli

docker run -it --rm \
  --net host \
  --name eru-cli \
  projecteru2/cli \
  /usr/bin/eru-cli <PARAMS>