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

toolbox-cloud-cli: Add gcloud & doctl cli #41

Merged
merged 1 commit into from
Feb 12, 2024
Merged
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
17 changes: 17 additions & 0 deletions toolbox-cloud-cli/Containerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
FROM registry.fedoraproject.org/fedora-toolbox:39

# Can not use herdocs here until GitHub workflows move to a newer Ubuntu
# release with a newer buildah:
# - https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
# - https://github.com/containers/buildah/issues/3474
COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo

# - Install cloud cli tools
# - Remove mlocate
RUN dnf -y distrosync && \
dnf -y install \
awscli \
azure-cli \
google-cloud-cli \
oci-cli \
vim \
zsh \
&& \
dnf -y remove mlocate && \
dnf clean all

ARG DOCTL_URL="https://github.com/digitalocean/doctl/releases/download/v1.104.0/doctl-1.104.0-linux-amd64.tar.gz"
ARG DOCTL_SHA256SUMS="f758b0c2fb7857db2bd00439155154f2ab8bee71c4f3640f90f64ec35256ca53 doctl-1.104.0-linux-amd64.tar.gz"

# Manually install doctl
RUN wget "${DOCTL_URL}" && \
echo "${DOCTL_SHA256SUMS}" | sha256sum --check && \
tar xf doctl-*-linux-amd64.tar.gz && \
rm doctl-*-linux-amd64.tar.gz && \
install -o 0 -g 0 -m 755 doctl /usr/local/bin/doctl

# No need to clear the output as we will never use ZSH as a login shell and
# this clears output when exiting toolboxes.
RUN sed -i '/clear/d' /etc/zlogout
7 changes: 7 additions & 0 deletions toolbox-cloud-cli/google-cloud-sdk.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[google-cloud-cli]
name=Google Cloud CLI
baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el9-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
Loading