Google Cloud Deployment
The Google Cloud target deploys your Morphis server to Cloud Run as a container image.
morphis deploy --server=api --target=gcloudWhat the CLI does under the hood
When you run the Google Cloud target, Morphis:
- Builds a Linux amd64 Docker image.
- Configures Docker authentication for Artifact Registry.
- Pushes the image to Artifact Registry.
- Deploys or updates a Cloud Run service.
This is a serverless container deploy, not a traditional long-running VM deploy.
Required prerequisites
- Docker installed and running.
- Google Cloud CLI authenticated.
- A Google Cloud project ID available through
--gcp-project=<id>orGCLOUD_PROJECT. - Permission to push to Artifact Registry and deploy Cloud Run services.
Example command
morphis deploy --server=api --target=gcloud --gcp-project=my-project --service=my-apiLast updated on