From c1bd767e50d3041da64be10947556a8a80d83308 Mon Sep 17 00:00:00 2001 From: John McDole Date: Wed, 4 Dec 2024 11:05:56 -0800 Subject: [PATCH] Docker fix #2: Docker build requries '.' Even with `-f file`, `.` is still required. Podman didn't have a problem with this. --- app_dart/cloudbuild_app_dart.yaml | 2 +- auto_submit/cloudbuild_auto_submit.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app_dart/cloudbuild_app_dart.yaml b/app_dart/cloudbuild_app_dart.yaml index 1bb9d0e99..a2cd3ccd0 100644 --- a/app_dart/cloudbuild_app_dart.yaml +++ b/app_dart/cloudbuild_app_dart.yaml @@ -18,7 +18,7 @@ steps: # Build docker image - name: 'us-docker.pkg.dev/cloud-builders/ga/v1/docker' - args: ['build', '-t', 'us-docker.pkg.dev/$PROJECT_ID/appengine/default.version-$SHORT_SHA', '-f', 'Dockerfile.app_dart'] + args: ['build', '-t', 'us-docker.pkg.dev/$PROJECT_ID/appengine/default.version-$SHORT_SHA', '-f', 'Dockerfile.app_dart', '.'] # Trigger the cloud build that deploys the docker image - name: gcr.io/cloud-builders/gcloud diff --git a/auto_submit/cloudbuild_auto_submit.yaml b/auto_submit/cloudbuild_auto_submit.yaml index bf810405f..f7714da66 100644 --- a/auto_submit/cloudbuild_auto_submit.yaml +++ b/auto_submit/cloudbuild_auto_submit.yaml @@ -10,7 +10,7 @@ steps: # Build docker image - name: 'us-docker.pkg.dev/cloud-builders/ga/v1/docker' - args: ['build', '-t', 'us-docker.pkg.dev/$PROJECT_ID/appengine/auto-submit.version-$SHORT_SHA', '-f', 'Dockerfile.auto_submit'] + args: ['build', '-t', 'us-docker.pkg.dev/$PROJECT_ID/appengine/auto-submit.version-$SHORT_SHA', '-f', 'Dockerfile.auto_submit', '.'] # Trigger the cloud build that deploys the docker image - name: gcr.io/cloud-builders/gcloud