-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(anna): Hot reloadable dynamic config.
- Loading branch information
1 parent
8a5817c
commit f373b77
Showing
15 changed files
with
372 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Makefile | ||
|
||
## Minikube Options. | ||
MINIKUBE_DISK_SIZE=100g | ||
MINIKUBE_CPUS=16 | ||
MINIKUBE_MEMORY=32768 | ||
|
||
# Docker Image Tags | ||
BASE_IMAGE_TAG=hydroflow/gossip-kv-server-base-image:latest | ||
SERVER_IMAGE_TAG=hydroflow/gossip-kv-server:latest | ||
CLI_IMAGE_TAG=hydroflow/gossip-kv-cli:latest | ||
|
||
# Default target when you run 'make' | ||
|
||
# Target to start Minikube with specific options | ||
start_minikube: | ||
minikube start --disk-size=$(MINIKUBE_DISK_SIZE) --cpus=$(MINIKUBE_CPUS) --memory=$(MINIKUBE_MEMORY) | ||
eval $$(minikube docker-env) | ||
|
||
# Target to build the Docker images | ||
build_docker_images: build_base_image build_server_image build_cli_image | ||
|
||
|
||
build_base_image: | ||
docker build -t "$(BASE_IMAGE_TAG)" -f ../../datastores/gossip_kv/server/baseimage.Dockerfile ../.. | ||
|
||
build_server_image: | ||
docker build -t "$(SERVER_IMAGE_TAG)" -f ../../datastores/gossip_kv/server/Dockerfile ../.. | ||
|
||
build_cli_image: | ||
docker build -t "$(CLI_IMAGE_TAG)" -f ../../datastores/gossip_kv/cli/Dockerfile ../.. | ||
|
||
# Target to clean up the Minikube cluster | ||
clean_local: | ||
minikube delete | ||
|
||
# Target to deploy the Gossip KV Server to the Minikube cluster | ||
deploy_local: | ||
kubectl apply -f ../../datastores/gossip_kv/server/local | ||
|
||
# Target to delete the Minikube cluster and build again | ||
rebuild_local: clean_local start_minikube build_docker_images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM "hydroflow/gossip-kv-server-base-image:latest" AS builder | ||
WORKDIR /usr/src/gossip-kv-server | ||
COPY . . | ||
RUN find . | ||
RUN cargo build --release --workspace -p gossip_kv | ||
|
||
FROM rustlang/rust:nightly-slim | ||
COPY --from=builder /usr/src/gossip-kv-server/target/release/gossip_cli /usr/local/bin/gossip_cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
seed_nodes = [] | ||
|
||
#[[seed_nodes]] | ||
#id = "gossip-kv-seed-nodes-0" | ||
#address = "gossip-kv-seed-nodes-0.gossip-kv-seed-nodes.default.svc.cluster.local:3001" |
File renamed without changes.
Oops, something went wrong.