github.com/StarfishStorage/goofys@v0.23.2-0.20200415030923-535558486b34/bench/Dockerfile.azure (about)

     1  FROM ubuntu:18.04
     2  ARG DEBIAN_FRONTEND=noninteractive
     3  RUN apt-get update && \
     4      apt-get -y install --no-install-recommends git fuse \
     5              # blobfuse dependencies \
     6  	    pkg-config libfuse-dev cmake libcurl4-gnutls-dev libgnutls28-dev uuid-dev \
     7  	    libgcrypt20-dev gcc g++ \
     8              # for running goofys benchmark \
     9              curl python-setuptools python-pip gnuplot-nox imagemagick \
    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  ARG MAKEFLAGS=-j8
    24  RUN git clone --depth 1 https://github.com/Azure/azure-storage-fuse.git && \
    25      cd azure-storage-fuse && ./build.sh > /dev/null && make -C build install && \
    26      cd .. && rm -Rf azure-storage-fuse
    27  
    28  RUN curl -L -O https://github.com/kahing/catfs/releases/download/v0.8.0/catfs && \
    29      mv catfs /usr/bin && chmod 0755 /usr/bin/catfs
    30  
    31  # ideally I want to clear out all the go deps too but there's no
    32  # way to do that with ADD
    33  ENV PATH=$PATH:/root/go/bin
    34  ADD . /root/go/src/github.com/kahing/goofys
    35  WORKDIR /root/go/src/github.com/kahing/goofys
    36  RUN go get . && make install
    37  
    38  ENTRYPOINT ["/root/go/src/github.com/kahing/goofys/bench/run_bench.sh"]