diff --git a/docker/witnet-rust/runner.sh b/docker/witnet-rust/runner.sh index 7166ab109..11d2d7b47 100755 --- a/docker/witnet-rust/runner.sh +++ b/docker/witnet-rust/runner.sh @@ -43,7 +43,7 @@ PUBLIC_ADDR_DISCOVERY=${PUBLIC_ADDR_DISCOVERY:-"true"} LOG_LEVEL=${LOG_LEVEL:-"info"} # Run the migrator (e.g. move RocksDB data from "./witnet" into "./witnet/storage") -./migrator.sh +./migrator.sh $@ # Change directory into the file system root so that all paths are absolute when using "docker exec" cd / @@ -52,11 +52,12 @@ cd / while true; do # Run the public address detector if enabled if [[ "$PUBLIC_ADDR_DISCOVERY" == "true" ]]; then - /tmp/ip_detector.sh + /tmp/ip_detector.sh $@ fi # Run the node itself, using configuration from the default directory and passing down any arguments that may be # appended when running "docker run" - RUST_LOG=witnet=$LOG_LEVEL /tmp/witnet-raw -c "$CONFIG_FILE" "$COMMAND" || echo "$ERROR_BANNER" + echo "Running as 'RUST_LOG=witnet=$LOG_LEVEL /tmp/witnet-raw -c \"$CONFIG_FILE\" $COMMAND'" + RUST_LOG=witnet=$LOG_LEVEL /tmp/witnet-raw -c "$CONFIG_FILE" $COMMAND || echo "$ERROR_BANNER" sleep 30 done diff --git a/docker/witnet-rust/testnet-1/witnet.toml b/docker/witnet-rust/testnet-1/witnet.toml index bd2d07485..9172e4538 100644 --- a/docker/witnet-rust/testnet-1/witnet.toml +++ b/docker/witnet-rust/testnet-1/witnet.toml @@ -75,7 +75,7 @@ data_request_max_retrievals_per_epoch = 30 data_request_timeout_milliseconds = 2000 # Path for the `genesis_block.json` file that contains the initial wit allocations that need to be built into the first # block in the block chain. -genesis_path = ".witnet/config/testnet-1/genesis_block.json" +genesis_path = "/tmp/testnet-1/genesis_block.json" # `mint_external_address` and `mint_external_percentage` enable splitting the mint reward between the node's # own address and an "external" address, e.g. a the address of a wallet. `mint_external_percentage` indicates # the percentage of the block rewards that will be assigned to `mint_external_address` (50% by default)