forked from Lewuathe/docker-trino-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (38 loc) · 2.72 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PRESTO_VERSION := 328
PRESTO_SNAPSHOT_VERSION := 329-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
snapshot:
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
docker push lewuathe/presto-base:$(PRESTO_SNAPSHOT_VERSION)
docker push lewuathe/presto-coordinator:$(PRESTO_SNAPSHOT_VERSION)
docker push lewuathe/presto-worker:$(PRESTO_SNAPSHOT_VERSION)
# Experimental
aarch64:
docker buildx build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION} --platform linux/arm64 -f presto-base/Dockerfile-aarch64 -t lewuathe/presto-base:${PRESTO_SNAPSHOT_VERSION}-aarch64 presto-base --push
docker buildx build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION}-aarch64 --platform linux/arm64 -t lewuathe/presto-coordinator:${PRESTO_SNAPSHOT_VERSION}-aarch64 presto-coordinator --push
docker buildx build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION}-aarch64 --platform linux/arm64 -t lewuathe/presto-worker:${PRESTO_SNAPSHOT_VERSION}-aarch64 presto-worker --push
# Experimental
corretto:
docker buildx build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION} --platform linux/arm64 -f presto-base/Dockerfile-corrett -t lewuathe/presto-base:${PRESTO_SNAPSHOT_VERSION}-corretto presto-base --push
docker buildx build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION}-corretto --platform linux/arm64 -t lewuathe/presto-coordinator:${PRESTO_SNAPSHOT_VERSION}-corretto presto-coordinator --push
docker buildx build --build-arg VERSION=${PRESTO_SNAPSHOT_VERSION}-corretto --platform linux/arm64 -t lewuathe/presto-worker:${PRESTO_SNAPSHOT_VERSION}-corretto presto-worker --push
push: build
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