-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_CentOS
More file actions
22 lines (16 loc) · 845 Bytes
/
Dockerfile_CentOS
File metadata and controls
22 lines (16 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM centos:centos7.8.2003
ENV SecretAccessKey 8zp2e4uEvgBoKruR
ENV AccessSecretKeyID RM3YFx51XEYTZ9g2
#ARG MinioServer http://localhost:9000
RUN yum update -y && yum install wget -y
RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio && chmod +x minio && mv minio /bin/minio
ENV MINIO_UPDATE off
ENV MINIO_ACCESS_KEY ${SecretAccessKey}
ENV MINIO_SECRET_KEY ${AccessSecretKeyID}
#COPY mc/config.json /root/.mc/config.json
#Install and configure Minio Client:
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && mv mc /bin/mc
# minio config host add minio ${MinioServer} ${SecretAccessKey} ${AccessSecretKeyID} && \
# mc ls minio && mc mb minio/test-bucket001 && mc mb minio/test-bucket002 && mc mb minio/test-bucket003
EXPOSE 9000
ENTRYPOINT ["minio", "server", "--address", ":80", "/data"]