|
| 1 | +# One-liner Deployment Scripts |
| 2 | + |
| 3 | +This directory contains one-liner deployment scripts for the Solana MCP Server across different platforms. |
| 4 | + |
| 5 | +## Quick Start |
| 6 | + |
| 7 | +```bash |
| 8 | +# Run the main script to see all options |
| 9 | +./scripts/deploy.sh |
| 10 | +``` |
| 11 | + |
| 12 | +## Available Scripts |
| 13 | + |
| 14 | +### Local Development |
| 15 | +```bash |
| 16 | +./scripts/deploy-local.sh |
| 17 | +``` |
| 18 | +- Downloads latest release binary |
| 19 | +- Configures Claude Desktop integration |
| 20 | +- No additional dependencies required |
| 21 | + |
| 22 | +### Docker Container |
| 23 | +```bash |
| 24 | +./scripts/deploy-docker.sh |
| 25 | +``` |
| 26 | +- Builds Docker image |
| 27 | +- Runs container on port 8080 |
| 28 | +- Requires: Docker |
| 29 | + |
| 30 | +### Docker Compose |
| 31 | +```bash |
| 32 | +./scripts/deploy-compose.sh |
| 33 | +``` |
| 34 | +- Creates docker-compose.yml |
| 35 | +- Deploys with health checks |
| 36 | +- Requires: Docker, Docker Compose |
| 37 | + |
| 38 | +### Kubernetes |
| 39 | +```bash |
| 40 | +./scripts/deploy-k8s.sh |
| 41 | +``` |
| 42 | +- Creates deployment and service manifests |
| 43 | +- Deploys 3 replicas with load balancer |
| 44 | +- Requires: Docker, kubectl, Kubernetes cluster |
| 45 | + |
| 46 | +### AWS Lambda |
| 47 | +```bash |
| 48 | +./scripts/deploy-lambda.sh |
| 49 | +``` |
| 50 | +- Builds Lambda-compatible binary |
| 51 | +- Creates function and API Gateway |
| 52 | +- Requires: AWS CLI, cargo-lambda, valid AWS credentials |
| 53 | + |
| 54 | +### Google Cloud Functions |
| 55 | +```bash |
| 56 | +./scripts/deploy-gcf.sh |
| 57 | +``` |
| 58 | +- Builds for Cloud Functions runtime |
| 59 | +- Deploys HTTP-triggered function |
| 60 | +- Requires: gcloud CLI, valid GCP credentials |
| 61 | + |
| 62 | +### Vercel Edge Functions |
| 63 | +```bash |
| 64 | +./scripts/deploy-vercel.sh |
| 65 | +``` |
| 66 | +- Creates Vercel project structure |
| 67 | +- Deploys to Vercel Edge runtime |
| 68 | +- Requires: Vercel CLI, Node.js |
| 69 | + |
| 70 | +## Prerequisites by Platform |
| 71 | + |
| 72 | +| Platform | Requirements | |
| 73 | +|----------|-------------| |
| 74 | +| Local | curl, unzip | |
| 75 | +| Docker | Docker | |
| 76 | +| Docker Compose | Docker, docker-compose | |
| 77 | +| Kubernetes | Docker, kubectl, K8s cluster | |
| 78 | +| AWS Lambda | AWS CLI, cargo-lambda, AWS credentials | |
| 79 | +| Google Cloud | gcloud CLI, GCP credentials | |
| 80 | +| Vercel | Vercel CLI, Node.js | |
| 81 | + |
| 82 | +## Environment Variables |
| 83 | + |
| 84 | +All scripts use these default environment variables: |
| 85 | +- `SOLANA_RPC_URL=https://api.mainnet-beta.solana.com` |
| 86 | +- `SOLANA_COMMITMENT=confirmed` |
| 87 | +- `RUST_LOG=info` |
| 88 | + |
| 89 | +Modify the scripts to customize these values for your deployment. |
| 90 | + |
| 91 | +## Troubleshooting |
| 92 | + |
| 93 | +If a deployment fails: |
| 94 | +1. Check that all required tools are installed |
| 95 | +2. Verify credentials are configured (for cloud platforms) |
| 96 | +3. Ensure network connectivity |
| 97 | +4. Check platform-specific logs |
| 98 | + |
| 99 | +## Support |
| 100 | + |
| 101 | +See the main [DEPLOYMENT.md](../docs/DEPLOYMENT.md) for detailed deployment guides and troubleshooting. |
0 commit comments