HydraBooks is the central book registry for the Hydra ecosystem. It receives runbooks and testbooks from all Hydra repos on release and serves them via web UI and REST API.
/root/hydrabooks/root/.hydrabooks/config.yaml/root/.hydrabooks/books/ssh root@78.47.174.83
systemctl start hydrabooks
systemctl stop hydrabooks
systemctl restart hydrabooks
systemctl status hydrabooks
journalctl -u hydrabooks -f
# Build locally
GOOS=linux GOARCH=amd64 go build -ldflags "-X github.com/cederikdotcom/hydrabooks/internal/cli.Version=vX.Y.Z" -o hydrabooks-linux-amd64 ./cmd/hydrabooks
# Deploy
ssh root@78.47.174.83 "systemctl stop hydrabooks"
scp hydrabooks-linux-amd64 root@78.47.174.83:/root/hydrabooks
ssh root@78.47.174.83 "chmod +x /root/hydrabooks && systemctl start hydrabooks"
curl https://books.experiencenet.com/api/v1/health
# Expected: {"status":"ok"}