Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gcloud as a docker credential helper for all GCP registries. #428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ RUN apt-get install -qqy \
gcc \
python3-pip
RUN git config --system credential.'https://source.developers.google.com'.helper gcloud.sh
RUN gcloud auth configure-docker --quiet --include-artifact-registry
VOLUME ["/root/.config", "/root/.kube"]
1 change: 1 addition & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ RUN ARCH=`cat /tmp/arch` && apk --no-cache upgrade && apk --no-cache add \
gcloud config set metrics/environment github_docker_image && \
gcloud --version
RUN git config --system credential.'https://source.developers.google.com'.helper gcloud.sh
RUN gcloud auth configure-docker --quiet --include-artifact-registry
VOLUME ["/root/.config"]
1 change: 1 addition & 0 deletions debian_component_based/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ RUN if [ `uname -m` = 'x86_64' ]; then echo -n " appctl nomos anthos-auth" >> /t
RUN /google-cloud-sdk/install.sh --bash-completion=false --path-update=true --usage-reporting=false \
--additional-components `cat /tmp/additional_components` && rm -rf /google-cloud-sdk/.install/.backup
RUN git config --system credential.'https://source.developers.google.com'.helper gcloud.sh
RUN gcloud auth configure-docker --quiet --include-artifact-registry
VOLUME ["/root/.config", "/root/.kube"]
1 change: 1 addition & 0 deletions debian_slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ RUN apt-get update -qqy && apt-get -qqy upgrade && apt-get install -qqy \
gcloud --version && \
docker --version
RUN git config --system credential.'https://source.developers.google.com'.helper gcloud.sh
RUN gcloud auth configure-docker --quiet --include-artifact-registry
VOLUME ["/root/.config"]