Files
cyphernode/build.sh
kexkey e45f484fab Releases/v0.8.1 (#256)
* v0.8.1

* env_file dir permissions were too strict

* wrong permissions take two
2022-03-30 15:19:17 -04:00

46 lines
1.3 KiB
Bash
Executable File

#!/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