tonicmuroq / cli

Eru cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

Eru cli

License:MIT License


Languages

Language:Go 96.7%Language:Shell 1.4%Language:Makefile 1.2%Language:Dockerfile 0.8%