Using Docker
Deploy a PFN using Docker
This section describes how to configure and run your PFN using Docker.
Supported only on x86-64 CPUs Running endless-core via Docker is currently only supported on x86-64 CPUs.
Ensure Docker Cli and service are available. If not, install Docker
Next, the user chooses whether to run the Docker container with the default configuration or a customized configuration.
Default configuration
The default configurations:
endless-nodeprogram is located at/usr/local/bin/The working directory is located under
/opt/endless/The data directory stores synchronization
/opt/endless/dataThe genesis and waypoint files are located in the
/opt/endless/genesisdirectoryThe P2P synchronization port is set to
0.0.0.0:6182The GRPC stream service is disabled by default.
Customized Configuration
If the user wishes to run with a customized configuration, the following steps are required:
We presume user construct the following directory: base_dir, eg. /opt/endless/
User select run the following script to prepare your local configuration and data directory for mainnet. This will download the
fullnode.yamlconfiguration file, thegenesis.blobandwaypoint.txtfiles for your PFN, and create adatadirectory to store the blockchain database:
Don't want to connect to mainnet? To connect to other networks (e.g., testnet), you can find the genesis and waypoint here β https://github.com/endless-labs/endless-networks. Be sure to download the genesis.blob and waypoint.txt for those networks, instead of using the genesis and waypoint pointed to by the curl commands above.
Create
fullnode.yamlconfiguration file, please refer Sample Configuration of PFN:
Your fullnode.yaml should look like the following:
Run the following
dockercommand:
You have now successfully configured and started running a PFN in the Endless mainnet.
Last updated