【艺观心相】首先你得有个docker!
看这个酷图,你还需要知道即使像 Google 这样严肃的,有道德感的公司,现在也明确了
Google与Digital Asset和BlockApps 公司将在Google Cloud上展开深入合作,共同探索基于区块链技术的解决方案。
Digital Asset将为科技金融行业提供分布式账本软件,BlockApps提供市场上主流区块链服务平台(BaaS)。
Google公司表示,“在GCP以及DigitalAsset、BlockApps等项目发起伙伴平台上,用户可以探索分布式账本技术(DLT)框架的使用方式。今年晚些时候,会在GCP市场尝试进行Hyperledger Fabric和Ethereum的开源集成。”
Google还将提供数字资产建模语言(DAML)工具包,用于构建基于区块链的应用程序。Google是少数几家被选中参与数字资产有限测试版DAML套件预览的技术合作伙伴之一。DAML平台服务也将在Google Cloud平台上提供。
STRATO Developer Edition – Getting Started guide
Architecture
Key components to note
- Bloc API: User/Account Management and Smart-contracts management via API.
- STRATO API: Blockchain API for blocks and transactions.
- Cirrus: Index and search smart-contracts, SQL-like query API for looking up smart-contracts and state changes.
- STRATO Management Dashboard (SMD): Web based UI for your Private Ethereum Blockchain Network using Bloc/STRATO API for User and Contracts management & offering SQL like query interface for smart-contracts.
Sign-up for trial
To use this guide you will need to have signed up for our Developer Edition Trial, if you have not already done so sign up here: http://developers.blockapps.net/trial
Pre-requisites
Linux/MacOSX:
- Install Docker on your machine; 参考Mac平台上Docker安装与使用 – CSDN博客
https://blog.csdn.net/jiang_xinxing/article/details/58025417 - Install Docker Compose on your machine:
安装 docker-compose
curl -L https://get.daocloud.io/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
- For Mac users: Install
wget
using Homebrew (use the steps below): 安装 wget,别说 还以为是 mac 缺省有的!!!- Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- wget:
brew install wget --with-libressl
- Homebrew:
Windows:
- Install Docker Toolbox (“Docker for Windows” is not currently supported)
The list of the ports required to be available on the machine
Setup
Steps to setup and run STRATO Developer Edition using Docker on your machine:
- Clone STRATO Getting Started repo using
git clone
or download and extract .zip archive. Andchdir
orcd
into that folder. - Copy and paste these credentials into your terminal to login to the Docker container:
docker login -u blockapps-repo -p P@ssw0rd registry-aws.blockapps.net:5000
- Launch STRATO services:
- Run:
chmod +x strato.sh
- Then run the script:
./strato.sh --single
If running on the remote machine, provide the NODE_HOST variable with the machine’s external IP address or domain (reachable through the network) when running the STRATO:
NODE_HOST=example.com ./strato.sh --single
Windows users should always provide the NODE_HOST variable with the docker machine IP address (in most cases it is
192.168.99.100
) when running the STRATO:NODE_HOST=192.168.99.100 ./strato.sh --single
- Run:
- Check if STRATO services are running (using
docker ps
) & view the Strato Management Dashboard athttp://localhost/
(orhttp://<remote_node_host>/
when running on remote machine)
If
NODE_HOST
is set in step 3, use it’s value instead of thelocalhost
hereinafter - Explore the Bloc and STRATO API docs via the top right link on the Dashboard (http://localhost)
- Default credentials for UI web pages:
username: admin password: admin
- API Docs can also be accessed at these endpoints directly:
strato-api: http://localhost/strato-api/eth/v1.2/docs bloc api: http://localhost/bloc/v2.2/docs
- Default credentials for UI web pages:
- Refer documentation here to get started with developing a sample app: https://github.com/blockapps/blockapps-ba
- Reach out to BlockApps team for more info on support and enterprise licensed subscription: http://blockapps.net/learn-more-blockapps-strato-demo/
Stopping STRATO
To stop a running instance of STRATO Developer Edition on your machine, run this command (from within the git cloned getting-started
folder)
./strato.sh --stop
To stop and wipe out a running instance of STRATO Developer Edition on your machine, run this command (from within the git cloned getting-started
folder)(you will lose state of any transactions/data created in the blockchain)
./strato.sh --wipe
Public STRATO instance
If you can’t run your own STRATO instance on your machine, try our public instance (accessible to anyone with the credentials, so don’t host Production or Production-like apps/content):
http://stratodev.blockapps.net/
Ports used
STRATO services need the following ports to be available on the machine (refer docker-compose.yml for details):
:80, :443 (for Nginx)
:30303, :30303/UDP (for Strato P2P)
Multinode Network (Public STRATO Testnet)
- In early alpha, bootnode may go down and blockchain data wiped out during refreshes and upgrades
- Use only for testing
You can now run your local STRATO node peering it to the main bootnode and experience a multinode blockchain test network.
Here’s the command to start your local node to connect and sync with our bootnode:
BOOT_NODE_IP=52.179.13.55 ./strato.sh
- The bootnode is: stratodev.blockapps.net
- Bootnode Dashboard: https://stratodev.blockapps.net/
0 条评论