created structure for configuring services inside a common docker container so the configuration process is os-independant

This commit is contained in:
jash
2018-10-04 00:30:30 +02:00
committed by kexkey
parent 3a4eed516b
commit acb777db90
7 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/sh
. ./trace.sh
# this will run configure.sh of the specified package inside a
# cyphernodeconf container. This way we ensure we have the right
# environment and do not pollute the host machine with utility
# 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\
--log-driver=none\
--rm -it cyphernodeconf:latest
}

View File

@@ -2,6 +2,7 @@
. ./trace.sh
. ./docker.sh
. ./cyphernodeconf.sh
trace "Updating SatoshiPortal dockers"
git submodule update --recursive --remote
@@ -15,3 +16,9 @@ build_docker_image ../SatoshiPortal/dockers/$arch/LN/c-lightning clnimg
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