From b143c503118babb53a94287fc974a20548794cd5 Mon Sep 17 00:00:00 2001 From: zwwhdls Date: Fri, 28 Jul 2023 17:48:17 +0800 Subject: [PATCH] fix ee gluster image --- docker/ee.juicefs.Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/ee.juicefs.Dockerfile b/docker/ee.juicefs.Dockerfile index beb4efa936..a79f8c2618 100644 --- a/docker/ee.juicefs.Dockerfile +++ b/docker/ee.juicefs.Dockerfile @@ -18,11 +18,16 @@ ARG JFSCHAN WORKDIR /app +ARG TARGETARCH ENV JUICEFS_CLI=/usr/bin/juicefs ENV JFS_MOUNT_PATH=/usr/local/juicefs/mount/jfsmount ENV JFSCHAN=${JFSCHAN} -RUN apt-get update && apt-get install -y librados2 curl fuse procps iputils-ping strace iproute2 net-tools tcpdump lsof && \ +RUN apt update && apt install -y software-properties-common wget gnupg gnupg2 && bash -c "if [[ ${TARGETARCH} == amd64 ]]; then wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | apt-key add - && \ + echo deb [arch=${TARGETARCH}] https://download.gluster.org/pub/gluster/glusterfs/7/LATEST/Debian/buster/${TARGETARCH}/apt buster main > /etc/apt/sources.list.d/gluster.list && \ + apt-get update && apt-get install -y uuid-dev libglusterfs-dev glusterfs-common; fi" + +RUN apt-get update && apt-get install -y librados2 curl fuse procps iputils-ping strace iproute2 net-tools tcpdump lsof librados-dev libcephfs-dev librbd-dev && \ rm -rf /var/cache/apt/* && \ curl -sSL https://juicefs.com/static/juicefs -o ${JUICEFS_CLI} && chmod +x ${JUICEFS_CLI} && \ mkdir -p /root/.juicefs && \