Skip to content

Commit

Permalink
Added and updated tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
gitrey committed Sep 16, 2024
1 parent 5fff8a3 commit 4965b97
Show file tree
Hide file tree
Showing 2 changed files with 521 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docs/tutorials/chat-slack-agent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,24 +212,9 @@ region [us-central1] will be created.
Do you want to continue (Y/n)? y
```

Ask Gemini to explain the command.


Review `gcloud run deploy SERVICE_NAME --source=.` flow below. [Learn more](https://cloud.google.com/run/docs/deploying-source-code).


Behind the scenes, this command uses Google Cloud's `buildpacks` and `Cloud Build` to automatically build container images from your source code without having to install Docker on your machine or set up buildpacks or Cloud Build. That is, the single command described above does what would otherwise require the `gcloud builds submit` and the `gcloud run deploy` commands.

If you have provided Dockerfile(which we did in this repository) then Cloud Build will use it to build container images vs relying on the buildpacks to automatically detect and build container images. To learn more about buildpacks check out [documentation](https://cloud.google.com/docs/buildpacks/overview).

Review Cloud Build logs in the [Console](https://console.cloud.google.com/cloud-build/builds).

Review created Docker image in [Artifact Registry](https://console.cloud.google.com/artifacts).

Open `cloud-run-source-deploy/devai-api` and review vulnerabilities that were automatically detected. Check ones that have fixes available and see how it can be fixed based on the description.

Review Cloud Run instance details in the [Cloud Console](https://console.cloud.google.com/run).
## Test API

Test endpoint by running curl command.

Expand Down Expand Up @@ -490,6 +475,7 @@ Open the "Event Subscriptions" section and paste the url.

Save the changes.

## Test Agent in Slack

Open "Slack" and add an agent by typing "@Agent".

Expand Down
Loading

0 comments on commit 4965b97

Please sign in to comment.