-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.sh
executable file
·41 lines (35 loc) · 990 Bytes
/
build.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
#!/bin/sh -e
TON_NODE="${TON_NODE:-tonlabs/ton-node}"
TONOS_SE="${TONOS_SE:-tonlabs/evernode-se}"
BIN_TARGET="evernode_se"
Q_SERVER_GITHUB_REPO="https://github.com/everx-labs/ever-q-server"
Q_SERVER_GITHUB_REV="${Q_SERVER_GITHUB_REV:-$(cat q-server.version)}"
echo
echo "*** Building Evernode SE ***"
echo
docker build \
--platform linux/amd64 \
--no-cache \
--force-rm \
--pull \
--build-arg BIN_TARGET="$BIN_TARGET" \
--build-arg FEATURES="${1:-disable-tests}" \
--tag "$TON_NODE" \
./node
echo
echo "*** Building Evernode SE image ***"
echo
docker build \
--platform linux/amd64 \
--no-cache \
--force-rm \
--build-arg TON_NODE="$TON_NODE" \
--build-arg Q_SERVER_GITHUB_REPO="$Q_SERVER_GITHUB_REPO" \
--build-arg Q_SERVER_GITHUB_REV="$Q_SERVER_GITHUB_REV" \
--tag "$TONOS_SE" \
./docker
echo
echo "BUILD SUCCESS"
echo
echo "How to run:"
echo "docker run -d --name evernode-se -e USER_AGREEMENT=yes -p80:80 $TONOS_SE"