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 24, 2024
1 parent d431116 commit 17efee4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
7 changes: 5 additions & 2 deletions .github/actions/docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ runs:
run: echo "DOCKER_TAG=ghcr.io/${REPO}/${{inputs.docker_image}}:${GITHUB_BASE_REF%.1+}" >> $GITHUB_ENV
shell: bash
- name: Set up Cloud SDK
if: ${{ (steps.changed-files.outputs.any_changed == 'true') && (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.fork) }}
uses: google-github-actions/setup-gcloud@v1
uses: isarkis/setup-gcloud@40dce7857b354839efac498d3632050f568090b6 # v1.1.1
- name: Configure Docker auth for GCloud
shell: bash
run: |
gcloud auth configure-docker
- name: Set Docker Tag
id: set-docker-tag-presubmit-fork
env:
Expand Down
19 changes: 11 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ x-build-volumes: &build-volumes
- ${STARBOARD_TOOLCHAINS_DIR:-container-starboard-toolchains}:/root/starboard-toolchains

x-build-common-definitions: &build-common-definitions
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
depends_on:
- build-base

Expand Down Expand Up @@ -102,8 +103,9 @@ services:
CONFIG: ${CONFIG:-debug}

linux-x64x11-xenial:
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
build:
context: ./docker/linux
dockerfile: linux-x64x11/Dockerfile
Expand All @@ -115,8 +117,9 @@ services:
scale: 0

linux-x64x11-clang-3-6:
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
build:
context: ./docker/linux/
dockerfile: clang-3-6/Dockerfile
Expand Down Expand Up @@ -236,7 +239,7 @@ services:
environment:
<<: *shared-build-env
PLATFORM: evergreen-arm-softfp-sbversion-12

build-linux-evergreen:
<<: *build-common-definitions
build:
Expand All @@ -248,7 +251,7 @@ services:
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env

unittest:
<<: *common-definitions
build:
Expand Down
2 changes: 1 addition & 1 deletion docker/linux/android/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM cobalt-build-base

RUN apt update -qqy \
&& apt install -qqy --no-install-recommends \
&& apt install -qqy \
binutils \
bison \
default-jdk \
Expand Down
2 changes: 1 addition & 1 deletion docker/linux/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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}

ENV PYTHONUNBUFFERED 1

Expand Down

0 comments on commit 17efee4

Please sign in to comment.