f25a7abfe4236be064d5d931f335d0cca15e181a
AKERN Assistant
- Have
gcloudCLI configured (https://docs.cloud.google.com/sdk/docs/install-sdk?hl=it). - Setup the Google Cloud project:
Login
gcloud auth login
Set the correct Google project
gcloud config set core/project akqa-ita-ai-poc1
Build the image
Setup Docker first:
gcloud auth configure-docker \
europe-west3-docker.pkg.dev
This allows Docker to use gcloud credentials to authenticate in the registry. Then to push the image:
docker buildx build \
--platform linux/amd64 \
-t europe-west3-docker.pkg.dev/akqa-ita-ai-poc1/akern-repository/akern_assistant:latest \
--push \
.
Deployment
gcloud run deploy akern-assistant \
--image europe-west3-docker.pkg.dev/akqa-ita-ai-poc1/akern-repository/akern_assistant:latest \
--platform managed \
--region europe-west3 \
--port 8080 \
--allow-unauthenticated \
--set-secrets "GOOGLE_APPLICATION_CREDENTIALS_JSON=google-credentials:latest,AUTH_USER=auth-user:latest,PASSWORD=auth-password:latest"
Description
Languages
Python
40.8%
JavaScript
20.8%
HTML
17.8%
CSS
12.4%
Dockerfile
6.3%
Other
1.9%