Skip to content

Instantly share code, notes, and snippets.

@djuanit0x
Created July 22, 2019 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djuanit0x/b50db42b46250888cc47d8dbfced4713 to your computer and use it in GitHub Desktop.
Save djuanit0x/b50db42b46250888cc47d8dbfced4713 to your computer and use it in GitHub Desktop.
#!/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