Add Dockerfile and environment setup for BSC cluster#1
Conversation
- set useLatestBscClinet to true to compile geth with latest geth on github - xargs -r to ignore error if no previous geth found
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis pull request introduces Docker containerization support for the BSC toolbox. A new Sequence DiagramsequenceDiagram
participant User
participant Docker as Docker Compose
participant Container as Container Runtime
participant Entrypoint as entrypoint.sh
participant ClusterScript as bsc_cluster.sh
participant App as BSC Application
User->>Docker: docker compose up -d --build
Docker->>Docker: Build image from Dockerfile
Docker->>Container: Start bsc-node service
Container->>Entrypoint: Execute entrypoint.sh
Entrypoint->>Entrypoint: cd /node_deploy<br/>Create lock file
Entrypoint->>ClusterScript: bash ./bsc_cluster.sh reset
ClusterScript->>ClusterScript: Initialize validator<br/>Register stakehub<br/>Configure node
ClusterScript->>Entrypoint: Initialization complete
Entrypoint->>Entrypoint: Remove lock file
Entrypoint->>App: exec bash (main container shell)
App->>App: Ready for user interaction
App->>User: RPC available at :8545<br/>Monitoring available
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 4❌ Failed checks (4 warnings)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary by CodeRabbit
Documentation
New Features