k8s-csi-s3/test/Dockerfile

25 lines
694 B
Text
Raw Permalink Normal View History

2021-10-27 18:54:18 +00:00
FROM golang:1.16-buster
LABEL maintainers="Vitaliy Filippov <vitalif@yourcmc.ru>"
2018-07-29 12:49:35 +00:00
LABEL description="csi-s3 testing image"
2018-07-16 20:27:45 +00:00
2021-10-27 18:54:18 +00:00
# Minio download servers are TERRIBLY SLOW as of 2021-10-27
#RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio && \
# chmod +x minio && \
# mv minio /usr/local/bin
2018-07-14 08:48:22 +00:00
2021-10-27 18:54:18 +00:00
RUN git clone --depth=1 https://github.com/minio/minio
RUN cd minio && go build && mv minio /usr/local/bin
2018-07-14 08:48:22 +00:00
2021-10-27 18:54:18 +00:00
WORKDIR /build
2019-03-02 10:03:07 +00:00
# prewarm go mod cache
COPY go.mod .
COPY go.sum .
RUN go mod download
2021-10-27 18:54:18 +00:00
RUN wget https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-amd64 \
-O /usr/bin/geesefs && chmod 755 /usr/bin/geesefs
2021-10-27 18:54:18 +00:00
ENTRYPOINT ["/build/test/test.sh"]