1_getting_started
This guide will help you set up and run PATH to serve requests using Pocket Network in under 10 minutes.
Prerequisites
Docker installed and running on your system
Prepare Your Configuration
First, prepare your configuration file by following the PATH Config File instructions.
After you have your configuration file, you can proceed with the following steps:
Create a config directory for PATH:
mkdir -p ./path/configCopy your configuration file to the new directory with the correct name:
export CONFIG_FILE=/PATH/TO/YOUR/CONFIG/FILE
cp $CONFIG_FILE ./path/config/.config.yamlSet Up the PATH Container
TODO
TODO_IMPROVE: Replace main with latest once the artifact release CI is complete.
Set the PATH container image version from the set of available tags:
export PATH_IMAGE_TAG='main'Start the PATH container:
docker run \
-itd \
--name path \
-p 3069:3069 \
-v ./path/config:/app/config \
ghcr.io/buildwithgrove/path:$PATH_IMAGE_TAGParameter explanation:
-p 3069:3069: Map port 3069 on host to port 3069 in container. PATH listens on port 3069 for requests.-v ./path/config:/app/config: Mount the config directory. PATH expects its configuration file at/app/config/.config.yaml
Verify PATH is Running
Check the PATH container logs:
docker logs path --follow --tail 100Wait for PATH to be ready to serve requests:
curl -s http://localhost:3069/healthzWhen PATH is ready, this command will return a 200 status code and the response body will contain the JSON: "status": "ready"
Example response:
{
"status": "ready",
"imageTag": "development",
"readyStates": {
"endpoint-hydrator": true,
"eth": true
},
"configuredServiceIDs": ["anvil", "base", "eth", "pocket", "xrplevm"]
}Troubleshooting
If PATH doesn't show as ready after a few minutes:
Check the logs for error messages:
docker logs pathVerify your configuration file is correct:
cat ./path/config/.config.yamlEnsure the ports aren't already in use:
lsof -i :3069
Next Steps
Once PATH is running successfully:
Configure your client applications to connect to PATH
Monitor PATH's performance and logs as needed
For more advanced configuration options, refer to the full documentation
TODO - Test instructions
TODO_IMPROVE(@adshmh): Add additional instructions on how to test this and improve next steps
Was this helpful?
