Skip to content

Instantly share code, notes, and snippets.

View zramsay's full-sized avatar

Zach zramsay

View GitHub Profile
@zramsay
zramsay / remotes.go
Created January 31, 2016 17:18
sample code for using libmachine + digital ocean to spin up hosts
package main
import (
"os"
"path/filepath"
"sync"
"time"
"github.com/docker/machine/drivers/digitalocean"
@zramsay
zramsay / dm_logs.md
Last active February 1, 2016 19:49
created in parallel using libmachine
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 / eris_ami.md
Created June 12, 2016 17:48
installing `eris` from the amazon markertplace
  • 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 June 12, 2016 19:34
installing eris on ARM platforms

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
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
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.

@zramsay
zramsay / deps.sh
Last active January 18, 2017 17:39
#!/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
#!/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
# For more information on configurations, see the services specification:
# https://monax.io/docs/documentation/cli/latest/specifications/services_specification/
# These fields marshal roughly into the [docker run] command, see:
# https://docs.docker.com/engine/reference/run/
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
name = "compilers"
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"