Dockerfile.rocksdb_large_local 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. FROM chrislusf/rocksdb_dev_env as builder
  2. # build SeaweedFS
  3. RUN mkdir -p /go/src/github.com/seaweedfs/
  4. ADD . /go/src/github.com/seaweedfs/seaweedfs
  5. RUN ls -al /go/src/github.com/seaweedfs/ && \
  6. cd /go/src/github.com/seaweedfs/seaweedfs/weed \
  7. && export LDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(git rev-parse --short HEAD)" \
  8. && go install -tags "5BytesOffset rocksdb" -ldflags "-extldflags -static ${LDFLAGS}"
  9. FROM alpine AS final
  10. LABEL author="Chris Lu"
  11. COPY --from=builder /go/bin/weed /usr/bin/
  12. RUN mkdir -p /etc/seaweedfs
  13. COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/filer_rocksdb.toml /etc/seaweedfs/filer.toml
  14. COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/entrypoint.sh /entrypoint.sh
  15. RUN apk add fuse snappy gflags tmux
  16. # volume server gprc port
  17. EXPOSE 18080
  18. # volume server http port
  19. EXPOSE 8080
  20. # filer server gprc port
  21. EXPOSE 18888
  22. # filer server http port
  23. EXPOSE 8888
  24. # master server shared gprc port
  25. EXPOSE 19333
  26. # master server shared http port
  27. EXPOSE 9333
  28. # s3 server http port
  29. EXPOSE 8333
  30. # webdav server http port
  31. EXPOSE 7333
  32. RUN mkdir -p /data/filer_rocksdb
  33. VOLUME /data
  34. WORKDIR /data
  35. RUN chmod +x /entrypoint.sh
  36. ENTRYPOINT ["/entrypoint.sh"]