cycles-quartz/docker/neutrond
dusterbloom 864da77405
devX: Docker compose for neutron + quartz cli (#248)
Co-authored-by: Juan Enrique Alcaraz <juanenrisley@gmail.com>
2024-10-10 14:41:16 +02:00
..
data devX: Docker compose for neutron + quartz cli (#248) 2024-10-10 14:41:16 +02:00
.dockerignore devX: Docker compose for neutron + quartz cli (#248) 2024-10-10 14:41:16 +02:00
Dockerfile devX: Docker compose for neutron + quartz cli (#248) 2024-10-10 14:41:16 +02:00
Makefile devX: Docker compose for neutron + quartz cli (#248) 2024-10-10 14:41:16 +02:00
README.md devX: Docker compose for neutron + quartz cli (#248) 2024-10-10 14:41:16 +02:00

Quartz Neutrond image

This folder contains a Dockerfile that helps build a single-node [neutrond] for use in testing your Quartz application.

It facilitates the creation of a Docker image with 4 accounts pre-loaded, each having a small amount of untrn preloaded from genesis for experimentation.

  • admin
  • alice
  • bob
  • charlie

These accounts' details are stored in clear text in the data/accounts folder.

Note: this image is NOT intended to be used in production.

Using the image

For running this image you can just use the already prepared docker-compose.yml file by simply run at docker folder root level:

docker compose up node

Importing the account keys

As previously mentioned, the data/accounts folder contains all of the necessary material to construct the public/private keypairs of the accounts.

A convenient helper target is provided in /Makefile to facilitate importing of these accounts into a local neutrond configuration (i.e. on your host machine, outside of the Docker container). This will allow you to transact on behalf of any of those accounts from outside of the Docker container.

NB: For this to work, you will need the same version of neutrond installed on your local machine as what is built into the neutrond Docker image.

make import-local-accounts

To check that the accounts have been imported correctly, on your host machine run:

# List all keys available in your local neutrond configuration
neutrond keys list --keyring-backend=test