Skip to content

Commit

Permalink
add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhwinter committed Oct 14, 2017
1 parent 7363f75 commit a6408e5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ignore all files without extension
*
!*.*
!*/

Expand Down
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# A image for building/testing brpc
FROM ubuntu:16.04

# prepare env
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
apt-utils \
openssl \
ca-certificates

# install deps
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
g++ \
make \
libssl-dev \
libgflags-dev \
libprotobuf-dev \
libprotoc-dev \
protobuf-compiler \
libleveldb-dev \
libsnappy-dev && \
apt-get clean -y

RUN git clone https://github.com/brpc/brpc.git brpc
RUN cd /brpc && sh config_brpc.sh --headers=/usr/include --libs=/usr/lib && \
make -j "$(nproc)"

0 comments on commit a6408e5

Please sign in to comment.