mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-19 21:55:00 +01:00
19 lines
494 B
Bash
19 lines
494 B
Bash
|
|
configure() {
|
|
local current_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
## build setup docker image
|
|
local recreate=""
|
|
|
|
if [[ $1 == 1 ]]; then
|
|
recreate="recreate"
|
|
fi
|
|
|
|
build_docker_image ../ cyphernodeconf && clear && echo "Thinking..."
|
|
|
|
# configure features of cyphernode
|
|
docker run -v $current_path/../data:/data \
|
|
--log-driver=none\
|
|
--rm -it cyphernodeconf:latest $(id -u):$(id -g) yo --no-insight cyphernode $recreate
|
|
}
|
|
|