Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (43 sloc) 1.52 KB

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>