Skip to content

Instantly share code, notes, and snippets.

Avatar

Zach zramsay

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am zramsay on github.
  • I am zramsay (https://keybase.io/zramsay) on keybase.
  • I have a public key ASCEGKcVYXsrrf5ztFmKojPbf3AwQEyAiXF4sbmApc_MCgo

To claim this, I am signing this object:

@zramsay
zramsay / dm_logs.md
Last active Feb 1, 2016
created in parallel using libmachine
View dm_logs.md
Running pre-create checks...
Running pre-create checks...
Running pre-create checks...
Creating machine...
(eris-remote-dm-1) Creating SSH key...
Creating machine...
(eris-remote-dm-0) Creating SSH key...
Creating machine...
(eris-remote-dm-2) Creating SSH key...
@zramsay
zramsay / remotes.go
Created Jan 31, 2016
sample code for using libmachine + digital ocean to spin up hosts
View remotes.go
package main
import (
"os"
"path/filepath"
"sync"
"time"
"github.com/docker/machine/drivers/digitalocean"
@zramsay
zramsay / eris_ami.md
Created Jun 12, 2016
installing `eris` from the amazon markertplace
View eris_ami.md
  • go to marketplace for eris
  • once instance is created: ssh ubuntu@<IP>
  • then sudo -i -u eris
  • use eris normally
@zramsay
zramsay / eris_on_arm.md
Last active Jun 12, 2016
installing eris on ARM platforms
View eris_on_arm.md

way 1 (from source):

go get github.com/eris-ltd/eris-cli
cd $GOPATH/src/github.com/eris-ltd/eris-cli
git fetch origin develop
git checkout develop
go install ./cmd/eris
eris init
View etc
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 keys c1c29896f4db keys-540b9182-7050-47e4-b006-9833c9971f91
172.17.0.3 c0ea72c2e90e
View bond_unbond.md
layout title
docs
Tutorials | Bonding & Unbonding Validators on your Chain

The concept of bonding/unbonding validators here refers to validators which are voluntarily adding (bonding) or removing (unbonding) themselves. New validators (not included in the genesis file) first require tokens on the chain to post a bond with. Future tutorials will cover slashing/removing unwelcome/byzantine validators.

For this example, we'll be using a simplechain, which has a single Full Account (see: cat ~/.eris/chains/account-types/full.toml for more information). One another host, a new account will be created and connect to the running chain. Once our Full Account sends this new account some tokens, the new account will be in a position to post a bond and begin validating. Eventually, this validator can unbond if they so choose.

View deps.sh
#!/usr/bin/env bash
cd $ERISREPO
git clone -b develop https://github.com/eris-ltd/eris-compilers.git
go get github.com/Masterminds/glide
git clone -b unstable-develop https://github.com/eris-ltd/eris-db.git
cd eris-db
View eris_DO.sh
#!/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
View eris_toml-custom.toml
IpfsHost = "http://0.0.0.0"
IpfsPort = "8080"
CompilersHost = "https://compilers.monax.io"
CompilersPort = "10120"
CrashReport = "bugsnag"
ImagesPullTimeout = "15m"
Verbose = false
DefaultRegistry = "quay.io"
ImageData = "eris/data:0.12.0"
ImageKeys = "eris/keys:0.12.0"