- Just to build
go
1.11+ (to support gomodule)git
(to clone this project)make
(to ease you life witharanya
development)
- Need to release
upx
(hero to shrink size of golang binary output)
- Need to update CRDs
- +
GOPATH
configured- install code generators with
make install-codegen-tools
- install code generators with
- +
- Need to update connectivity api
- +
protoc
3.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-aranya
arhat
tagets are named in format of arhat-{runtime-name}-{connectivity-method}
Avaliable arhat
targets:
arhat-docker-grpc
arhat-docker-mqtt
arhat-containerd-grpc
arhat-containerd-mqtt
arhat-podman-grpc
arhat-podman-mqtt
arhat-cri-grpc
arhat-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.yaml
make gen-proto
make gen-code
Known Issue: currently openapi specification will not be updated.