-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (25 loc) · 822 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ifneq (,$(wildcard ./.env))
include .env
export
endif
build:
sbt clean assembly
dev-deploy: build
dbx deploy --files-only --no-package --no-rebuild --deployment-file=conf/deployment.yaml
create-scope:
databricks --profile=$(DATABRICKS_CONFIG_PROFILE) secrets create-scope --scope=dbx
add-secrets:
databricks --profile=$(DATABRICKS_CONFIG_PROFILE) \
secrets write \
--scope=dbx --key=kafkaBootstrapServers \
--string-value=$(KAFKA_BOOTSTRAP_SERVERS_TO_SECRETS)
dev-launch-generator: dev-deploy
dbx launch \
--job=dbx-kafka-protobuf-example-generator \
--as-run-submit --trace
dev-launch-processor: dev-deploy
dbx launch \
--job=dbx-kafka-protobuf-example-processor \
--as-run-submit --trace
jobs-deploy: build
dbx deploy --no-package --no-rebuild --deployment-file=conf/deployment.yaml