Skip to content

cryptochain/docker-waves-devnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker container for Waves Testnet node

This Docker image will install the latest release version of Waves Testnet node upon building.

Building the image

Prerequisites

You need the latest version of Docker installed.

Please, follow installation istructions at Docker Site.

Building the image

In order to build a new Docker image execute the following commands:

Clone the project's repository:

git clone https://github.com/wavesplatform/docker-waves-testnet.git

Get into project's directory:

cd docker-waves-testnet

Build an image with the following command:

docker build -t waves-testnet .

Running the image

List your Docker's images:

docker images

To start a new Docker container, please, execute:

docker run --name waves-testnet waves-testnet

This image defines a storage volume in folder /data and volume for configuration file in /conf folder. Those folders are persisted on host drive. So, your node configuration and downloaded blockchain will survive the container restart. You can find the locations of volumes on a host computer using docker inspect command.

Alternatively you can map volumes on host folders using option -v as in:

docker run --name waves-testnet -v /home/user/local-waves-data:/data -v /home/user/local-waves-conf:/conf waves-testnet

In order to use your configuration file you have to place this file in local-waves-conf folder and provide the name of the file as command line parameter in run command.

cp my-waves.conf /home/user/local-waves-conf/
docker run --name waves-testnet -v /home/user/local-waves-data:/data -v /home/user/local-waves-conf:/conf waves-testnet my-waves.conf

To start and stop the container use Docker commands docker start waves-testnet and docker stop waves-testnet.

About

Build Docker container with the latest release of Waves Testnet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%