7cc1988962
Adding docker-compose.dev.yml and Dockerfile.dev to mount the current dir and call a script to conditionally build for fast iteration
30 lines
693 B
Bash
Executable File
30 lines
693 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Exits if any command fails
|
|
set -e
|
|
|
|
if [ -n "$REBUILD" ]; then
|
|
echo -e "\n\nREBUILD env var set, rebuilding...\n\n"
|
|
|
|
make geth
|
|
echo -e "\n\nCode built proceeding with ./entrypoint.sh...\n\n"
|
|
else
|
|
echo -e "\n\nREBUILD env var not set, calling ./entrypoint.sh without building...\n\n"
|
|
fi
|
|
|
|
echo "Starting Geth..."
|
|
## Command to kick off geth
|
|
TARGET_GAS_LIMIT=${TARGET_GAS_LIMIT:-4294967295}
|
|
./build/bin/geth --dev \
|
|
--datadir $VOLUME_PATH \
|
|
--rpc \
|
|
--rpcaddr $HOSTNAME \
|
|
--rpcvhosts='*' \
|
|
--rpcport $PORT \
|
|
--networkid $NETWORK_ID \
|
|
--rpcapi 'eth,net' \
|
|
--gasprice '0' \
|
|
--targetgaslimit $TARGET_GAS_LIMIT \
|
|
--nousb \
|
|
--gcmode=archive \
|
|
--verbosity "6" |