Last active
February 4, 2017 18:27
-
-
Save zramsay/c03c46fbb88ce2aab201632f84776092 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
####### script itself to be run after ssh'ing into a docker-machine on digital ocean ######## | |
# run these two commands on a machine where docker-machine is installed (with Digital Ocean credentials as environment variable): | |
# docker-machine create eris-tester-uniqueID --driver digitalocean --digitalocean-size "1gb" | |
# docker-machine ssh eris-tester-uniqueID | |
# run on the docker-machine just ssh'd into | |
# curl -o install_eris_and_deploy.sh RAW_URL_OF_THIS_SCRIPT | |
# chmod +x install_eris_and_test_deploy.sh | |
# ./install_eris_and_test_deploy.sh | |
apt install golang-go -y | |
apt install jq -y | |
mkdir goApps | |
echo "export GOPATH=/root/goApps" >> ~/.profile | |
echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile | |
source ~/.profile | |
go get github.com/eris-ltd/eris | |
cd $GOPATH/src/github.com/eris-ltd/eris | |
git checkout release-0.16 | |
go install ./cmd/eris | |
# run these commands manually: | |
# source ~/.profile | |
# eris init -y | |
# eris chains make trythis | |
# eris chains start trythis --init-dir ~/.eris/chains/trythis/trythis_full_000 | |
# account=$(jq -r '.["trythis_full_000"].address' ~/.eris/chains/trythis/accounts.json) | |
# cd goApps/src/github.com/eris-ltd/eris/tests/jobs_fixtures/app06-deploy_basic_contract_and_different_solc_types_packed_unpacked | |
# eris pkgs do -c trythis -a $account |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment