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