PostList

2018년 12월 22일 토요일

Installing Hyperledger Fabric on AWS


##########################################################
Working on many issues. This post will be updated
##########################################################


1. access to AWS Ubuntu instance with "ubuntu" user (default) to create a new user.
ssh -i "AWS_UBUNTU_KEY.pem" ubuntu@ec2-55-222-88-111.us-west-2.compute.amazonaws.com


2. add a new user
sudo adduser haan
sudo adduser haan sudo
sudo usermod -aG sudo haan
su - haan
cd ~
pwd

e.g.
haan@ip-172-31-35-108:/home/ubuntu$ pwd
/home/ubuntu
haan@ip-172-31-35-108:/home/ubuntu$ cd ~
haan@ip-172-31-35-108:~$ pwd

/home/haan

let's exit and reconnect to aws ubuntu instance, and login to the new user account.
e.g.
su haan


3. install prerequisite

curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
./prereqs-ubuntu.sh

4. Install CLI tools



npm install -g composer-cli@0.20npm install -g composer-rest-server@0.20npm install -g generator-hyperledger-composer@0.20npm install -g yo

5. install play ground


npm install -g composer-playground@0.20


6. install Hyperledger Fabric


mkdir ~/fabric-dev-servers && cd ~/fabric-dev-servers

curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz
tar -xvf fabric-dev-servers.tar.gz

cd ~/fabric-dev-servers
export FABRIC_VERSION=hlfv12

./downloadFabric.sh


7. Starting and stopping Hyperledger Fabric
cd ~/fabric-dev-servers
export FABRIC_VERSION=hlfv12
./startFabric.sh
./createPeerAdminCard.sh

8. Start the web app ("Playground")
composer-playground

It will typically open your browser automatically, at the following address: http://localhost:8080/login

9. Access the Playground by a web.
http://55.200.22.111:8080/login


Ref: https://hyperledger.github.io/composer/latest/installing/installing-prereqs.html#ubuntu

댓글 없음:

댓글 쓰기