mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-04 13:35:28 +01:00
did some script reorg
This commit is contained in:
25
install/script/configure.sh
Normal file
25
install/script/configure.sh
Normal 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
4
install/script/cyphernodeconf.sh
Executable file → Normal 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
4
install/script/docker.sh
Executable file → Normal 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
31
install/script/install.sh
Executable file → Normal 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
11
install/script/setup.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
. ./trace.sh
|
||||
. ./configure.sh
|
||||
. ./install.sh
|
||||
|
||||
echo "Starting configuration phase"
|
||||
configure
|
||||
|
||||
echo "Starting installation phase"
|
||||
install
|
||||
@@ -1,5 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
trace()
|
||||
{
|
||||
if [ -n "${TRACING}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user