Skip to content

Commit

Permalink
Merge pull request #16 from looker-open-source/jeremy_codelab_update
Browse files Browse the repository at this point in the history
fix: Small codelab updates
  • Loading branch information
LukaFontanilla authored May 22, 2024
2 parents 3d6defc + 70a11ba commit 71f7c37
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
CHANNEL_ID=
SPACE_ID=
WEBSOCKET_SERVICE=
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
7 changes: 3 additions & 4 deletions manifest.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
Expand All @@ -32,4 +31,4 @@ application: dashboard-summarization {
scoped_user_attributes: []
global_user_attributes: []
}
}
}
11 changes: 11 additions & 0 deletions websocket-service/src/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
steps:
# Docker Build
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t',
'<YOUR_REGION>-docker.pkg.dev/<YOUR_PROJECT_ID>/dashboard-summarization-docker-repo/websocketserviceimage',
'.']

# Docker Push
- name: 'gcr.io/cloud-builders/docker'
args: ['push',
'<YOUR_REGION>-docker.pkg.dev/<YOUR_PROJECT_ID>/dashboard-summarization-docker-repo/websocketserviceimage']
6 changes: 3 additions & 3 deletions websocket-service/terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down

0 comments on commit 71f7c37

Please sign in to comment.