Install & Start
Welcome to the Quick Start guide for installing and deploying your Log Store Node.
Installโ
Choose to install and operate the Node directly from the source or by using Docker.
Sourceโ
- Clone the Log Store Node Repository: Begin by cloning the usherlabs/logstore-node repository to your machine:
git clone https://github.com/usherlabs/logstore-node.git
- Navigate to directory:
cd logstore-node
- Build the Node:
pnpm i
pnpm build
Dockerโ
Pull the Docker Image:
docker pull ghcr.io/usherlabs/logstore-node:latest
Configuring the Nodeโ
- Configuration File: Create a JSON configuration file for your node. Example configurations are available in the
config-examples
directory. Customize your configuration as needed. For a detailed guide on configuration parameters, refer to the Configuration Reference section. - Setup Configuration: Store your configuration file in a location accessible to Docker. This file will be used when initiating your Node.
Starting the Nodeโ
To start your Log Store Node, execute the command below, replacing <path-to-your-config>
with the actual path to your configuration file.
An example config path: ~/.logstore/config/default.json
Source:
pnpm lsn start --config <path-to-your-config>
Docker:
docker run \
-v <path-to-your-config>:/home/node/.logstore/config/default.json \
-p 7774:7774 \
ghcr.io/usherlabs/logstore-node:latest
This mounts your configuration file into the Docker container and initiates the Log Store Node.
Verifying the Installationโ
Check Node Status: Ensure your Log Store Node is active. This can be verified by inspecting the Docker container and/or Node's logs or querying the Node's API.
The Streamr Network has undergone an upgrade to v100.x. You may notice websocket related error messages when starting a Log Store Node. This is caused by cycling through connections to various Streamr Nodes. This is a known issue and does not impact the functionality of the Log Store Node or Streamr technology.
Congratulations! Your Log Store Node is now successfully installed and operational. This setup allows you to engage with the Log Store Network effectively. For further information on Node configuration and integration, refer to the subsequent sections.