Links

Docker

Instructions on how to run Standard Validator using Docker image.
Published Docker images are available from the standardtech organization repository.
Docker installation instructions are available here.
Github Actions pipeline for Docker images can be found here.

Pull/Build

Use published image

You can either pull latest release in format of *.*.* from Github Releases, or use 'latest' tag.
# pulls down latest tag
docker pull standardprotocol/opportunity-standalone:latest
# pulls down custom tag
docker pull standardprotocol/opportunity-standalone:0.x.x

Build image from source

Clone repository

git clone https://github.com/digitalnativeinc/standard-substrate.git
cd standard-substrate

Build

Command
Makefile
DOCKER_BUILDKIT=1 docker build -f Docker/Dockerfile -t opportunity-standalone:local .
make docker-build

Run

Prepare

# will output --help command for opportunity-standalone
docker run standardprotocol/opportunity-standalone:latest
OR
docker run opportunity-standalone:local
# create separate volume for docker for persistence
docker volume create opportunity-standalone-volume

Run published image

Bash
Makefile
# start node
docker run -itd \
--volume opportunity-standalone-volume:/data \
--name opportunity-standalone \
standardprotocol/opportunity-standalone:latest \
--base-path /data --name <node-name>

Run local image

Bash
Makefile
# start node
docker run -itd \
--volume standard-validator-volume:/data \
--name opportunity-standalone \
opportunity-standalone:local \
--base-path /data --name <node-name>
# arguments given as a reference
make docker-run VOLUME_PATH='./data' DATA_DIR='/data' NODE_NAME='Standard Validator'

Check logs

docker logs opportunity-standalone -f