I'm cloning multiple repositories (using git clone
) inside my Google Cloud Run job and one of them makes Google Cloud killing the container with exit 1. See the log:
{
insertId: "xxx",
labels: {
instanceId: "xxx"
run.googleapis.com/execution_name: "xxx",
run.googleapis.com/task_attempt: "0",
run.googleapis.com/task_index: "0"
},
logName: "xxx/run.googleapis.com%2Fstderr",
receiveTimestamp: "2024-03-13T09:05:28.686787232Z",
resource: {
labels: {
job_name: "xxx",
location: "xxx",
project_id: "xxx"
},
type: "cloud_run_job"
},
textPayload: "Killed",
timestamp: "2024-03-13T09:05:28.685133Z"
}
The repository as cloned has 10.828 files and its size is 1.8 GB. The memory and CPU usage didn't exceed 50 %. It happens during git clone [email protected]:usr/bad_repo.git
.
I assume it's related to a limit but I didn't find anything.
Steps to reproduce:
- Create a Docker container with a Bash script that clones a repository like this:
git clone -q --depth 1 --no-tags --filter=blob:limit=100k [email protected]:supabase/supabase.git
- Run this Docker container as Cloud Run job
- The container will exit with status code 1 triggered by Cloud Run
All logs:
Dockerfile
andscript.sh
following this document and got same issue. After increasing memory and CPU, its working fine. I can also able to successfully run withalphine
image with 2gb memory and 1 CPU. Can you try to increase memory and CPU? Also share yourDockerfile.