/neo-cli-docker

use neo-cli easy by docker

Primary LanguageDockerfileMIT LicenseMIT

neo-cli-docker

use neo-cli easy by docker

Prepare docker environment

https://docs.docker.com/engine/installation/

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    
sudo yum install docker-ce

Download source

git clone https://github.com/hzxiao/neo-cli-docker.git

cd neo-cli-docker

Quick Start

Run with builded docker images

cd quickstart

docker-compose up -d

wait few minute access localhost:4000 you should see neo-scan with some blocks.

if you want to build your own image, follow below

Build docker images

  • For Mainnet
docker build -t neo-cli-mainnet:v2.10.2 -f Dockerfile/mainnet/v2.10.2/Dockerfile .
  • For Testnet
docker build -t neo-cli-testnet:v2.10.2 -f Dockerfile/testnet/v2.10.2/Dockerfile .
  • For Private net
docker build -t neo-cli-prinet:v2.10.2 -f Dockerfile/privatenet/v2.10.2/Dockerfile .

Run neo-cli

  • For Mainnet
docker run -d -p 10332:10332 -v /home/neo/cli/0:/home/cli/Chain neo-cli-mainnet:v2.10.2
  • For Testnet
docker run -d -p 20332:20332 -v /home/neo/cli/0:/home/cli/Chain neo-cli-testnet:v2.10.2
  • For Private net
cd Dockerfile/privatenet/v2.10.2/

docker-compose up -d

Neo info

  • Mainnet Cli RPC

http://127.0.0.1:10332

  • Testnet Cli RPC

http://127.0.0.1:20332