minions

command module
v0.0.0-...-319b497 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 15 Imported by: 0

README

Minions

golangci-lint Codacy Badge

Since calico-libnetwork-plugin not support docker anymore. I built this for eru project to use calico network with latest version.

Build
build binary

make build

build rpm

./make-rpm

build image

docker build -t minions .

Develop
go get github.com/projecteru2/minions
cd $GOPATH/src/get github.com/projecteru2/minions
make deps
Dockerized Minions manually
docker run -d \
  --name eru_minions_$HOSTNAME \
  --net host \
  --restart always \
  -v /var/run/docker/plugins/:/var/run/docker/plugins \
  projecteru2/minions \
  /usr/bin/eru-minions
Build and Deploy by Eru itself

After we implemented bootstrap in eru2, now you can build and deploy minions with cli tool.

  1. Test source code and build image
<cli_execute_path> --name <image_name> https://bit.ly/EruMinions

Make sure you can clone code by ssh protocol because libgit2 ask for it. So you need configure core with github certs. After the fresh image was named and tagged, it will be auto pushed to the remote registry which was defined in core.

  1. Deploy minions by eru with specific resource.
<cli_execute_path> container deploy --pod <pod_name> --entry minions --network <network_name> --deploy-method fill --image <projecteru2/minions>|<your_own_image> --count 1 --env ETCD_ENDPOINTS=${ETCD_ENDPOINTS} [--cpu 0.3 | --mem 1024000000] https://bit.ly/EruMinions

Now you will find minions was started in each node.

Install with github releases

Unarchive and run command with sudo

sudo ./install.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL