Last active
September 26, 2018 22:39
-
-
Save asselstine/a47e014d29b08d686906dbab4f9e92b5 to your computer and use it in GitHub Desktop.
Docker separated ganache runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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