-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (24 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
24 lines (24 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:17.10
RUN apt-get update && apt install -y apt-transport-https ca-certificates software-properties-common && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D4284CDD && \
echo "deb https://repo.iovisor.org/apt/artful artful main" | tee /etc/apt/sources.list.d/iovisor.list && \
apt-get update &&\
apt-get install -y bcc-tools libbcc-examples linux-headers-generic golang git build-essential cmake llvm-3.8 libclang-3.8-dev \
bison python zlib1g-dev libelf-dev flex libedit-dev automake libtool && \
git clone https://github.com/iovisor/bcc.git && \
mkdir bcc/build/
WORKDIR /bcc/build/
RUN git checkout v0.5.0 && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr && \
make && make install && \
mkdir -p /go/src/github.com/cpg1111 /go/pkg/ /go/bin/
WORKDIR /
RUN git clone https://github.com/google/protobuf.git
WORKDIR /protobuf/
RUN ./autogen.sh && \
./configure && make && make install
ENV GOPATH /go/
ENV PATH $PATH:/go/bin/
RUN go get github.com/golang/dep/cmd/...
COPY . /go/src/github.com/cpg1111/pprof-ebpf/
WORKDIR /go/src/github.com/cpg1111/pprof-ebpf/