Coder Social home page Coder Social logo

neo-docker's Introduction

Neo Docker Image

It already contains ApplicationLogsImportBlocksRpcSecurityRpcWallet and SimplePolicy plugins.

Usage

Open RpcServer

docker run --name=neo-cli -dit -p 10332-10334:10332-10334 ashuaidehao/neo-cli

Open Node Only

docker run --name=neo-cli -dit -p 10333:10333 ashuaidehao/neo-cli

Connect to test net

You need prepare test net config files(config.testnet.json and protocol.testnet.json) first, then use :

docker run -dit --name neo-cli -p 20332-20334:20332-20334 -v {Physical Absolute Directory}/config.testnet.json:/neo-cli/config.json -v {Physical Absolute Directory}/protocol.testnet.json:/neo-cli/protocol.json ashuaidehao/neo-cli

Accelerate Sync blocks

If you want to use ImportBlocks to accelerate block chain sync (https://sync.ngd.network/), use this command to start it:

docker run -dit --name neo-cli -p 10332-10333:10332-10333 -v {Physical Absolute Directory}/chain.acc:/neo-cli/chain.acc ashuaidehao/neo-cli

Install Plugins

If you want to install other plugins, use these scripts after you start this container:

docker exec -it neo-cli /bin/bash
screen -r node
neo>install {PluginName}

Then restart this container.

Build Your Own Docker Image

Prerequisites

You need install Git and Docker.

Build and Run

git clone https://github.com/Ashuaidehao/neo-docker.git
cd neo-docker
docker build -t neo-cli .
docker run --name=neo-cli -dit -p 10332-10334:10332-10334 neo-cli

After start the docker container successfully, use the following scripts to enter neo-cli interactive window:

docker exec -it neo-cli /bin/bash
screen -r node

Customize Docker Image

Before build docker image, you can put your own config files("config.json","protocal.json","your-wallet.json","your-wallet.db3" etc.) into the directory "configs", then they will overwrite the default file of neo-cli.

neo-docker's People

Contributors

ashuaidehao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.