forked from Lewuathe/docker-trino-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 1.35 KB
/
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
PRESTO_VERSION := 318
PRESTO_SNAPSHOT_VERSION := 319-SNAPSHOT
.PHONY: build local push run down release
build:
docker build --build-arg VERSION=${PRESTO_VERSION} -t lewuathe/presto-base:${PRESTO_VERSION} presto-base
docker build --build-arg VERSION=${PRESTO_VERSION} -t lewuathe/presto-coordinator:${PRESTO_VERSION} presto-coordinator
docker build --build-arg VERSION=${PRESTO_VERSION} -t lewuathe/presto-worker:${PRESTO_VERSION} presto-worker
PRESTO_VERSION=$(PRESTO_VERSION) docker-compose build
local:
docker build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION} -f presto-base/Dockerfile-dev -t lewuathe/presto-base:${PRESTO_SNAPSHOT_VERSION} presto-base
docker build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION} -t lewuathe/presto-coordinator:${PRESTO_SNAPSHOT_VERSION} presto-coordinator
docker build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION} -t lewuathe/presto-worker:${PRESTO_SNAPSHOT_VERSION} presto-worker
push:
docker push lewuathe/presto-base:$(PRESTO_VERSION)
docker push lewuathe/presto-coordinator:$(PRESTO_VERSION)
docker push lewuathe/presto-worker:$(PRESTO_VERSION)
sh ./update-readme.sh
run:
PRESTO_VERSION=$(PRESTO_VERSION) docker-compose up -d
echo "Please check http://localhost:8080"
down:
PRESTO_VERSION=$(PRESTO_VERSION) docker-compose down
release:
git tag -a ${PRESTO_VERSION} -m "Release ${PRESTO_VERSION}"
git push --tags