github.com/yandex-cloud/geesefs@v0.40.9/bench/Dockerfile (about) 1 FROM ubuntu:18.04 2 ARG DEBIAN_FRONTEND=noninteractive 3 RUN apt-get update && \ 4 apt-get -y install --no-install-recommends \ 5 # s3fs dependencies \ 6 automake autotools-dev fuse g++ git libcurl4-gnutls-dev libfuse-dev \ 7 libssl-dev libxml2-dev make pkg-config \ 8 # for running goofys benchmark \ 9 curl python-setuptools python-pip gnuplot-nox imagemagick awscli \ 10 # finally, clean up to make image smaller \ 11 && apt-get clean 12 # goofys graph generation 13 RUN pip install numpy 14 15 WORKDIR /tmp 16 17 ENV PATH=$PATH:/usr/local/go/bin 18 ARG GOVER=1.12.6 19 RUN curl -O https://storage.googleapis.com/golang/go${GOVER}.linux-amd64.tar.gz && \ 20 tar -C /usr/local -xzf go${GOVER}.linux-amd64.tar.gz && \ 21 rm go${GOVER}.linux-amd64.tar.gz 22 23 RUN git clone --depth 1 https://github.com/s3fs-fuse/s3fs-fuse.git && \ 24 cd s3fs-fuse && ./autogen.sh && ./configure && make -j8 > /dev/null && make install && \ 25 cd .. && rm -Rf s3fs-fuse 26 27 # ideally I want to clear out all the go deps too but there's no 28 # way to do that with ADD 29 ENV PATH=$PATH:/root/go/bin 30 ADD . /root/go/src/github.com/yandex-cloud/geesefs 31 WORKDIR /root/go/src/github.com/yandex-cloud/geesefs 32 RUN go get . && make install 33 34 ENTRYPOINT ["/root/go/src/github.com/yandex-cloud/geesefs/bench/run_bench.sh"]