forked from DmitryBe/spark-clickhouse
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
42 lines (31 loc) · 929 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
35
36
37
38
39
40
41
42
# docker images params
REPO=dmitryb/clickhouse-spark-connector
TAG=0.0.1
build:
sbt compile
sbt pack
pack:
sbt pack-archive
run:
env JAVA_OPTS="-Xmx4g -Xms4g -server -XX:+UseParallelGC -XX:NewRatio=1" \
./target/pack/bin/main --conf
start-activator:
./bin/activator ui -Dhttp.address=0.0.0.0 -Dhttp.port=8088
docker-build:
docker build -t $(REPO):$(TAG) .
docker-push:
docker push $(REPO):$(TAG)
docker-clean:
docker rm $(docker ps -a -q)
docker rmi $(docker images | grep "dmitryb/clickhouse-spark-connector" | awk "{print $3}")
# to create fat jar (not used)
assembly:
sbt assembly
dev-local:
#sbt clean compile
#sbt pack
mkdir -p target/l
cp -f target/pack/lib/clickhouse* target/l/
cp -f target/pack/lib/guava* target/l/
clickhouse-server-start:
docker run -it -d --name clickhouse-server -p 8123:8123 -v `pwd`/clickhouse_files/config.xml:/etc/clickhouse-server/config.xml yandex/clickhouse-server