Pre-requisites for the setup
- This Developer Trial Edition only works on Linux/MacOSX with Docker installed.
- Install Docker on your machine: https://www.docker.com/community-edition
- Install docker-compose on your machine: https://docs.docker.com/compose/install/
- STRATO services need the following ports to be available on the machine (refer docker-compose.yml for details)
:80 (for NGINX)
:8080 (for API docs)
:5432 (for Postgresql)
:10001 (for Bloc API service)
:6379 (for Redis)
:30303 and :33000 (for Strato)
:3001 (for Postgrest)
:9000 (for Explorer)
:2181 (for Zookeeper)
:9092 (for Kafka)Steps to setup and run STRATO Developer Edition using Docker on your machine
-
Register for access to STRATO Developer Edition trial here: http://developers.blockapps.net/trial
-
Clone this repo using git clone. And
chdirorcdinto that folder. -
Configure docker registry login using the credentials [USER, PASSWORD, REGISTRY] you received via email after your registration for trial:
docker login -u <USER> -p <PASSWORD> <REGISTRY> - Launch STRATO services:
- Run:
chmod +x strato-run.sh - Then run the script:
./strato-run.sh-
Check if STRATO services are running (using
docker ps) & view the explorer at http://localhost/ -
Refer documentation here to get started with developing a sample app: https://github.com/blockapps/pizza-demo
-
For more details: http://developers.blockapps.net/dashboard
-
Reach out to BlockApps team for more info on support and enterprise licensed subscription: http://blockapps.net/learn-more-blockapps-strato-demo/
Steps to shutdown a running instance of STRATO Developer Edition on your machine (you will lose state of any transactions/data created in the blockchain)
- Run this command (from within the git cloned
getting-startedfolder)
docker-compose -p silo down -v - To force kill all the running STRATO services (docker containers) run this command:
docker-compose -p silo killFirst do
sudo apt-get install -y tmux tmuxinatorthen you can get an overview of all processes using
tmuxinator start strato
