-
Notifications
You must be signed in to change notification settings - Fork 69
/
build.sh
executable file
·45 lines (37 loc) · 1.27 KB
/
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
42
43
44
45
#!/bin/bash
TRACING=1
# CYPHERNODE VERSION "v0.8.1"
CONF_VERSION="v0.8.1-local"
GATEKEEPER_VERSION="v0.8.1-local"
TOR_VERSION="v0.8.1-local"
PROXY_VERSION="v0.8.1-local"
NOTIFIER_VERSION="v0.8.1-local"
PROXYCRON_VERSION="v0.8.1-local"
OTSCLIENT_VERSION="v0.8.1-local"
PYCOIN_VERSION="v0.8.1-local"
trace()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] ${1}" > /dev/stderr
fi
}
trace_rc()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] Last return code: ${1}" > /dev/stderr
fi
}
build_docker_images() {
trace "Updating SatoshiPortal repos"
trace "Creating cyphernodeconf image"
docker build cyphernodeconf_docker/ -t cyphernode/cyphernodeconf:$CONF_VERSION
trace "Creating cyphernode images"
docker build api_auth_docker/ -t cyphernode/gatekeeper:$GATEKEEPER_VERSION \
&& docker build tor_docker/ -t cyphernode/tor:$TOR_VERSION \
&& docker build proxy_docker/ -t cyphernode/proxy:$PROXY_VERSION \
&& docker build notifier_docker/ -t cyphernode/notifier:$NOTIFIER_VERSION \
&& docker build cron_docker/ -t cyphernode/proxycron:$PROXYCRON_VERSION \
&& docker build pycoin_docker/ -t cyphernode/pycoin:$PYCOIN_VERSION \
&& docker build otsclient_docker/ -t cyphernode/otsclient:$OTSCLIENT_VERSION
}
build_docker_images