From 79a701221dfc07a56ba7605610c0dc4e79b3d810 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 8 Oct 2022 19:22:11 +0800 Subject: [PATCH] docs: add GCP (Cloud Run) deployment --- .../en/getting-started/installation.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/packages/noco-docs/content/en/getting-started/installation.md b/packages/noco-docs/content/en/getting-started/installation.md index 7531fefe1e..8fa8aea987 100644 --- a/packages/noco-docs/content/en/getting-started/installation.md +++ b/packages/noco-docs/content/en/getting-started/installation.md @@ -370,6 +370,37 @@ It is mandatory to configure `NC_DB` environment variables for production usecas +### GCP (Cloud Run) + +
+ Click to Expand + + #### Pull NocoDB Image on Cloud Shell + + Since Cloud Run only supports images from Google Container Registry (GCR) or Artifact Registry, we need to pull NocoDB image, tag it and push it in GCP using Cloud Shell. Here are some sample commands which you can execute in Cloud Shell. + + ```bash + # pull latest NocoDB image + docker pull nocodb/nocodb:latest + + # tag the image + docker tag nocodb/nocodb:latest gcr.io//nocodb/nocodb:latest + + # push the image to GCR + docker push gcr.io//nocodb/nocodb:latest + ``` + + #### Deploy NocoDB on Cloud Run + + ```bash + gcloud run deploy --image=gcr.io//nocodb/nocodb:latest \ + --region=us-central1 \ + --allow-unauthenticated \ + --platform=managed + ``` + +
+ ### DigitalOcean (App)