This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch jdk8
in repository https://gitbox.apache.org/repos/asf/ozone-docker-runner.git

commit cbbd22f959525bc687db3ee3d5bca3f2b64a334f
Author: sreejasahithi <[email protected]>
AuthorDate: Tue Sep 22 11:59:10 2026 +0530

    HDDS-16466. Add AWS CLI v2 alongside v1 in ozone-runner (#111)
    
    (cherry picked from commit 4afff4ffa9c907a3c75f62c66d8d811bce6ff4aa)
---
 Dockerfile | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 61688b4..768b11b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -46,6 +46,23 @@ RUN set -eux ; \
     pip3 install awscli==1.38.15 robotframework==6.1.1 boto3==1.37.15 ; \
     rm -r ~/.cache/pip
 
+# AWS CLI v2 for smoketest (separate from v1, do not overwrite `aws`)
+ARG AWS_CLI_V2_VERSION=2.27.50
+RUN set -eux ; \
+    ARCH="$(arch)"; \
+    case "${ARCH}" in \
+        x86_64)  arch='x86_64' ;; \
+        aarch64) arch='aarch64' ;; \
+        *) echo "Unsupported architecture: ${ARCH}"; exit 1 ;; \
+    esac; \
+    curl -L 
"https://awscli.amazonaws.com/awscli-exe-linux-${arch}-${AWS_CLI_V2_VERSION}.zip";
 -o awscliv2.zip ; \
+    unzip -q awscliv2.zip ; \
+    ./aws/install -i /usr/local/aws-cli/v2 -b /usr/local/aws-cli/v2/bin ; \
+    ln -sf /usr/local/aws-cli/v2/bin/aws /usr/local/bin/aws2 ; \
+    rm -rf aws awscliv2.zip ; \
+    aws --version ; \
+    aws2 --version
+
 #dumb init for proper init handling
 RUN set -eux ; \
     ARCH="$(arch)"; \


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to