Skip to content

Commit d77859f

Browse files
authored
Merge pull request doccano#388 from almeta-io/master
[discussion] GCP Run - "Free" deployment solution for small teams
2 parents 8b3f0b9 + 35b3b2d commit d77859f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ Doccano can be deployed to AWS ([Cloudformation](https://docs.aws.amazon.com/AWS
5858

5959
> Notice: (1) EC2 KeyPair cannot be created automatically, so make sure you have an existing EC2 KeyPair in one region. Or [create one yourself](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair). (2) If you want to access doccano via HTTPS in AWS, here is an [instruction](https://github.com/chakki-works/doccano/wiki/HTTPS-setting-for-doccano-in-AWS).
6060
61+
### GCP
62+
63+
If you have a very small team, Doccano can also be deployed to GCP ([Cloud Run](https://cloud.google.com/run)) by clicking on the button below:
64+
65+
[![GCP Cloud Run PNG Button](https://storage.googleapis.com/gweb-cloudblog-publish/images/run_on_google_cloud.max-300x300.png)](https://console.cloud.google.com/cloudshell/editor?shellonly=true&cloudshell_image=gcr.io/cloudrun/doccano&cloudshell_git_repo=https://github.com/chakki-works/doccano.git)
66+
67+
> Note: Although this is a very cheap option, it is only suitable for very small teams (up to 80 concurrent requests). Read more on [Cloud Run docs](https://cloud.google.com/run/docs/concepts).
68+
6169
## Features
6270

6371
- Collaborative annotation

cloudbuild.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
steps:
2+
- name: 'gcr.io/cloud-builders/docker'
3+
args: ['build', '--tag=gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '.']
4+
- name: 'gcr.io/cloud-builders/docker'
5+
args: ["push", "gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}"]
6+
- name: 'gcr.io/cloud-builders/gcloud'
7+
args: ['beta', 'run', 'deploy', 'almeta-doccano', '--image', 'gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '--region', 'us-central1', '--memory', '2G', '--platform', 'managed', '--allow-unauthenticated']

0 commit comments

Comments
 (0)