Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile
52 changes: 52 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
FROM gcc:7
MAINTAINER Abdul Dakkak <dakkak@illinois.edu>

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
automake \
autoconf \
bison \
flex \
libevent-dev \
libboost-all-dev \
libssl-dev \
libcurl4-openssl-dev \
libdouble-conversion-dev \
libgoogle-glog-dev \
libgflags-dev \
libjemalloc-dev \
libssl-dev \
cmake \
thrift-compiler && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*


ENV FOLLY_SRC=/src/folly
RUN git clone https://github.com/facebook/folly $FOLLY_SRC && cd $FOLLY_SRC && git fetch --all
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use a environment variable (USE_BUNDLED_FOLLY or USE_GIT_FOLLY?) to define to use a versioned package or git branch?

You could refer to cmake external project files, it will try to download and build folly if necessary.

WORKDIR $FOLLY_SRC/folly
RUN autoreconf -ivf && \
./configure --prefix=/usr/local && \
make && \
make -j`nproc` install


ENV LIBRDKAFKA_SRC=/src/librdkafka
RUN git clone https://github.com/edenhill/librdkafka $LIBRDKAFKA_SRC && cd $LIBRDKAFKA_SRC && git fetch --all
WORKDIR $LIBRDKAFKA_SRC
RUN ./configure --prefix=/usr/local && \
make && \
make -j`nproc` install

ENV ZIPKIN_CPP=/src/zipkin-cpp
ENV ZIPKIN_CPP_BUILD=/opt/zipkin-cpp
WORKDIR $ZIPKIN_CPP

ADD . $ZIPKIN_CPP

WORKDIR $ZIPKIN_CPP_BUILD

RUN cmake $ZIPKIN_CPP -DWITH_CURL=ON -DBUILD_DOCS=OFF -DWITH_FPIC=ON

RUN make && \
make -j`nproc` install
2 changes: 1 addition & 1 deletion cmake/InstallRapidJSON.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (NOT RAPIDJSON_FOUND OR USE_BUNDLED_RAPIDJSON)
DOWNLOAD_NAME RapidJSON-${RAPIDJSON_VERSION}.tar.gz
URL https://github.com/miloyip/rapidjson/archive/v${RAPIDJSON_VERSION}.tar.gz
URL_MD5 ${RAPIDJSON_URL_MD5}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> -DRAPIDJSON_BUILD_EXAMPLES=OFF
TEST_COMMAND ""
)

Expand Down