You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

  1. FROM frolvlad/alpine-glibc
  2. # Supercronic install settings
  3. ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.8/supercronic-linux-amd64 \
  4. SUPERCRONIC=supercronic-linux-amd64 \
  5. SUPERCRONIC_SHA1SUM=be43e64c45acd6ec4fce5831e03759c89676a0ea
  6. # Install SeaweedFS and Supercronic ( for cron job mode )
  7. # Tried to use curl only (curl -o /tmp/linux_amd64.tar.gz ...), however it turned out that the following tar command failed with "gzip: stdin: not in gzip format"
  8. RUN apk add --no-cache --virtual build-dependencies --update wget curl ca-certificates && \
  9. wget -P /tmp https://github.com/$(curl -s -L https://github.com/chrislusf/seaweedfs/releases/latest | egrep -o 'chrislusf/seaweedfs/releases/download/.*/linux_amd64.tar.gz') && \
  10. tar -C /usr/bin/ -xzvf /tmp/linux_amd64.tar.gz && \
  11. curl -fsSLO "$SUPERCRONIC_URL" && \
  12. echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - && \
  13. chmod +x "$SUPERCRONIC" && \
  14. mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" && \
  15. ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic && \
  16. apk del build-dependencies && \
  17. rm -rf /tmp/*
  18. # volume server gprc port
  19. EXPOSE 18080
  20. # volume server http port
  21. EXPOSE 8080
  22. # filer server gprc port
  23. EXPOSE 18888
  24. # filer server http port
  25. EXPOSE 8888
  26. # master server shared gprc port
  27. EXPOSE 19333
  28. # master server shared http port
  29. EXPOSE 9333
  30. # s3 server http port
  31. EXPOSE 8333
  32. RUN mkdir -p /data/filerdb
  33. VOLUME /data
  34. COPY filer.toml /etc/seaweedfs/filer.toml
  35. COPY entrypoint.sh /entrypoint.sh
  36. RUN chmod +x /entrypoint.sh
  37. ENTRYPOINT ["/entrypoint.sh"]