Skip to content

Commit

Permalink
[Docker] Fix base container alias (#4141)
Browse files Browse the repository at this point in the history
Switches the container base image url to a supported alias.

b/369130578

(cherry picked from commit 6c55b73)
  • Loading branch information
kaidokert committed Sep 23, 2024
1 parent 9d5c683 commit 4775af1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/actions/docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ runs:
ACCESS_TOKEN=$(curl -H 'Metadata-Flavor: Google' ${SVC_ACCT}/token | cut -d'"' -f 4)
printf ${ACCESS_TOKEN} | docker login -u oauth2accesstoken --password-stdin https://gcr.io
echo "DOCKER_TAG=gcr.io/${PROJECT_NAME}/${{inputs.docker_image}}:pr-${GITHUB_EVENT_NUMBER}" >> $GITHUB_ENV
gcloud auth configure-docker
shell: bash
- name: Process Docker metadata
id: process-docker-metadata
Expand Down
2 changes: 1 addition & 1 deletion cobalt/site/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

ARG FROM_IMAGE
FROM ${FROM_IMAGE:-gcr.io/cloud-marketplace-containers/google/debian11}
FROM ${FROM_IMAGE:-marketplace.gcr.io/google/debian11:latest}

RUN apt update -qqy \
&& apt install -qqy --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ services:
base-bionic:
build:
args:
- BASE_OS=gcr.io/cloud-marketplace-containers/google/ubuntu1804
- BASE_OS=marketplace.gcr.io/google/ubuntu1804
- BASE_OS_TAG=latest
context: ./docker/linux
dockerfile: base/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion docker/linux/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

ARG BASE_OS
ARG BASE_OS_TAG
FROM ${BASE_OS:-gcr.io/cloud-marketplace-containers/google/debian10}:${BASE_OS_TAG:-latest}
FROM ${BASE_OS:-marketplace.gcr.io/google/debian10}:${BASE_OS_TAG:-latest}

COPY base/clean-after-apt.sh /opt/clean-after-apt.sh

Expand Down

0 comments on commit 4775af1

Please sign in to comment.