-
-
Notifications
You must be signed in to change notification settings - Fork 10
Installation
This guide provides detailed instructions for installing ON1Builder in different environments and deployment scenarios.
Before installing ON1Builder, ensure your system meets the following requirements:
- CPU: 4+ cores (8+ recommended for production)
- RAM: 8+ GB (16+ GB recommended for production)
- Storage: SSD with at least 100GB free space
- Network: Stable internet connection with low latency
- Operating System: Linux (Ubuntu 20.04+ recommended), macOS, or Windows with WSL2
- Python: Version 3.12 or higher
- Docker: Latest version (for containerized deployment)
- Docker Compose: Latest version (for multi-container orchestration)
- Git: For cloning the repository
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 template environment file
cp template.env .env
# Edit the .env file with your configuration
nano .envConfigure the necessary environment variables:
- API keys for price data sources
- Blockchain RPC endpoints
- Wallet information
# 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.yamlFor production environments:
git clone https://github.com/John0n1/ON1Builder.git
cd ON1Builder# Copy the template environment file
cp template.env .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.shSelect the appropriate deployment option from the interactive menu.
For containerized deployment:
git clone https://github.com/John0n1/ON1Builder.git
cd ON1Builder# Copy the template environment file
cp template.env .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 on1builderFor 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.yamlAdd the configuration for each blockchain you want to monitor.
# Using the deployment helper
./infra/bash/deploy_helper.sh
# Select option for Multi-Chain deploymentAlternatively, deploy directly:
./infra/bash/deploy_prod_multi_chain.sh-
Private Key Management:
- Use environment variables for private keys
- Consider using a secret management system like HashiCorp Vault
-
Network Security:
- Run behind a firewall
- Use VPN for remote access
- Set up SSH key authentication
-
Monitoring:
- Set up alert notifications
- Monitor system resources
- Implement log rotation
-
Dependency Installation Errors:
pip install -r requirements.txt --no-cache-dir
-
Permission Denied Errors:
chmod +x *.sh -
Docker Network Issues:
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.