mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add s3 for docker
This commit is contained in:
parent
66d04cb83f
commit
3e899bfc68
|
@ -1,6 +0,0 @@
|
||||||
FROM cydev/go
|
|
||||||
RUN go get github.com/chrislusf/seaweedfs/weed
|
|
||||||
EXPOSE 8080
|
|
||||||
EXPOSE 9333
|
|
||||||
VOLUME /data
|
|
||||||
ENTRYPOINT ["weed"]
|
|
|
@ -17,6 +17,8 @@ EXPOSE 18888
|
||||||
EXPOSE 8888
|
EXPOSE 8888
|
||||||
# master server shared gprc+http port
|
# master server shared gprc+http port
|
||||||
EXPOSE 9333
|
EXPOSE 9333
|
||||||
|
# s3 server http port
|
||||||
|
EXPOSE 8333
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,14 @@ case "$1" in
|
||||||
exec /usr/bin/weed $@ $ARGS
|
exec /usr/bin/weed $@ $ARGS
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
's3')
|
||||||
|
ARGS="-domainName \"$S3_DOMAIN_NAME\" -key.file \"$S3_KEY_FILE\" -cert.file \"$S3_CERT_FILE\""
|
||||||
|
if [ -n "$FILER_PORT_8888_TCP_ADDR" ] ; then
|
||||||
|
ARGS="$ARGS -filer=$FILER_PORT_8888_TCP_ADDR:$FILER_PORT_8888_TCP_PORT"
|
||||||
|
fi
|
||||||
|
exec /usr/bin/weed $@ $ARGS
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
exec /usr/bin/weed $@
|
exec /usr/bin/weed $@
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue