This is an automated email from the ASF dual-hosted git repository.
jojochuang 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 4afff4f HDDS-16466. Add AWS CLI v2 alongside v1 in ozone-runner (#111)
4afff4f is described below
commit 4afff4ffa9c907a3c75f62c66d8d811bce6ff4aa
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)
---
Dockerfile | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/Dockerfile b/Dockerfile
index 3333272..a901b73 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -77,6 +77,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]