Skip to content

Commit e827b8d

Browse files
authored
fix: make Dockerfile OS-agnostic (PSKD-1466) (#605)
* fix: make gcloud install OS-agnostic Signed-off-by: chjmil <[email protected]> * fix: change aws cli install Signed-off-by: chjmil <[email protected]> * fix: update aws install Signed-off-by: chjmil <[email protected]> --------- Signed-off-by: chjmil <[email protected]>
1 parent 1327510 commit e827b8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ RUN apt-get update && apt-get install --no-install-recommends -y gzip wget git j
3434
&& curl -ksLO https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && chmod 755 get-helm-3 \
3535
&& ./get-helm-3 --version v$helm_version --no-sudo \
3636
# AWS
37-
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${aws_cli_version}.zip" -o "awscliv2.zip" \
37+
&& architecture=$(uname -m) \
38+
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-${architecture}-${aws_cli_version}.zip" -o "awscliv2.zip" \
3839
&& unzip awscliv2.zip \
3940
&& ./aws/install \
4041
# AZURE
4142
&& curl -sL https://aka.ms/InstallAzureCLIDeb | bash \
4243
# GCP
4344
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
4445
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \
45-
&& apt-get update && apt-get install --no-install-recommends -y google-cloud-cli:amd64=${gcp_cli_version} \
46+
&& apt-get update && apt-get install --no-install-recommends -y google-cloud-cli:*=${gcp_cli_version} \
4647
&& apt-get install --no-install-recommends -y google-cloud-sdk-gke-gcloud-auth-plugin \
4748
&& apt-get clean \
4849
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)