
insightsoftware/minioinsightsoftware/hubble_minio
This is a docker image with minio installed. It runs confd to update minio config file at /root/.minio/config.json. Runs supervisor so we can have more than one process, in this case we need at least two, minio itself and confd to configure minio.
SUPERVISOR_CONF: which programs we want supervisor to run, in a json format that will map to a supervisor.conf format. Default is already set in ENV SUPERVISOR_CONF
CONFD_COMMANDS: Which backends and intervals to run in confd in json format. Example '{"backend": "redis -node redis_server_ip:6379", "interval": "10"}'
MINIO_VERSION: Git tag where to get the minio sources from.
MINIO_CONFIG: json string that will generate /root/.minio/config.json. It maps each of the keys to it's configuration as in the example below.
FROM golang:1.6.3-alpine
MAINTAINER Hubble Infrastructure <***>
ENV ALLOW_CONTAINER_ROOT=1 ENV CONFD_VERSION=0.12.0-alpha3 ENV CONFD_SHA1=437524fe3334bd9d0424ed0ece265472e789d19e ENV CONFD_COMMANDS="{}" ENV PYTHON_VERSION=2.7.12-r0 ENV PY_PIP_VERSION=8.1.2-r0 ENV SUPERVISOR_VERSION=3.2.0 ENV MINIO_VERSION="" COPY entrypoint.sh /
RUN apk update \
&& apk add ca-certificates wget git \
&& update-ca-certificates
&& apk add --no-cache bash git openssh
&& wget [] -O /usr/local/bin/confd
&& chmod +x /usr/local/bin/confd
&& echo "$CONFD_SHA1 /usr/local/bin/confd" | sha1sum -c -
&& apk --no-cache add python=$PYTHON_VERSION py-pip=$PY_PIP_VERSION
&& pip install supervisor==$SUPERVISOR_VERSION
&& mkdir /var/log/supervisor
&& rm -rf /etc/supervisor/supervisor.conf
&& mkdir -p /go/src/github.com/minio/minio
&& git clone [] /go/src/github.com/minio/minio
&& cd /go/src/github.com/minio/minio
&& [ -z "$MINIO_VERSION" ] && echo "Getting latest" || git checkout tags/$MINIO_VERSION
&& go-wrapper install \
&& rm -r /go/src
&& chmod +x /entrypoint.sh
COPY etc/supervisor /etc/supervisor COPY etc/confd /etc/confd
ENV SUPERVISOR_CONF='{"programs": [{"program": "minio", "command": "/go/bin/minio server /export", "priotity": "2", "autostart": "true", "autorestart": "true", "startsecs": "20", "stdout_logfile": "/var/log/supervisor/minio.log"}]}'
#Entrypoint ENTRYPOINT ["/entrypoint.sh"]
#Example
docker run -d -p 6379:6379 \ --name redis \ redis docker run -d -p 9000:9000 \ --name hubble_minio \ --link redis:redis \ -e CONFD_COMMANDS='{"backend": "redis -node redis:6379", "interval": "10"}' \ -v /mnt/export/minio1:/export \ insightsoftware/minio:1.0.0
Insert the following key in redis:
docker exec redis redis-cli set /minio/config '{"version": "7", "credential": {"accessKey": "YI7S1CKXB76RGOGT6R8W", "secretKey": "FJ9PWUVNXGPfiI72WMRFepN3LsFgW3MjsxSALroO"}, "region": "us-east-1", "logger": {"file": {"level": "debug"}, "console": {"enable": "true", "level": "debug"}}}'
In maximum 10 seconds confd has picked up the changes, now you should be able to login to Minio Web UI, by accessing in a browser, minio docker container host ip, in port 9000. [***] And you can login with the credentials provided in /minio/config json in redis.

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务