Sign inSign up

cityofzion/neo-python

By cityofzion

Updated about 7 years ago

neo-python environment in a Docker container

Image
1

10K+

cityofzion/neo-python repository overview

neo-python, fully packaged in an Ubuntu image.

This container is a playground for prompt.py and bash, and easily combined with a private network where you have all the NEO and GAS to play with.

Supported Tags

The version numbers relate to the respective neo-python releases. See the supported versions here.

Running the image standalone

To run this container connected to the testnet:

# Pull the latest image
docker pull cityofzion/neo-python

# Start the container, opens a bash
docker run --rm -it --net=host -v $(pwd):/neo-python/sc -h neo-python --name neo-python cityofzion/neo-python /bin/bash

# Start neo-python's prompt.py pointing to a private network
np-prompt -p -v

# Start neo-python's prompt.py on TestNet
np-prompt

Running the image with a private network

Start a neo-privatenet container and follow these steps:

# Pull the latest images from Docker hub
docker pull cityofzion/neo-python
docker pull cityofzion/neo-privatenet

# Start the private network container. Maps the current working directory on the host into 
# `/neo-python/sc/` and exposes the ports.
docker run --rm -d --name neo-privatenet -p 20333-20336:20333-20336/tcp -p 30333-30336:30333-30336/tcp cityofzion/neo-privatenet

# Start the neo-python container
docker run --rm -it --net=host -v $(pwd):/neo-python/sc -h neo-python --name neo-python cityofzion/neo-python /bin/bash

# Start neo-python
np-prompt -p -v

Wait a little, and you should see the block count increasing. Now you can use the privatenet wallet like this:

# Open the privatenet wallet (password: coz)
neo> wallet open neo-privnet.wallet

# Show wallet content
neo> wallet

# get general help 
neo> help

For more in depth help and usage instructions please visit https://neo-python.readthedocs.io/en/latest/

Tag summary

Content type

Image

Digest

Size

404.3 MB

Last updated

about 7 years ago

docker pull cityofzion/neo-python