-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use YAML configuration for Kafka connections, improve local runtime s…
…upport (#749) * Load cluster configuration from YAML * Add local build and compose scripts/configurations * Documentation updates * Cleanup config model, test updates, add instructions for running locally * Optionally deploy Prometheus ingress, set Prometheus URL in compose * Use host network for compose, document service account setup * Update root README instructions for running locally --------- Signed-off-by: Michael Edgar <[email protected]>
- Loading branch information
Showing
25 changed files
with
516 additions
and
163 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
.PHONY: container-image-api container-image-ui container-images | ||
|
||
include *compose.env | ||
|
||
CONSOLE_API_IMAGE ?= quay.io/eyefloaters/console-api:latest | ||
CONSOLE_UI_IMAGE ?= quay.io/eyefloaters/console-api:latest | ||
CONSOLE_UI_NEXTAUTH_SECRET ?= $(shell openssl rand -base64 32) | ||
CONSOLE_METRICS_PROMETHEUS_URL ?= | ||
CONTAINER_RUNTIME ?= $(shell which podman || which docker) | ||
|
||
container-image-api: | ||
mvn package -f api/pom.xml -Pdocker -DskipTests -Dquarkus.container-image.image=$(CONSOLE_API_IMAGE) | ||
|
||
container-image-api-push: container-image-api | ||
$(CONTAINER_RUNTIME) push $(CONSOLE_API_IMAGE) | ||
|
||
container-image-ui: | ||
$(CONTAINER_RUNTIME) build -t $(CONSOLE_UI_IMAGE) ./ui -f ./ui/Dockerfile | ||
|
||
container-image-ui-push: container-image-ui | ||
$(CONTAINER_RUNTIME) push $(CONSOLE_UI_IMAGE) | ||
|
||
container-images: container-image-api container-image-ui | ||
|
||
container-images-push: container-image-api-push container-image-ui-push | ||
|
||
compose-up: | ||
> compose-runtime.env | ||
echo "CONSOLE_API_IMAGE=$(CONSOLE_API_IMAGE)" >> compose-runtime.env | ||
echo "CONSOLE_API_SERVICE_ACCOUNT_TOKEN=$(CONSOLE_API_SERVICE_ACCOUNT_TOKEN)" >> compose-runtime.env | ||
echo "CONSOLE_API_KUBERNETES_API_SERVER_URL=$(CONSOLE_API_KUBERNETES_API_SERVER_URL)" >> compose-runtime.env | ||
echo "CONSOLE_UI_IMAGE=$(CONSOLE_UI_IMAGE)" >> compose-runtime.env | ||
echo "CONSOLE_UI_NEXTAUTH_SECRET=$(CONSOLE_UI_NEXTAUTH_SECRET)" >> compose-runtime.env | ||
echo "CONSOLE_METRICS_PROMETHEUS_URL=$(CONSOLE_METRICS_PROMETHEUS_URL)" >> compose-runtime.env | ||
$(CONTAINER_RUNTIME) compose --env-file compose-runtime.env up -d | ||
|
||
compose-down: | ||
$(CONTAINER_RUNTIME) compose --env-file compose-runtime.env down |
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
Oops, something went wrong.