Skip to content

Commit 6c88cfc

Browse files
authored
HDDS-5045. Add rclone package for robot test (#37)
1 parent 19d55c4 commit 6c88cfc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,19 @@ RUN sudo python3 -m pip install --upgrade pip
5858

5959
COPY --from=go /go/bin/csc /usr/bin/csc
6060

61+
# Install rclone for smoketest
62+
RUN set -eux ; \
63+
ARCH="$(arch)" ; \
64+
case "${ARCH}" in \
65+
x86_64) url='https://downloads.rclone.org/rclone-current-linux-amd64.rpm' ;; \
66+
aarch64) url='https://downloads.rclone.org/rclone-current-linux-arm64.rpm' ;; \
67+
*) echo "Unsupported architecture: ${ARCH}"; exit 1 ;; \
68+
esac; \
69+
curl -L -o /tmp/package.rpm "${url}"; \
70+
dnf install -y /tmp/package.rpm; \
71+
rm -f /tmp/package.rpm
72+
73+
6174
#For executing inline smoketest
6275
RUN set -eux ; \
6376
pip3 install awscli robotframework==6.1.1 boto3 ; \

0 commit comments

Comments
 (0)