Docker

circle-info

This guide assumes you have some experience with Docker already, if not feel free to begin with Cloud Run, App Engine Flexible or Standalone guide

circle-info

Make sure you have Google Cloud SDKarrow-up-right installed

Create a Service Account

gcloud iam service-accounts create ushaflow-core-ee

Grant dialogflow.reader and dialogflow.client roles to the Service Account

gcloud projects add-iam-policy-binding <your-project-id> --member serviceAccount:ushaflow-core-ee@<your-project-id>.iam.gserviceaccount.com --role roles/dialogflow.reader
gcloud projects add-iam-policy-binding <your-project-id> --member serviceAccount:ushaflow-core-ee@<your-project-id>.iam.gserviceaccount.com --role roles/dialogflow.client

Generate Service Account key

gcloud iam service-accounts keys create service_account.json --iam-account ushaflow-core-ee@<your-project-id>.iam.gserviceaccount.com

Run the container with desired

circle-info

Make sure you have Google Cloud SDKarrow-up-right installed

docker run -d \
-e "TOKEN=<your license key>" \
-e "GOOGLE_APPLICATION_CREDENTIALS=/app/service_account.json" \
-p 8090:8090 \
-v "$(pwd)"/service_account.json:/app/service_account.json \
ghcr.io/ushaflow/core-ee

Last updated