Browse Source

Merge pull request #388 from almeta-io/master

[discussion] GCP Run - "Free" deployment solution for small teams
pull/443/head
Hiroki Nakayama 5 years ago
committed by GitHub
parent
commit
d77859f3e3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions
  1. 8
      README.md
  2. 7
      cloudbuild.yaml

8
README.md

@ -58,6 +58,14 @@ Doccano can be deployed to AWS ([Cloudformation](https://docs.aws.amazon.com/AWS
> 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).
### GCP
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:
[![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)
> 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).
## Features
- Collaborative annotation

7
cloudbuild.yaml

@ -0,0 +1,7 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '--tag=gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ["push", "gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}"]
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'run', 'deploy', 'almeta-doccano', '--image', 'gcr.io/${PROJECT_ID}/almeta-doccano:${BRANCH_NAME}', '--region', 'us-central1', '--memory', '2G', '--platform', 'managed', '--allow-unauthenticated']
Loading…
Cancel
Save