gitlab-build-images/Dockerfile.www-gitlab-com-debian-bullseye-ruby-3.0-node-16
Stan Hu e57a2714eb
Pin gsutil version in www-gitlab-com image
This version pin the Cloud SDK to use gsutil 5.17, which introduced a
bug in requiring that the `storage.buckets.get` permission be
available: https://github.com/GoogleCloudPlatform/gsutil/issues/1663

Pinning this version will avoid unexpected problems such as
https://gitlab.com/gitlab-com/gl-infra/production/-/issues/8262 in the
future.
2023-01-19 09:32:22 -08:00

23 lines
826 B
Docker

ARG GCLOUD_VERSION=413.0.0
# Google-cloud-sdk
#
# gsutil 5.18 unnecessarily requires the storage.buckets.get
# permission: https://github.com/GoogleCloudPlatform/gsutil/issues/1663
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:$GCLOUD_VERSION as gcloud-sdk
FROM ruby:3.0.5-slim-bullseye
# Install Google Cloud SDK for deploys via rsync
COPY --from=gcloud-sdk /usr/lib/google-cloud-sdk /usr/lib/google-cloud-sdk
COPY --from=gcloud-sdk /usr/share/google-cloud-sdk /usr/share/google-cloud-sdk
RUN cd /usr/bin && find ../lib/google-cloud-sdk/bin -type f -executable -exec ln -s {} \;; cd -
ADD /scripts/ /scripts/
ADD /patches /patches/
RUN /scripts/install-www-gitlab-com
# Set UTF-8 http://jaredmarkell.com/docker-and-locales/
# Must be set after install-essentials is run
ENV LANG C.UTF-8
ENV LANGUAGE C
ENV LC_ALL C.UTF-8