diff --git a/.env.example b/.env.example index 0348df3..3743f9f 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ -SLACK_CLIENT_ID= -SLACK_CLIENT_SECRET= -GOOGLE_CLIENT_ID= -CHANNEL_ID= -SPACE_ID= -WEBSOCKET_SERVICE= \ No newline at end of file +SLACK_CLIENT_ID=YOUR_SLACK_CLIENT_ID +SLACK_CLIENT_SECRET=YOUR_SLACK_CLIENT_SECRET +GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID +CHANNEL_ID=YOUR_SLACK_CHANNEL_ID +SPACE_ID=YOUR_GOOGLE_SPACE_ID +WEBSOCKET_SERVICE=YOUR_CLOUD_RUN_URL diff --git a/manifest.lkml b/manifest.lkml index 6201f13..c6d288a 100644 --- a/manifest.lkml +++ b/manifest.lkml @@ -3,8 +3,7 @@ project_name: "dashboard-summarization" application: dashboard-summarization { label: "Dashboard Insights Powered by Vertex AI" - # file: "dashboard-summarization.js" - url: "http://localhost:3000/bundle.js" + url: "http://localhost:8080/bundle.js" mount_points: { dashboard_vis: yes dashboard_tile: yes @@ -15,7 +14,7 @@ application: dashboard-summarization { use_form_submit: yes core_api_methods: ["me","run_inline_query","all_lookml_models","dashboard","dashboard_dashboard_elements"] external_api_urls: [ - "CLOUD RUN URL","http://localhost:5000","http://localhost:3000","https://*.googleapis.com","https://slack.com/api/*","https://slack.com/*" + "YOUR_CLOUD_RUN_URL","http://localhost:5000","http://localhost:3000","https://*.googleapis.com","https://slack.com/api/*","https://slack.com/*" ] oauth2_urls: [ "https://accounts.google.com/o/oauth2/v2/auth", @@ -32,4 +31,4 @@ application: dashboard-summarization { scoped_user_attributes: [] global_user_attributes: [] } -} \ No newline at end of file +} diff --git a/websocket-service/src/cloudbuild.yaml b/websocket-service/src/cloudbuild.yaml new file mode 100644 index 0000000..2fee56f --- /dev/null +++ b/websocket-service/src/cloudbuild.yaml @@ -0,0 +1,11 @@ +steps: + # Docker Build + - name: 'gcr.io/cloud-builders/docker' + args: ['build', '-t', + '-docker.pkg.dev//dashboard-summarization-docker-repo/websocketserviceimage', + '.'] + + # Docker Push + - name: 'gcr.io/cloud-builders/docker' + args: ['push', + '-docker.pkg.dev//dashboard-summarization-docker-repo/websocketserviceimage'] diff --git a/websocket-service/terraform/variables.tf b/websocket-service/terraform/variables.tf index 7948b8c..b1542f9 100644 --- a/websocket-service/terraform/variables.tf +++ b/websocket-service/terraform/variables.tf @@ -1,16 +1,16 @@ variable "project_id" { type = string - default = "" + default = "YOUR_PROJECT_ID" } variable "deployment_region" { type = string - default = "" + default = "YOUR_REGION" } variable "docker_image" { type = string - default = "" + default = "YOUR_DOCKER_IMAGE_URL" } variable "cloud_run_service_name" {