2021-08-24 10:33:26 +00:00
|
|
|
FROM yandex-cloud/k8s-csi-s3:dev
|
2021-07-26 11:54:44 +00:00
|
|
|
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
|
|
|
|
2018-07-29 12:36:41 +00:00
|
|
|
RUN apt-get update && \
|
2019-05-14 19:01:54 +00:00
|
|
|
apt-get install -y \
|
|
|
|
git wget make && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2018-07-16 20:27:45 +00:00
|
|
|
|
2021-04-06 18:52:15 +00:00
|
|
|
ARG GOVERSION=1.16.3
|
|
|
|
RUN wget -q https://golang.org/dl/go${GOVERSION}.linux-amd64.tar.gz && \
|
|
|
|
tar -xf go${GOVERSION}.linux-amd64.tar.gz && \
|
|
|
|
rm go${GOVERSION}.linux-amd64.tar.gz && \
|
2019-05-14 19:01:54 +00:00
|
|
|
mv go /usr/local
|
2018-07-16 20:27:45 +00:00
|
|
|
|
2018-07-29 12:36:41 +00:00
|
|
|
ENV GOROOT /usr/local/go
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
2018-07-14 08:48:22 +00:00
|
|
|
|
2019-05-14 19:01:54 +00:00
|
|
|
RUN wget -q 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
|
|
|
|
2019-03-02 10:03:07 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# prewarm go mod cache
|
|
|
|
COPY go.mod .
|
|
|
|
COPY go.sum .
|
|
|
|
RUN go mod download
|
|
|
|
|
2018-08-03 18:30:46 +00:00
|
|
|
ADD test/test.sh /usr/local/bin
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/test.sh"]
|