Open nxho opened 3 months ago
I was following the steps under https://github.com/GoogleCloudPlatform/localllm?tab=readme-ov-file#running-as-a-cloud-workstation. I attempted to run the command in step 5: gcloud builds submit . --substitutions=_IMAGE_REGISTRY=$LOCALLLM_REGISTRY,_IMAGE_NAME=$LOCALLLM_IMAGE_NAME.
gcloud builds submit . --substitutions=_IMAGE_REGISTRY=$LOCALLLM_REGISTRY,_IMAGE_NAME=$LOCALLLM_IMAGE_NAME
It failed, resulting in the following error:
Step #0: Step 4/10 : RUN pip install openai --root-user-action=ignore Step #0: ---> Running in 6d25fbcf34cc Step #0: Step #0: Usage: Step #0: pip install [options] <requirement specifier> [package-index-options] ... Step #0: pip install [options] -r <requirements file> [package-index-options] ... Step #0: pip install [options] [-e] <vcs project url> ... Step #0: pip install [options] [-e] <local project path> ... Step #0: pip install [options] <archive url/path> ... Step #0: Step #0: no such option: --root-user-action Step #0: The command '/bin/sh -c pip install openai --root-user-action=ignore' returned a non-zero code: 2 Finished Step #0 ERROR ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 2 Step #0: ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ BUILD FAILURE: Build step failure: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 2 ERROR: (gcloud.builds.submit) build 1b9ffd11-2d20-428d-8b6b-a681d43195d3 completed with status "FAILURE"
I removed all occurrences of --root-user-action from the Dockerfile in the repo before rerunning, and that caused the command to succeed.
--root-user-action
Dockerfile
I was following the steps under https://github.com/GoogleCloudPlatform/localllm?tab=readme-ov-file#running-as-a-cloud-workstation. I attempted to run the command in step 5:
gcloud builds submit . --substitutions=_IMAGE_REGISTRY=$LOCALLLM_REGISTRY,_IMAGE_NAME=$LOCALLLM_IMAGE_NAME
.It failed, resulting in the following error:
I removed all occurrences of
--root-user-action
from theDockerfile
in the repo before rerunning, and that caused the command to succeed.