Skip to content

Commit

Permalink
makefile examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Sep 19, 2024
1 parent 65c8cb8 commit 93f5b57
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ VERSION := $(shell ./version.sh)
COMMIT := $(shell [ -z "${COMMIT_ID}" ] && git log -1 --format='%H' || echo ${COMMIT_ID} )
BUILDTIME := $(shell date -u +"%Y%m%d.%H%M%S" )
DOCKER ?= docker
# allow setting of DOCKER_COMPOSE_ARGS to pass additional args to docker compose
# useful for setting profiles
DOCKER_COMPOSE ?= $(DOCKER) compose $(COMPOSE_ARGS)
# allow setting of NODE_COMPOSE_ARGS to pass additional args to docker compose
# useful for setting profiles and/ort optional overlays
# example: NODE_COMPOSE_ARGS="--profile monitoring -f docker-compose-persistent.yml"
DOCKER_COMPOSE ?= $(DOCKER) compose $(NODE_COMPOSE_ARGS)
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf
GOFLAGS := ""
GOLANG_CROSS_VERSION ?= v1.22.4
Expand Down Expand Up @@ -224,7 +225,7 @@ start-localnet-skip-build:

# stop-localnet should include all profiles so other containers are also removed
stop-localnet:
cd contrib/localnet/ && $(DOCKER_COMPOSE) --profile all down --remove-orphans
cd contrib/localnet/ && $(DOCKER_COMPOSE) --profile all -f docker-compose.yml down --remove-orphans

###############################################################################
### E2E tests ###
Expand Down
3 changes: 2 additions & 1 deletion contrib/localnet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ services:
- ssh:/root/.ssh

grafana:
image: grafana/grafana:9.1.7
image: grafana/grafana:10.4.8
container_name: grafana
hostname: grafana
profiles:
Expand All @@ -322,6 +322,7 @@ services:
volumes:
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./grafana/dashboards/:/etc/grafana/provisioning/dashboards
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- grafana_storage:/var/lib/grafana
ports:
- "3000:3000"
Expand Down
5 changes: 5 additions & 0 deletions contrib/localnet/grafana/grafana.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[auth.anonymous]
enabled = true

org_id = 1
org_role = Editor

0 comments on commit 93f5b57

Please sign in to comment.