24 lines
694 B
Docker
24 lines
694 B
Docker
FROM golang:1.16-buster
|
|
|
|
LABEL maintainers="Vitaliy Filippov <vitalif@yourcmc.ru>"
|
|
LABEL description="csi-s3 testing image"
|
|
|
|
# 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
|
|
|
|
RUN git clone --depth=1 https://github.com/minio/minio
|
|
RUN cd minio && go build && mv minio /usr/local/bin
|
|
|
|
WORKDIR /build
|
|
|
|
# prewarm go mod cache
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
RUN go mod download
|
|
|
|
RUN wget https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-amd64 \
|
|
-O /usr/bin/geesefs && chmod 755 /usr/bin/geesefs
|
|
|
|
ENTRYPOINT ["/build/test/test.sh"]
|