-
Notifications
You must be signed in to change notification settings - Fork 11
/
build-for-k8s.sh
executable file
·52 lines (40 loc) · 2.09 KB
/
build-for-k8s.sh
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
49
50
51
52
#!/bin/bash
export REGISTRY=registry.head-labs.com
export VERSION=v1
# Build base compile source
cd ton-compile-source || return
# mainnet
docker build -f Dockerfile -t ton-base-mainnet . --build-arg is_testnet=false --build-arg repo=ssh://git@git.head-labs.com:228/disintar/ton.git
docker tag ton-base-mainnet ${REGISTRY}/ton/ton-base:mainnet-${VERSION}
docker push ${REGISTRY}/ton/ton-base:mainnet-${VERSION}
#
## testnet
#docker build -f Dockerfile -t ton-base-testnet . --build-arg is_testnet=true --build-arg repo=ssh://git@git.head-labs.com:228/disintar/ton.git
#
#docker tag ton-base-testnet ${REGISTRY}/ton/ton-base:testnet-${VERSION}
#docker push ${REGISTRY}/ton/ton-base:testnet-${VERSION}
cd ../ton-full-node || return
# fullnode mainnet
docker build -f Dockerfile -t ton-node-mainnet . --build-arg base=${REGISTRY}/ton/ton-base:mainnet-${VERSION}
docker tag ton-node-mainnet ${REGISTRY}/ton/ton-node:mainnet-${VERSION}
docker push ${REGISTRY}/ton/ton-node:mainnet-${VERSION}
#
## fullnode testnet
#docker build -f Dockerfile -t ton-node-testnet . --build-arg base=${REGISTRY}/ton/ton-base:testnet-${VERSION}
#docker tag ton-node-testnet ${REGISTRY}/ton/ton-node:testnet-${VERSION}
#docker push ${REGISTRY}/ton/ton-node:testnet-${VERSION}
cd ../ton-http-config || return
# http-config mainnet
docker build -f Dockerfile -t ton-http-config . --build-arg base=${REGISTRY}/ton/ton-base:mainnet-${VERSION}
docker tag ton-http-config ${REGISTRY}/ton/ton-http-config:${VERSION}
docker push ${REGISTRY}/ton/ton-http-config:${VERSION}
cd ../ton-toncenter || return
# toncenter mainnet
docker build -f Dockerfile -t ton-toncenter-mainnet . --build-arg base=${REGISTRY}/ton/ton-base:mainnet-${VERSION}
docker tag ton-toncenter-mainnet ${REGISTRY}/ton/ton-toncenter:mainnet-${VERSION}
docker push ${REGISTRY}/ton/ton-toncenter:mainnet-${VERSION}
#
## toncenter testnet
#docker build -f Dockerfile -t ton-toncenter-testnet . --build-arg base=${REGISTRY}/ton/ton-base:testnet-${VERSION}
#docker tag ton-toncenter-testnet ${REGISTRY}/ton/ton-toncenter:testnet-${VERSION}
#docker push ${REGISTRY}/ton/ton-toncenter:testnet-${VERSION}