forked from 4paradigm/OpenMLDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
15 lines (13 loc) · 823 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.PHONY: all
docker_tag := $(shell export LC_CTYPE=C && LANG=C cat /dev/urandom | tr -cd 'a-f0-9' | head -c 32)
module = rtidb
tablet:
rm -rfv release/tablet.meta.tar.gz
rm -rfv release/tablet.tar
cd docker && tar -zcvf ../release/tablet.meta.tar.gz META-INFO/meta META-INFO/k8s/tablet.yaml
cd docker/tablet && docker build -t tablet:${docker_tag} . && docker save tablet:${docker_tag} > ../../release/tablet.tar && docker rmi tablet:${docker_tag}
nameserver:
rm -rfv release/nameserver.meta.tar.gz
rm -rfv release/nameserver.tar
cd docker && tar -zcvf ../release/nameserver.meta.tar.gz META-INFO/meta META-INFO/k8s/nameserver.yaml
cd docker/nameserver && docker build -t nameserver:${docker_tag} . && docker save nameserver:${docker_tag} > ../../release/nameserver.tar && docker rmi nameserver:${docker_tag}