Commit Graph

4 Commits

Author SHA1 Message Date
Krypto Kajun
687350b285 fix(scripts): update launcher to support podman with modern compose syntax
Updated container execution path to:
- Detect and prefer podman over docker (modern container runtime)
- Use modern 'docker compose' and 'podman compose' syntax (without hyphen)
- Properly handle both podman and docker as fallback options
- Display which container runtime is being used in output

Key improvements:
- Container runtime detection (prefer podman, fallback to docker)
- Uses 'podman compose' or 'docker compose' based on available runtime
- Updated status messages to show container runtime information
- Renamed internal references from Docker-specific to generic "container"

Testing results:
 Podman is properly detected and used (podman compose works)
 Container image building with podman compose --no-cache succeeds
 Native execution path unchanged and still fully functional
 Both execution modes work correctly with proper pre-flight checks

The launcher now correctly uses:
- Modern compose syntax: 'podman compose' (not 'podman-compose')
- Proper container runtime auto-detection with podman preference
- Fallback to docker if podman not available

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 20:45:58 -06:00
Krypto Kajun
566f3f03ca feat(scripts): add Docker build and execution support to launcher
Added comprehensive Docker support to the launcher script with:

- New --docker flag to run bot in containerized environment
- Docker and docker-compose availability checks
- Automatic .env.docker generation with ARBITRUM_RPC_ENDPOINT
- docker-compose build --no-cache for image building
- docker-compose up/down for container lifecycle management
- Proper error handling when Docker/docker-compose not found
- Graceful container shutdown on Ctrl+C

Docker execution path provides:
- 3-step pre-flight verification (Docker detection, env setup, build)
- Full environment variable configuration
- Container health check integration
- Resource limits (2 CPU, 2GB RAM limits)
- Auto-restart policy for production reliability

Native execution path continues unchanged:
- Binary compilation if needed
- Full pre-flight checks (5 steps)
- Environment variable setup
- Graceful startup and shutdown

Testing Results:
 Docker path properly detected
 Native path executes successfully
 All pre-flight checks pass
 Bot initializes all 20+ services correctly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 18:58:11 -06:00
Krypto Kajun
32c06d8c21 feat(scripts): implement complete bot launcher with all setup and verification
Complete launcher script that handles:
- Binary compilation (builds if needed)
- Configuration file verification
- Directory setup (logs, data)
- Environment variable configuration
- RPC endpoint setup
- Proper error handling and validation
- Graceful startup/shutdown with Ctrl+C support
- Optional Anvil fork support for local testing
- Pre-flight checks before launch

The script now correctly sets ARBITRUM_RPC_ENDPOINT environment variable
that the config.yaml expects, enabling the bot to start successfully.

Features:
- Colored output with progress indicators
- Comprehensive logging of configuration
- Builds binary automatically if missing
- Validates all required config files exist
- Sets security variables automatically
- Shows startup banner with status information
- Full pre-flight verification suite
- Graceful cleanup on shutdown

Usage:
  ./scripts/run-flash-swap-bot.sh              # Run with defaults
  ./scripts/run-flash-swap-bot.sh --capital 10000  # Custom capital
  ./scripts/run-flash-swap-bot.sh --fork       # Use local fork
  ./scripts/run-flash-swap-bot.sh --dry-run    # Dry-run mode

 Tested and verified working - bot successfully starts and initializes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 15:07:57 -06:00
Krypto Kajun
10911ea469 feat: add flash swap bot launcher script for production deployment
- Created run-flash-swap-bot.sh with full command-line interface
- Supports --rpc, --capital, --dry-run, --fork options
- Automatic binary building if missing
- Integrated Anvil fork support for testing
- Production-ready deployment script

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 14:54:58 -06:00