Eru system core, stateless, resource allocation efficiently.
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:
# libgit2 锁定在 0.25.1
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
gco 9c527911c8c630355d92df001575cacbb4a8b8b4 libgit2.rb
HOMEBREW_NO_AUTO_UPDATE=1 brew install libgit2
make depsIn linux you can reference our image's Dockerfile. Our server were running under CentOS 7, so if your server is different, something will not same.
On other hand, you can use our footstone image for testing and compiling.
Generate golang & python code
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
make grpcCurrent version of dependencies are:
- google.golang.org/grpc: v1.0.1-GA
- github.com/golang/protobuf: f592bd283e
do not forget first command...
$ eru-core --config /etc/eru/core.yaml.sampleor
$ export ERU_CONFIG_PATH=/path/to/core.yaml
$ eru-core$ devtools/client.py --grpc-host core-grpc.intra.ricebook.net node:get intra c2-docker-7
Image: projecteru2/core
docker run -d \
--name eru_core_$HOSTNAME \
--net host \
--restart always \
-v <HOST_CONFIG_DIR_PATH>:/etc/eru \
-v <HOST_BACKUP_DIR_PATH>:/data/backup \
projecteru2/core \
/usr/bin/eru-core