Skip to content

Commit 96e9aa1

Browse files
committed
Fix Docker deployment to single method only
- Remove unnecessary Solana environment variables from Docker - All Solana configuration is hardcoded in Rust binary - Single deployment method: Docker with interactive activation - No manual environment variable configuration needed - Production contract ID embedded in code: D7g7mkL8o1YEex6ZgETJEQyyHV7uuUMvV3Fy3u83igJ7
1 parent 6744652 commit 96e9aa1

2 files changed

Lines changed: 11 additions & 15 deletions

File tree

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -274,27 +274,23 @@ export ONE_DEV_MINT_ADDRESS="62PPztDN8t6dAeh3FvxXfhkDJirpHZjGvCYdHM54FHHJ"
274274

275275
### 🖥️ Server Node Installation & Management
276276

277-
**Quick Node Installation:**
277+
**Production Docker Deployment (ONLY METHOD):**
278278

279279
```bash
280-
# Install dependencies (Ubuntu/Debian)
281-
sudo apt update && sudo apt install -y git curl build-essential pkg-config libssl-dev
282-
283-
# Install Rust
284-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
285-
source ~/.cargo/env
286-
287-
# Clone and build QNet node
280+
# Clone and checkout testnet
288281
git clone https://github.com/AIQnetLab/QNet-Blockchain.git
289282
cd QNet-Blockchain
290283
git checkout testnet
291-
cd development/qnet-integration
284+
285+
# Build production Docker image
292286
cargo build --release
287+
docker build -t qnet-production -f development/Dockerfile .
293288

294-
# Run node with production contract
295-
export BURN_TRACKER_PROGRAM_ID="D7g7mkL8o1YEex6ZgETJEQyyHV7uuUMvV3Fy3u83igJ7"
296-
export SOLANA_RPC_URL="https://api.devnet.solana.com"
297-
./target/release/qnet-node
289+
# Run interactive production node
290+
docker run -it --name qnet-node --restart=always \
291+
-p 9876:9876 -p 9877:9877 -p 8001:8001 \
292+
-v $(pwd)/node_data:/app/node_data \
293+
qnet-production
298294
```
299295

300296
**Clean Build & Cache:**

development/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ EXPOSE 8001 8002 8003 7001 7002 7003
7070
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
7171
CMD curl -f http://localhost:8001/health || exit 1
7272

73-
# Command to run the application
73+
# Production mode - fully automatic configuration, interactive activation only
7474
CMD ["/usr/local/bin/qnet-node"]

0 commit comments

Comments
 (0)