Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker compose]: (WIP)Add compose publish (alpha) command #91

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

include .bingo/Variables.mk

# e.g. qclaogui/lgtmp:<version>-logs
COMPOSE_REGISTRY ?= qclaogui/lgtmp


##@ Dependencies

.PHONY: install-build-deps
Expand Down Expand Up @@ -30,6 +34,9 @@ fmt: ## Uses Grafana Agent to fmt the river config

##@ Docker compose

.PHONY: publish
publish: ## Publish compose files
publish: publish-monolithic-mode-logs

.PHONY: up-monolithic-mode-metrics
up-monolithic-mode-metrics: ## Run monolithic-mode Mimir for metrics
Expand All @@ -56,6 +63,15 @@ up-monolithic-mode-logs: ## Run monolithic-mode Loki for logs
@$(call echo_info, "Go to http://localhost:3000/explore for the logs.")
down-monolithic-mode-logs:
docker compose --project-name monolithic-logs down
publish-monolithic-mode-logs:
$(info ******************** compose publish monolithic-mode logs ********************)
docker compose \
--project-name monolithic-logs \
--project-directory docker-compose/monolithic-mode/logs \
--file docker-compose/monolithic-mode/logs/compose.yaml \
--env-file docker-compose/common/config/.env \
alpha publish $(COMPOSE_REGISTRY):logs
@$(call echo_info, "Publish success.")

.PHONY: up-monolithic-mode-traces
up-monolithic-mode-traces: ## Run monolithic-mode Tempo for traces
Expand Down