From 125e081fd876187683821873b869b1e722bdc2d9 Mon Sep 17 00:00:00 2001 From: callingmybluff Date: Sat, 5 Oct 2019 15:14:45 +0200 Subject: [PATCH 1/3] Attempting Google Run --- cloudbuild.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 00000000..eb4f4d2d --- /dev/null +++ b/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'] From 076e3ad6859f3c4ec360d2fd5873d35414d31773 Mon Sep 17 00:00:00 2001 From: callingmybluff Date: Sat, 5 Oct 2019 15:58:58 +0200 Subject: [PATCH 2/3] Starting the doc, still broken due to image though --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 43ad1941..af61d7e1 100644 --- a/README.md +++ b/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: + +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 From 35b3b2da4567183d6a00dcbb0616131b34c7bdf6 Mon Sep 17 00:00:00 2001 From: callingmybluff Date: Sat, 5 Oct 2019 16:00:44 +0200 Subject: [PATCH 3/3] Add GCP Run button --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index af61d7e1..d84f7eab 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Doccano can be deployed to AWS ([Cloudformation](https://docs.aws.amazon.com/AWS 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: -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 +[![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).