Skip to content

Commit 71f7c37

Browse files
Merge pull request #16 from looker-open-source/jeremy_codelab_update
fix: Small codelab updates
2 parents 3d6defc + 70a11ba commit 71f7c37

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

.env.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
SLACK_CLIENT_ID=
2-
SLACK_CLIENT_SECRET=
3-
GOOGLE_CLIENT_ID=
4-
CHANNEL_ID=
5-
SPACE_ID=
6-
WEBSOCKET_SERVICE=
1+
SLACK_CLIENT_ID=YOUR_SLACK_CLIENT_ID
2+
SLACK_CLIENT_SECRET=YOUR_SLACK_CLIENT_SECRET
3+
GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
4+
CHANNEL_ID=YOUR_SLACK_CHANNEL_ID
5+
SPACE_ID=YOUR_GOOGLE_SPACE_ID
6+
WEBSOCKET_SERVICE=YOUR_CLOUD_RUN_URL

manifest.lkml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ project_name: "dashboard-summarization"
33

44
application: dashboard-summarization {
55
label: "Dashboard Insights Powered by Vertex AI"
6-
# file: "dashboard-summarization.js"
7-
url: "http://localhost:3000/bundle.js"
6+
url: "http://localhost:8080/bundle.js"
87
mount_points: {
98
dashboard_vis: yes
109
dashboard_tile: yes
@@ -15,7 +14,7 @@ application: dashboard-summarization {
1514
use_form_submit: yes
1615
core_api_methods: ["me","run_inline_query","all_lookml_models","dashboard","dashboard_dashboard_elements"]
1716
external_api_urls: [
18-
"CLOUD RUN URL","http://localhost:5000","http://localhost:3000","https://*.googleapis.com","https://slack.com/api/*","https://slack.com/*"
17+
"YOUR_CLOUD_RUN_URL","http://localhost:5000","http://localhost:3000","https://*.googleapis.com","https://slack.com/api/*","https://slack.com/*"
1918
]
2019
oauth2_urls: [
2120
"https://accounts.google.com/o/oauth2/v2/auth",
@@ -32,4 +31,4 @@ application: dashboard-summarization {
3231
scoped_user_attributes: []
3332
global_user_attributes: []
3433
}
35-
}
34+
}

websocket-service/src/cloudbuild.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
steps:
2+
# Docker Build
3+
- name: 'gcr.io/cloud-builders/docker'
4+
args: ['build', '-t',
5+
'<YOUR_REGION>-docker.pkg.dev/<YOUR_PROJECT_ID>/dashboard-summarization-docker-repo/websocketserviceimage',
6+
'.']
7+
8+
# Docker Push
9+
- name: 'gcr.io/cloud-builders/docker'
10+
args: ['push',
11+
'<YOUR_REGION>-docker.pkg.dev/<YOUR_PROJECT_ID>/dashboard-summarization-docker-repo/websocketserviceimage']

websocket-service/terraform/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
variable "project_id" {
22
type = string
3-
default = ""
3+
default = "YOUR_PROJECT_ID"
44
}
55

66
variable "deployment_region" {
77
type = string
8-
default = ""
8+
default = "YOUR_REGION"
99
}
1010

1111
variable "docker_image" {
1212
type = string
13-
default = ""
13+
default = "YOUR_DOCKER_IMAGE_URL"
1414
}
1515

1616
variable "cloud_run_service_name" {

0 commit comments

Comments
 (0)