Eru is a stateless, flexible, production-ready cluster scheduler designed to easily integrate into existing workflows. Eru can run any containerized things in long or short time. This project is Eru Core. The Core use for resource allocation and manage containers lifetime.
Run make test
- Run
make buildif you want binary. - Run
./make-rpmif you want RPM for el7. However we use FPM for packing, so you have to prepare it first.
Run make deps for generating vendor dir.
Under macOS we have to install libgit2 manually, if you using Homebrew please install like this:
brew install libgit2
make depsIn linux you can reference our image's Dockerfile. Our server were running under CentOS 7, so if your server was different, something will not same.
On other hand, you can use our footstone image for testing and compiling.
Generate golang & python 3 code
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
pip install -U grpcio-tools
make grpc$ eru-core --config /etc/eru/core.yaml.sampleor
$ export ERU_CONFIG_PATH=/path/to/core.yaml
$ eru-coreImage: projecteru2/core
docker run -d \
--name eru_core_$HOSTNAME \
--net host \
--restart always \
-v <HOST_CONFIG_DIR_PATH>:/etc/eru \
projecteru2/core \
/usr/bin/eru-coreAfter we implemented bootstrap in eru2, now you can build and deploy eru with cli tool.
- Test source code and build image
<cli_execute_path> --name <image_name> http://bit.ly/EruCoreMake sure you can clone code. After the fresh image was named and tagged, it will be auto pushed to the remote registry which was defined in config file.
- Deploy core itself
<cli_execute_path> container deploy --pod <pod_name> [--node <node_name>] --entry core --network <network_name> --image <projecteru2/core>|<your_own_image> --file <core_config_yaml>:/core.yaml [--count <count_num>] [--cpu 0.3 | --mem 1024000000] http://bit.ly/EruCoreNow you will find core was started in nodes.