github.com/wayscript/goofys@v0.24.0/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  RUN curl -L -O https://github.com/kahing/catfs/releases/download/v0.8.0/catfs && \
    28      mv catfs /usr/bin && chmod 0755 /usr/bin/catfs
    29  
    30  # ideally I want to clear out all the go deps too but there's no
    31  # way to do that with ADD
    32  ENV PATH=$PATH:/root/go/bin
    33  ADD . /root/go/src/github.com/kahing/goofys
    34  WORKDIR /root/go/src/github.com/kahing/goofys
    35  RUN go get . && make install
    36  
    37  ENTRYPOINT ["/root/go/src/github.com/kahing/goofys/bench/run_bench.sh"]