Created
July 22, 2019 08:03
-
-
Save djuanit0x/b50db42b46250888cc47d8dbfced4713 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
echo "Getting the Bitcoin price using contracts on provable:starter container using docker compose" | |
docker-compose -f docker-compose.yml up --build | |
TR=$? | |
echo exitcode=${TR} | |
echo "removing................" | |
docker-compose -f docker-compose.yml rm -f | |
docker rmi provable:starter | |
docker rmi bridge:starter | |
docker rmi trufflesuite/ganache-cli:v6.1.0 -f | |
if [ ${TR} -eq 0 ]; then | |
echo "Bitcoin price is successfully retrieved!" | |
exit 0 | |
else | |
echo "Bitcoin price is not successfully retrieved!" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment