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

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


The following commit(s) were added to refs/heads/master by this push:
     new a99864d  HDDS-17707. Remove AWS CLI v1 from ozone-runner (#122)
a99864d is described below

commit a99864d09b339f5ddf2dc88e55d64db3405fc3f1
Author: Andrey Yarovoy <[email protected]>
AuthorDate: Thu Nov 12 07:28:37 2026 -0500

    HDDS-17707. Remove AWS CLI v1 from ozone-runner (#122)
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 Dockerfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index a901b73..ef178f3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -74,11 +74,13 @@ RUN set -eux ; \
 
 #For executing inline smoketest
 RUN set -eux ; \
-    pip3 install awscli==1.38.15 robotframework==6.1.1 boto3==1.37.15 ; \
+    pip3 install robotframework==6.1.1 boto3==1.37.15 ; \
     rm -r ~/.cache/pip
 
-# AWS CLI v2 for smoketest (separate from v1, do not overwrite `aws`)
+# AWS CLI v2 for smoketest, as both `aws` and `aws2` (AWS CLI v1 is end of 
life)
 ARG AWS_CLI_V2_VERSION=2.27.50
+# never page output in tests
+ENV AWS_PAGER=""
 RUN set -eux ; \
     ARCH="$(arch)"; \
     case "${ARCH}" in \
@@ -89,9 +91,10 @@ RUN set -eux ; \
     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/aws ; \
     ln -sf /usr/local/aws-cli/v2/bin/aws /usr/local/bin/aws2 ; \
     rm -rf aws awscliv2.zip ; \
-    aws --version ; \
+    aws --version 2>&1 | grep '^aws-cli/2\.' ; \
     aws2 --version
 
 #dumb init for proper init handling


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

Reply via email to