Skip to content

Instantly share code, notes, and snippets.

@asselstine
Last active September 26, 2018 22:39
Show Gist options
  • Save asselstine/a47e014d29b08d686906dbab4f9e92b5 to your computer and use it in GitHub Desktop.
Save asselstine/a47e014d29b08d686906dbab4f9e92b5 to your computer and use it in GitHub Desktop.
Docker separated ganache runner
docker run --rm -it -d --name ganache-cli -p 8145:8545 trufflesuite/ganache-cli:latest -e 10000000000 -l 4700038 -h 0.0.0.0; \
truffle compile --network=test && truffle test --network=test $1; \
EXIT_STATUS=$?; \
echo 'Shutting down ganache-cli...'; \
docker stop ganache-cli && echo 'Shut down ganache-cli' & \
exit $EXIT_STATUS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment