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 1aa8dee HDDS-13446. Replace goofys with mountpoint-s3 (#50)
1aa8dee is described below
commit 1aa8dee3e97d870106b61736d78030e64ebe71b6
Author: Eric C. Ho <[email protected]>
AuthorDate: Fri Jul 18 18:23:34 2025 +0800
HDDS-13446. Replace goofys with mountpoint-s3 (#50)
---
Dockerfile | 31 +++++++++++++------------------
1 file changed, 13 insertions(+), 18 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 6942568..cca1cc8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,21 +16,6 @@
FROM golang:1.17.8-buster AS go
RUN go install github.com/rexray/gocsi/csc@latest
-# Compile latest goofys for arm64 if necessary, which doesn't have a released
binary
-RUN set -eux ; \
- ARCH="$(arch)"; \
- if [ ${ARCH} = "aarch64" ]; then \
- git clone https://github.com/kahing/goofys.git ; \
- cd goofys ; \
- git checkout 08534b2 ; \
- go build ; \
- mv goofys /go/bin/ ; \
- elif [ ${ARCH} = "x86_64" ]; then \
- curl -L
https://github.com/kahing/goofys/releases/download/v0.24.0/goofys -o
/go/bin/goofys ; \
- else \
- echo "Unsupported architecture: ${ARCH}"; \
- exit 1 ; \
- fi
FROM rockylinux:9.3
RUN set -eux ; \
@@ -57,7 +42,20 @@ RUN set -eux ; \
&& ln -sf /usr/bin/python3 /usr/bin/python
RUN sudo python3 -m pip install --upgrade pip
+# CSI / k8s / fuse / goofys dependency
COPY --from=go /go/bin/csc /usr/bin/csc
+# S3 FUSE support - mountpoint-s3
+ARG MOUNTPOINT_S3_VERSION=1.19.0
+RUN set -eux ; \
+ ARCH="$(arch)"; \
+ case "${ARCH}" in \
+ x86_64) arch='x86_64' ;; \
+ aarch64) arch='arm64' ;; \
+ *) echo "Unsupported architecture: ${ARCH}"; exit 1 ;; \
+ esac; \
+ curl -L
"https://s3.amazonaws.com/mountpoint-s3-release/${MOUNTPOINT_S3_VERSION}/${arch}/mount-s3-${MOUNTPOINT_S3_VERSION}-${arch}.rpm"
-o mount-s3.rpm ; \
+ dnf install -y mount-s3.rpm ; \
+ rm -f mount-s3.rpm
# Install rclone for smoketest
ARG RCLONE_VERSION=1.69.3
@@ -178,9 +176,6 @@ RUN chown hadoop /opt
RUN mkdir -p /etc/security/keytabs && chmod -R a+wr /etc/security/keytabs
COPY --chmod=644 krb5.conf /etc/
-# CSI / k8s / fuse / goofys dependency
-COPY --from=go --chmod=755 /go/bin/goofys /usr/bin/goofys
-
# Create hadoop and data directories. Grant all permission to all on them
RUN mkdir -p /etc/hadoop && mkdir -p /var/log/hadoop && chmod 1777 /etc/hadoop
&& chmod 1777 /var/log/hadoop
ENV OZONE_LOG_DIR=/var/log/hadoop
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]