Dockerfile.mount-rdma 998 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Dockerfile for SeaweedFS Mount with RDMA support
  2. FROM ubuntu:22.04
  3. # Install dependencies
  4. RUN apt-get update && apt-get install -y \
  5. fuse3 \
  6. curl \
  7. wget \
  8. ca-certificates \
  9. procps \
  10. util-linux \
  11. jq \
  12. && rm -rf /var/lib/apt/lists/*
  13. # Create necessary directories
  14. RUN mkdir -p /usr/local/bin /mnt/seaweedfs /var/log/seaweedfs
  15. # Copy SeaweedFS binary (will be built from context)
  16. COPY bin/weed /usr/local/bin/weed
  17. RUN chmod +x /usr/local/bin/weed
  18. # Copy mount helper scripts
  19. COPY scripts/mount-helper.sh /usr/local/bin/mount-helper.sh
  20. RUN chmod +x /usr/local/bin/mount-helper.sh
  21. # Create mount point
  22. RUN mkdir -p /mnt/seaweedfs
  23. # Set up FUSE permissions
  24. RUN echo 'user_allow_other' >> /etc/fuse.conf
  25. # Health check script
  26. COPY scripts/mount-health-check.sh /usr/local/bin/mount-health-check.sh
  27. RUN chmod +x /usr/local/bin/mount-health-check.sh
  28. # Expose mount point as volume
  29. VOLUME ["/mnt/seaweedfs"]
  30. # Default command
  31. CMD ["/usr/local/bin/mount-helper.sh"]