mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
docker: Fix docker command entry.
This commit is contained in:
8
docker/Dockerfile
Normal file
8
docker/Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
# use "make dockerimage" to build
|
||||
FROM alpine:3.3
|
||||
RUN apk add --no-cache ca-certificates bash
|
||||
ADD minio.dockerimage /minio
|
||||
ADD export /export
|
||||
EXPOSE 9000
|
||||
COPY start.sh /start.sh
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
14
docker/start.sh
Executable file
14
docker/start.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" = 'fs' ]; then
|
||||
if [ -z "$2" ]; then
|
||||
echo "Invalid arguments"
|
||||
echo "Usage: fs <export_dir>"
|
||||
exit 1
|
||||
else
|
||||
/bin/mkdir -p "$2" && /minio init fs "$2" && /minio server
|
||||
fi
|
||||
else
|
||||
echo "Usage: fs <export_dir>"
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user