zzucjl / cli

Eru cli

Home Page:https://eru.sh

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} --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

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

https://eru.sh

License:MIT License


Languages

Language:Go 97.5%Language:Shell 1.0%Language:Makefile 0.9%Language:Dockerfile 0.5%