did some script reorg

This commit is contained in:
jash
2018-10-08 11:02:11 +02:00
committed by kexkey
parent ffa9293226
commit 7479433f4a
8 changed files with 42 additions and 41 deletions

View File

@@ -0,0 +1,25 @@
. ./docker.sh
. ./cyphernodeconf.sh
configure() {
trace "Updating SatoshiPortal dockers"
#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..."
# configure features of cyphernode
cyphernodeconf_configure
#docker image rm cyphernodeconf:latest
}

4
install/script/cyphernodeconf.sh Executable file → Normal file
View File

@@ -1,7 +1,3 @@
#!/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

4
install/script/docker.sh Executable file → Normal file
View File

@@ -1,7 +1,3 @@
#!/bin/sh
. ./trace.sh
build_docker_image() {
trace "building docker image: $1 with tag $2:latest"

31
install/script/install.sh Executable file → Normal file
View File

@@ -1,28 +1,3 @@
#!/bin/sh
. ./trace.sh
. ./docker.sh
. ./cyphernodeconf.sh
config_file=$1
trace "Updating SatoshiPortal dockers"
#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..."
# configure features of cyphernode
cyphernodeconf_configure
#docker image rm cyphernodeconf:latest
install() {
echo "Installation phase not implemented yet"
}

11
install/script/setup.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
. ./trace.sh
. ./configure.sh
. ./install.sh
echo "Starting configuration phase"
configure
echo "Starting installation phase"
install

View File

@@ -1,5 +1,3 @@
#!/bin/sh
trace()
{
if [ -n "${TRACING}" ]; then