Deployment Guide
Deploy to your Infrastructure
APIKlone ships as a single Docker image and integrates with Google Cloud Storage or local disk out of the box.
Google Cloud Run
RecommendedAPIKlone runs natively on Cloud Run — stateless, auto-scaling, and backed by Google Cloud Storage for persistent mock data and configuration.
Deployment Steps
1
Enable required GCP APIs
gcloud services enable run.googleapis.com \
artifactregistry.googleapis.com \
cloudbuild.googleapis.com \
storage.googleapis.com
2
Create a Cloud Storage bucket
gcloud storage buckets create gs://YOUR_BUCKET_NAME \
--location=europe-west2 \
--project=YOUR_PROJECT_ID
The bucket holds config.json, mocks/, and contacts/ — all APIKlone state.
3
Deploy directly from source
sh deploy.sh
This builds the Docker image via Cloud Build, pushes to Artifact Registry, and deploys to Cloud Run automatically. Edit deploy.sh to set your project ID, region, and bucket name.
4
Grant bucket access
gcloud projects add-iam-policy-binding YOUR_PROJECT_ID \
--member="serviceAccount:YOUR_SA@developer.gserviceaccount.com" \
--role="roles/storage.objectAdmin"
Get In Touch
Running into deployment issues on Cloud Run? Need an Enterprise license? Drop us a securely delivered line below.