2018-07-22 20:08:48 +00:00
|
|
|
FROM golang:stretch
|
|
|
|
LABEL maintainers="Cyrill Troxler <cyrilltroxler@gmail.com>"
|
|
|
|
LABEL description="s3 fuse csi plugin"
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2018-07-26 20:46:30 +00:00
|
|
|
s3fs \
|
2018-07-22 20:08:48 +00:00
|
|
|
build-essential \
|
|
|
|
autoconf \
|
|
|
|
libcurl4-openssl-dev \
|
|
|
|
libfuse-dev \
|
|
|
|
libexpat1-dev \
|
|
|
|
libssl-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
xfsprogs \
|
|
|
|
psmisc \
|
2018-07-26 20:46:30 +00:00
|
|
|
git && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2018-07-22 20:08:48 +00:00
|
|
|
|
|
|
|
RUN git clone https://github.com/archiecobbs/s3backer.git ./s3backer
|
|
|
|
|
|
|
|
WORKDIR "./s3backer"
|
|
|
|
|
|
|
|
RUN ["./autogen.sh"]
|
|
|
|
RUN ["./configure"]
|
|
|
|
RUN ["make"]
|
|
|
|
RUN ["make", "install"]
|
|
|
|
|
|
|
|
RUN go get -u github.com/minio/minio && go install github.com/minio/minio/cmd
|
|
|
|
|
|
|
|
CMD ["/go/src/github.com/ctrox/csi-s3-driver/test/test.sh"]
|