@@ -9,13 +9,24 @@ REPO_BASE_DIR := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))../..)
9
9
# TARGETS --------------------------------------------------
10
10
include ${REPO_BASE_DIR}/scripts/common.Makefile
11
11
12
+ define create-s3-bucket
13
+ # ensure bucket is available in S3...
14
+ @set -o allexport; \
15
+ source .env; \
16
+ echo Creating bucket "$${TEMPO_S3_BUCKET}";\
17
+ ${REPO_BASE_DIR}/scripts/create-s3-bucket.bash "$${TEMPO_S3_BUCKET}" && \
18
+ set +o allexport; \
19
+ # bucket is available in S3
20
+ endef
21
+
12
22
.PHONY : up
13
23
up : .init .env config.prometheus ${TEMP_COMPOSE} # # Deploys or updates current stack "$(STACK_NAME)". If MONITORED_NETWORK is not specified, it will create an attachable network
14
24
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE} $(STACK_NAME )
15
25
$(MAKE ) grafana-import
16
26
17
27
.PHONY : up-local
18
28
up-local : .init .env config.prometheus.simcore ${TEMP_COMPOSE}-local # # Deploys or updates current stack "$(STACK_NAME)". If MONITORED_NETWORK is not specified, it will create an attachable network
29
+ @$(create-s3-bucket )
19
30
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE} -local $(STACK_NAME )
20
31
$(MAKE ) grafana-import
21
32
@@ -49,28 +60,28 @@ up-master: .init .env config.monitoring config.prometheus.ceph.simcore ${TEMP_C
49
60
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE} -master ${STACK_NAME}
50
61
$(MAKE ) grafana-import
51
62
52
- ${TEMP_COMPOSE} : docker-compose.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
63
+ ${TEMP_COMPOSE} : docker-compose.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
53
64
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< > $@
54
65
55
- ${TEMP_COMPOSE}-letsencrypt-http : docker-compose.yml docker-compose.letsencrypt.http.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
66
+ ${TEMP_COMPOSE}-letsencrypt-http : docker-compose.yml docker-compose.letsencrypt.http.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
56
67
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< docker-compose.letsencrypt.http.yml > $@
57
68
58
- ${TEMP_COMPOSE}-letsencrypt-dns : docker-compose.yml docker-compose.letsencrypt.dns.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
69
+ ${TEMP_COMPOSE}-letsencrypt-dns : docker-compose.yml docker-compose.letsencrypt.dns.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
59
70
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< docker-compose.letsencrypt.dns.yml > $@
60
71
61
- ${TEMP_COMPOSE}-dalco : docker-compose.yml docker-compose.dalco.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
72
+ ${TEMP_COMPOSE}-dalco : docker-compose.yml docker-compose.dalco.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
62
73
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< docker-compose.dalco.yml > $@
63
74
64
- ${TEMP_COMPOSE}-public : docker-compose.yml docker-compose.public.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
75
+ ${TEMP_COMPOSE}-public : docker-compose.yml docker-compose.public.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
65
76
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< docker-compose.public.yml > $@
66
77
67
- ${TEMP_COMPOSE}-aws : docker-compose.yml docker-compose.aws.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
78
+ ${TEMP_COMPOSE}-aws : docker-compose.yml docker-compose.aws.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
68
79
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< docker-compose.aws.yml > $@
69
80
70
- ${TEMP_COMPOSE}-master : docker-compose.yml docker-compose.master.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
81
+ ${TEMP_COMPOSE}-master : docker-compose.yml docker-compose.master.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
71
82
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< docker-compose.master.yml > $@
72
83
73
- ${TEMP_COMPOSE}-local : docker-compose.yml docker-compose.letsencrypt.dns.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml
84
+ ${TEMP_COMPOSE}-local : docker-compose.yml docker-compose.letsencrypt.dns.yml config.monitoring .env pgsql_query_exporter_config.yaml smokeping_prober_config.yaml tempo_config.yaml
74
85
@${REPO_BASE_DIR} /scripts/docker-stack-config.bash -e .env $< docker-compose.letsencrypt.dns.yml > $@
75
86
76
87
docker-compose.yml : docker-compose.yml.j2 .env .venv pgsql_query_exporter_config.yaml
@@ -137,6 +148,9 @@ pgsql_query_exporter_config.yaml: pgsql_query_exporter_config.yaml.j2 ${REPO_CON
137
148
smokeping_prober_config.yaml : smokeping_prober_config.yaml.j2 ${REPO_CONFIG_LOCATION} .env .venv
138
149
$(call jinja, $< , .env, $@ ) ;
139
150
151
+ tempo_config.yaml : tempo_config.yaml.j2 ${REPO_CONFIG_LOCATION} .env .venv
152
+ $(call jinja, $< , .env, $@ ) ;
153
+
140
154
.PHONY : grafana/assets
141
155
grafana/assets : ${REPO_CONFIG_LOCATION}
142
156
@$(MAKE_C ) grafana assets
0 commit comments