This guide provides detailed instructions for installing ON1Builder in different environments and deployment scenarios.
Before installing ON1Builder, ensure your system meets the following requirements:
ON1Builder can be installed and deployed in multiple ways:
For development and testing purposes:
git clone https://github.com/John0n1/ON1Builder.git
cd ON1Builder
# Copy the .env.example file
cp .env.example .env
# Edit the .env file with your configuration
nano .env
Configure the necessary environment variables:
# Install poetry if not already installed
pip install poetry
# Install dependencies using the provided script
./setup_dev.sh
# Activate the virtual environment
poetry shell
# Run the connection test
python -m on1builder test-connection --config configs/chains/config.yaml
For production environments:
git clone https://github.com/John0n1/ON1Builder.git
cd ON1Builder
# Copy the .env.example file
cp .env.example .env
# Edit the .env file with your production configuration
nano .env
# Make scripts executable
chmod +x infra/bash/*.sh
# Set proper permissions for config files
chmod 600 .env
./infra/bash/deploy_helper.sh
Select the appropriate deployment option from the interactive menu.
For containerized deployment:
git clone https://github.com/John0n1/ON1Builder.git
cd ON1Builder
# Copy the .env.example file
cp .env.example .env
# Edit the .env file with your configuration
nano .env
# Build the Docker image
docker build -t on1builder:latest .
# Run the container
docker run -d --name on1builder \
--env-file .env \
-v $(pwd)/configs:/app/configs \
-v $(pwd)/data:/app/data \
-p 5001:5001 \
on1builder:latest
# Check container logs
docker logs on1builder
For running ON1Builder across multiple blockchains:
Complete either the Production Installation or Docker Installation steps.
# Edit the multi-chain configuration file
nano configs/chains/config_multi_chain.yaml
Add the configuration for each blockchain you want to monitor.
# Using the deployment helper
./infra/bash/deploy_helper.sh
# Select option for Multi-Chain deployment
Alternatively, deploy directly:
./infra/bash/deploy_prod_multi_chain.sh
pip install -r requirements.txt --no-cache-dir
chmod +x *.sh
docker network inspect bridge
For more troubleshooting help, see the Troubleshooting Guide.
After successful installation:
For detailed API configuration or custom development, refer to the Configuration Reference.