Open rosquillas opened 2 months ago
Hello! if you're seeing an error that An image does not exist locally
, that usually means the docker build step failed, and there's no container image to push.
During the build, looks like you got an err: "/.mvn": not found
. Did you install Maven 3.9+ during the prerequisites?
if Maven is correctly installed, you should be able to run this.
❯ mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /opt/homebrew/Cellar/maven/3.9.6/libexec
Java version: 17.0.10, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk@17/17.0.10/libexec/openjdk.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "14.4.1", arch: "aarch64", family: "mac"
The docker build step should then be able to run these maven commands during the build: https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/sample-apps/fixmycar/vertex-ai-search/backend/Dockerfile#L17
For me, this is issue was caused by the omission of the wrapper from the git repository (probably due to the .gitignore) To fix this issue, I did the following...
gemini/sample-apps/fixmycar/vertex-ai-search/backend
mvn wrapper:wrapper
vertex-ai-search
directory and the execute ./dockerpush.sh
After this, the docker push worked successfully. Hope this helps.
Getting this FixMyCar sample app to work is challenging. Errors encountered so far are:
Any suggestions on the best way to fix the missing class file for com.google.protobuf.GeneratedMessageV3 ?
File Name
https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/sample-apps/fixmycar/vertex-ai-search/dockerpush.sh
What happened?
Following the fixmycar sample-app here , while running the script
./dockerpush.sh
the script ends with the following error:An image does not exist locally with the tag: us-central1-docker.pkg.dev/PROJECT-ID/fixmycar/backend-vertex-ai-search
Relevant log output
Code of Conduct