Skip to content

Commit bc37107

Browse files
Add Google Cloud CLI to dev docker image
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent 47bf4cb commit bc37107

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

build/dockerfiles/dev.Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022 Red Hat, Inc.
1+
# Copyright (c) 2022-2026 Red Hat, Inc.
22
# This program and the accompanying materials are made
33
# available under the terms of the Eclipse Public License 2.0
44
# which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -18,6 +18,20 @@ RUN dnf -y install libsecret libX11-devel libxkbcommon \
1818
util-linux-user && \
1919
dnf -y clean all --enablerepo='*'
2020

21+
# Install latest stable gcloud CLI from official RHEL/CentOS repository.
22+
RUN printf '%s\n' \
23+
'[google-cloud-cli]' \
24+
'name=Google Cloud CLI' \
25+
'baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el9-x86_64' \
26+
'enabled=1' \
27+
'gpgcheck=1' \
28+
'repo_gpgcheck=0' \
29+
'gpgkey=https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg' \
30+
> /etc/yum.repos.d/google-cloud-sdk.repo && \
31+
dnf -y install libxcrypt-compat google-cloud-cli && \
32+
dnf -y clean all --enablerepo='*' && \
33+
gcloud --version
34+
2135
COPY --chmod=664 /build/conf/dev/.p10k.zsh /home/user/.p10k.zsh
2236

2337
# zsh support

0 commit comments

Comments
 (0)