- Just to build
go1.11+ (to support gomodule)git(to clone this project)make(to ease you life witharanyadevelopment)
- Need to release
upx(hero to shrink size of golang binary output)
- Need to update CRDs
- +
GOPATHconfigured- install code generators with
make install-codegen-tools
- install code generators with
- +
- Need to update connectivity api
- +
protoc3.5+ (protobuf compiler)
- +
- This porject's gomodule name is
arhat.dev/aranya - Clone this project from github
git clone https://github.com/arhat-dev/aranya
# or if you have to, use go get (discouraged)
# $ go get -u arhat.dev/aranya# build the binary directly
make aranya
# build in docker image (no binary output required)
make build-image-aranyaarhat tagets are named in format of arhat-{runtime-name}-{connectivity-method}
Avaliable arhat targets:
arhat-docker-grpcarhat-docker-mqttarhat-containerd-grpcarhat-containerd-mqttarhat-podman-grpcarhat-podman-mqttarhat-cri-grpcarhat-cri-mqtt
Example:
# build the binary directly
make arhat-docker-grpc
# build in docker image (no binary output required)
make build-image-arhat-docker-grpc
# to run arhat in container
# $ docker run -d \
# -v /var/run/docker.sock:/var/run/docker.sock:ro \
# -v /etc/arhat/config.yaml:$(pwd)/config/arhat/sample-docker.yaml:ro \
# arhatdev/arhat-docker-grpc:latest /app -c /etc/arhat/config.yamlmake gen-protomake gen-codeKnown Issue: currently openapi specification will not be updated.