forked from uucico/databricks-sql-driver
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (20 loc) · 677 Bytes
/
Makefile
File metadata and controls
24 lines (20 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
METABASE_VERSION=v0.50.13
build:
@echo "build"
docker build . -t build-driver
docker run -it \
--mount type=bind,source=$(ROOT_DIR),destination=/driver \
build-driver:latest bash ./bin/build.sh
cleanup:
@echo "cleanup"
rm ./plugins/*
cp ./target/databricks-sql.metabase-driver.jar ./plugins
@echo
run: cleanup
@echo "deploy metabase with databricks-sql driver"
chmod 777 ./plugins
docker run -it -p 3000:3000 \
--mount type=bind,source=$(ROOT_DIR)/plugins,destination=/plugins \
--mount source=metabase_data,destination=/metabase.db \
--name metabase metabase/metabase:$(METABASE_VERSION)