switched configuration process to yeoman generator inside a minimal docker image

This commit is contained in:
jash
2018-10-06 14:40:27 +02:00
committed by kexkey
parent acb777db90
commit 91aab75e39
13 changed files with 222 additions and 65 deletions

View File

@@ -8,13 +8,11 @@
# commands not needed for runtime
cyphernodeconf_configure() {
PWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
DATA_PATH=$PWD/../data
SCRIPT_PATH=$PWD/../$1/script
VOLUME_PATH=/tmp
docker run -v $VOLUME_PATH:/volume \
-v $DATA_PATH:/data \
-v $SCRIPT_PATH:/script\
local current_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
local data_path=$current_path/../data
local docker_image="cyphernodeconf:latest"
docker run -v $data_path:/data \
--log-driver=none\
--rm -it cyphernodeconf:latest
--rm -it $docker_image
}

View File

@@ -3,22 +3,25 @@
. ./trace.sh
. ./docker.sh
. ./cyphernodeconf.sh
. ./config.sh
config_file=$1
trace "Updating SatoshiPortal dockers"
git submodule update --recursive --remote
#git submodule update --recursive --remote
#
## build SatoshiPortal images
#local arch=x86_64
#build_docker_image ../SatoshiPortal/dockers/$arch/bitcoin-core btcnode
#build_docker_image ../SatoshiPortal/dockers/$arch/LN/c-lightning clnimg
#
## build cyphernode images
#build_docker_image ../../cron_docker/ proxycronimg
#build_docker_image ../../proxy_docker/ btcproxyimg
#build_docker_image ../../pycoin_docker/ pycoinimg
#
## build setup docker image
build_docker_image ../ cyphernodeconf && clear && echo "Thinking..."
# build SatoshiPortal images
arch=x86_64
build_docker_image ../SatoshiPortal/dockers/$arch/bitcoin-core btcnode
build_docker_image ../SatoshiPortal/dockers/$arch/LN/c-lightning clnimg
# build cyphernode images
build_docker_image ../../cron_docker/ proxycronimg
build_docker_image ../../proxy_docker/ btcproxyimg
build_docker_image ../../pycoin_docker/ pycoinimg
# build setup docker image
build_docker_image ../ cyphernodeconf
# configure bitcoind
cyphernodeconf_configure bitcoind
# configure features of cyphernode
cyphernodeconf_configure