adjust docker builds

This commit is contained in:
Chris Lu 2018-12-27 15:15:33 -08:00
parent 68028ee876
commit 13715fb851
2 changed files with 2 additions and 1 deletions

View file

@ -25,5 +25,6 @@ VOLUME /data
COPY filer.toml /etc/seaweedfs/filer.toml COPY filer.toml /etc/seaweedfs/filer.toml
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
RUN mkdir -p /data/filerdb
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

View file

@ -33,7 +33,7 @@ case "$1" in
if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then if [ -n "$MASTER_PORT_9333_TCP_ADDR" ] ; then
ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT" ARGS="$ARGS -master=$MASTER_PORT_9333_TCP_ADDR:$MASTER_PORT_9333_TCP_PORT"
fi fi
exec /bin/mkdir -p /data/filerdb; /usr/bin/weed $@ $ARGS exec /usr/bin/weed $@ $ARGS
;; ;;
's3') 's3')