Skip to content

Instantly share code, notes, and snippets.

@YoshihitoAso
Last active April 21, 2016 06:39
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 YoshihitoAso/ce10b93d4e54e6fd0cfba69c38d04187 to your computer and use it in GitHub Desktop.
Save YoshihitoAso/ce10b93d4e54e6fd0cfba69c38d04187 to your computer and use it in GitHub Desktop.
Erisのインストールに関するメモ

Ubuntu14.04環境にErisをインストール

Eris https://erisindustries.com/

OS情報

以下の環境で試した。

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.4 LTS
Release:	14.04
Codename:	trusty

カーネル情報

カーネルのバージョンは以下の通り。Erisは内部的にDockerを利用するが、古いカーネルだとDockerが動かない。

$ uname -r
3.13.0-77-generic

Dockerのインストール

Erisは内部的にDockerを利用する。公式ドキュメントに沿ってDockerをインストールする。 https://docs.docker.com/engine/installation/linux/ubuntulinux/

Erisのインストール

Erisをインストールする。以下のページにインスローラーが準備されている。 https://github.com/eris-ltd/eris-cli/releases

Erisの初期セットアップ

初期セットアップは以下のコマンドを実行するのみ。

$ eris init

簡単な使い方

Chainの作成

$ eris services start keys
$ eris chains make test_chain --chain-type simplechain

Chainの起動

$ eris chains new test_chain

Chainの停止

$ eris chains rm -xf test_chain

参考)Bitcoin(btcd) または Ethereum(eth) の起動

ErisはPermissioned Chainとしてだけではなく、Public Chainのサービス起動などもCLIから操作出来る。 例えばBitcoinまたはEthereumを起動する方法は以下の通り。

$ eris services start btcd
$ eris services start eth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment