Cloud Run
Deploy moclojer to Google Cloud Run - serverless, autoscaling mock API deployment with YAML configuration from Cloud Storage or build-time inclusion.
Deploy moclojer to Google Cloud Run for serverless, autoscaling mock APIs.
π Quick Deploy
# Build and deploy
gcloud run deploy moclojer \
--image ghcr.io/moclojer/moclojer:latest \
--platform managed \
--region us-central1 \
--allow-unauthenticated \
--set-env-vars CONFIG=/app/moclojer.ymlπ¦ With Custom Configuration
1. Create Dockerfile
FROM ghcr.io/moclojer/moclojer:latest
COPY moclojer.yml /app/moclojer.yml2. Build and Push
docker build -t gcr.io/YOUR_PROJECT/moclojer .
docker push gcr.io/YOUR_PROJECT/moclojer3. Deploy
β
Best Practices
Use Cloud Build for CI/CD
Store configs in Cloud Storage
Enable Cloud Logging
Set appropriate memory/CPU limits
π See Also
Last updated
Was this helpful?