Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Need help with "gcloud builds submit" command

Hi guys, 

 

I am trying to build my Dockerfile using the following command for a Python project: "gcloud builds submit --tag gcr.io/287924944473/container-name" 

 

It starts and begins downloading and starts the pip install -r requirements step I have outlined in my Dockerfile however one of the packages (torch+cuda) is 1.8GB and the build keeps crashing. I have tried to increase my instance size from 4GB memory to 128GB memory (everything inbetween) but I still get the following 137 Error: 

 

Killed
The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 137
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 137

 

Could someone please help me with this? I have tried to increase the instance memory size to no avail. I am not sure where to go next. My suspicion is that the "gcloud builds submit" command imposes a memory limit on the build itself? But I am really unsure as I am new to GCP...

0 3 3,789
3 REPLIES 3