Skip to content

Commit 1df1d64

Browse files
committed
fix: properly set JuiceFS mount binary path with channel suffix
Refactored the mount binary installation to explicitly place files at the expected locations with correct channel suffixes (.stable or .beta). This prevents the Python wrapper from attempting to download non-existent files for arm64 architecture. - Explicitly copy mount binaries to /usr/local/juicefs/mount/jfsmount.{stable,beta} - Ensure both amd64 and arm64 architectures use the same naming convention - Fix the auto-download attempt that was failing with 404 errors
1 parent 58e9fc9 commit 1df1d64

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

docker/csi.Dockerfile

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,26 @@ RUN apt-get update && apt-get install -y curl fuse procps iputils-ping strace ip
8282
mkdir /root/.acl && cp /etc/passwd /root/.acl/passwd && cp /etc/group /root/.acl/group && \
8383
ln -sf /root/.acl/passwd /etc/passwd && ln -sf /root/.acl/group /etc/group
8484

85-
RUN jfs_mount_path=${JFS_MOUNT_PATH} && \
86-
bash -c "if [[ '${JFSCHAN}' == beta ]]; then curl -sSL https://static.juicefs.com/release/bin_pkgs/beta_full.tar.gz | tar -xz; jfs_mount_path=${JFS_MOUNT_PATH}.beta; \
87-
else curl -sSL https://static.juicefs.com/release/bin_pkgs/latest_stable_full.tar.gz | tar -xz; jfs_mount_path=${JFS_MOUNT_PATH}.stable; fi;" && \
88-
bash -c "mkdir -p /usr/local/juicefs/mount; if [[ '${TARGETARCH}' == amd64 ]]; then cp Linux/mount.ceph $jfs_mount_path; else cp Linux/mount.aarch64 $jfs_mount_path; fi;" && \
89-
chmod +x ${jfs_mount_path} && cp juicefs.py ${JUICEFS_CLI} && chmod +x ${JUICEFS_CLI}
85+
RUN bash -c "if [[ '${JFSCHAN}' == beta ]]; then \
86+
curl -sSL https://static.juicefs.com/release/bin_pkgs/beta_full.tar.gz | tar -xz; \
87+
mkdir -p /usr/local/juicefs/mount; \
88+
if [[ '${TARGETARCH}' == amd64 ]]; then \
89+
cp Linux/mount.ceph /usr/local/juicefs/mount/jfsmount.beta; \
90+
else \
91+
cp Linux/mount.aarch64 /usr/local/juicefs/mount/jfsmount.beta; \
92+
fi; \
93+
chmod +x /usr/local/juicefs/mount/jfsmount.beta; \
94+
else \
95+
curl -sSL https://static.juicefs.com/release/bin_pkgs/latest_stable_full.tar.gz | tar -xz; \
96+
mkdir -p /usr/local/juicefs/mount; \
97+
if [[ '${TARGETARCH}' == amd64 ]]; then \
98+
cp Linux/mount.ceph /usr/local/juicefs/mount/jfsmount.stable; \
99+
else \
100+
cp Linux/mount.aarch64 /usr/local/juicefs/mount/jfsmount.stable; \
101+
fi; \
102+
chmod +x /usr/local/juicefs/mount/jfsmount.stable; \
103+
fi" && \
104+
cp juicefs.py ${JUICEFS_CLI} && chmod +x ${JUICEFS_CLI}
90105

91106
COPY --from=csi-builder /workspace/bin/juicefs-csi-driver /usr/local/bin/
92107
COPY --from=juicefs-builder /workspace/juicefs/juicefs /usr/local/bin/

0 commit comments

Comments
 (0)