Skip to content

Commit 0126475

Browse files
authored
Update base image of Cloud Build deploy image (#215)
1 parent a51135f commit 0126475

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

cloud_build/firebase-ghcli/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM gcr.io/gcp-runtimes/ubuntu_20_0_4
1+
FROM marketplace.gcr.io/google/debian12
22

3-
# Install github cli
3+
# Install the GitHub cli.
44
RUN apt update && apt install -y \
55
curl \
66
gpg
77
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg;
88
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null;
99
RUN apt update && apt install -y gh;
1010

11-
# Install node and npm
11+
# Install the latest LTS of Node, which also includes npm.
1212
RUN mkdir -p /etc/apt/keyrings
1313
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
1414
ENV NODE_MAJOR=20

cloud_build/firebase-ghcli/README.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
## Summary
2-
This directory contains a Dockerfile that provides access to firebase tools and
3-
the Github CLI. This image is used to deploy various Dart/Flutter websites to
4-
firebase in both production and staging, and is also used to comment on Github
5-
PRs.
62

3+
This directory contains a Dockerfile that provides access to
4+
Node/NPM, Firebase CLI tools, and the GitHub CLI.
5+
This image is used to deploy various Dart/Flutter websites to
6+
Firebase in both production and staging, and is
7+
also used to comment staging links on GitHub PRs.
78

89
## Installed tools
9-
* Github CLI
10+
11+
* GitHub CLI
1012
* Node/NPM
1113
* Firebase Tools
1214

13-
1415
## Additional information
15-
When the dockerfile or cloud build template in this directory is changed in a
16-
PR, the cloud build template is triggered and a new version of the image is
17-
deployed as the latest version in Container Registry under the `flutter-dev`
18-
project in GCP.
16+
17+
When the `Dockerfile` file or `cloudbuild.yaml` template in this directory
18+
are changed in a PR, the cloud build template is triggered and
19+
a new version of the image is deployed as the latest version in
20+
Container Registry under the `flutter-dev` project in GCP.

0 commit comments

Comments
 (0)