This file contains 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
{ | |
"config": { | |
"chainId": 9308039, | |
"homesteadBlock": 0, | |
"daoforkBlock": 0, | |
"daoforkSupport": true, | |
"eip150Block": 0, | |
"eip155Block": 0, | |
"eip55Block": 0, | |
"eip214Block": 0, |
This file contains 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 | |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
sudo update-alternatives --remove-all gcc | |
sudo update-alternatives --remove-all g++ | |
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 |
This file contains 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
{ | |
"name": "DevelopmentChain", | |
"engine": { | |
"instantSeal": { | |
"params": {} | |
} | |
}, | |
"params": { | |
"accountStartNonce": "0x0", | |
"maximumExtraDataSize": "0x20", |
This file contains 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
#!/bin/sh | |
## inherit from https://chaincodedevs.com/showthread.php?tid=3 | |
## https://www.youtube.com/channel/UCIQAZN1lUU4vHCRJY_maOfw | |
sudo adduser playground | |
sudo usermod -aG sudo playground | |
sudo su - playground | |
sudo curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh | |
sudo chmod u+x prereqs-ubuntu.sh | |
sudo ./prereqs-ubuntu.sh | |
sudo su - playground |
This file contains 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
#!/bin/bash | |
# Install "git" | |
sudo apt-get update | |
sudo apt-get -y install git | |
# Clone the Hyperledger Fabric base image repository. It would be preferable | |
# to use the "/tmp" directory as the destination, since this repository is no | |
# longer needed once the base image has been built. However, this is | |
# problematic because one of the scripts that builds the base image removes |
This file contains 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
sudo -i | |
ssh-keygen -N '' -f ~/.ssh/id_rsa | |
cat ~/.ssh/id_rsa.pub | |
cat << 'EOF' > ~/.ssh/config | |
Host * | |
StrictHostKeyChecking no | |
EOF | |
chmod 600 ~/.ssh/config | |
yum upgrade -y |
This file contains 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
#!/bin/sh | |
# Tested on Ubuntu 16.04LTS/18.04LTS | |
echo 'export PS1="\[\e[34;1m\]\w\[\e[m\]$ "' >> ~/.profile | |
. ~/.profile | |
sudo timedatectl set-timezone Asia/Tokyo | |
sudo apt -y update | |
sudo apt -y upgrade | |
sudo apt -y install \ |
This file contains 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
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 | |
export FABRIC_VERSION=hlfv12 | |
./downloadFabric.sh | |
./startFabric.sh | |
./createPeerAdminCard.sh |
This file contains 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 | |
# $1 - docker compose files | |
# $2 - orderer code ("org0") | |
# $3 - first org ("org1") | |
# $4 - list of remaining orgs ("org2 org3") | |
# $5 - number of orgs (2org / 3org) | |
. ./scripts/setup.sh |
This file contains 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
#!/bin/bash | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
NewerOlder