-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request EOSIO#44 from boscore/release/2.0.x
Release/2.0.x
- Loading branch information
Showing
73 changed files
with
3,975 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Override default CMAKE_FIND_LIBRARY_SUFFIXES | ||
if (CPPKAFKA_SHARED_LIB) | ||
set(CPPKAFKA_SUFFIX so) | ||
else() | ||
set(CPPKAFKA_SUFFIX a) | ||
endif() | ||
message(STATUS "Cppkafka finding .${CPPKAFKA_SUFFIX} library") | ||
|
||
FIND_PATH( | ||
CPPKAFKA_INCLUDE_DIR cppkafka.h | ||
PATH "/usr/local" | ||
PATH_SUFFIXES "" "cppkafka") | ||
MARK_AS_ADVANCED(CPPKAFKA_INCLUDE_DIR) | ||
|
||
SET(CPPKAFKA_INCLUDE_DIR ${CPPKAFKA_INCLUDE_DIR}) | ||
|
||
FIND_LIBRARY( | ||
CPPKAFKA_LIBRARY | ||
NAMES cppkafka.${CPPKAFKA_SUFFIX} libcppkafka.${CPPKAFKA_SUFFIX} | ||
HINTS ${CPPKAFKA_INCLUDE_DIR}/.. | ||
PATH_SUFFIXES lib${LIB_SUFFIX}) | ||
MARK_AS_ADVANCED(CPPKAFKA_LIBRARY) | ||
|
||
SET(CPPKAFKA_LIBRARY ${CPPKAFKA_LIBRARY}) | ||
message(STATUS "Cppkafka found ${CPPKAFKA_LIBRARY}") | ||
|
||
include(FindPackageHandleStandardArgs) | ||
SET(_CPPKAFKA_REQUIRED_VARS CPPKAFKA_INCLUDE_DIR CPPKAFKA_LIBRARY) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cppkafka DEFAULT_MSG ${_CPPKAFKA_REQUIRED_VARS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM ubuntu:18.04 | ||
|
||
LABEL author="xiaobo <[email protected]>" maintainer="Xiaobo <[email protected]> Huang-Ming Huang <[email protected]>" version="0.1.1" \ | ||
description="This is a base image for building eosio/eos" | ||
LABEL author="xiaobo <[email protected]>" maintainer="Xiaobo <[email protected]> Huang-Ming Huang <[email protected]> Winlin <[email protected]>" version="0.1.2" \ | ||
description="This is a base image for building boscore/bos" | ||
|
||
RUN echo 'APT::Install-Recommends 0;' >> /etc/apt/apt.conf.d/01norecommends \ | ||
&& echo 'APT::Install-Suggests 0;' >> /etc/apt/apt.conf.d/01norecommends \ | ||
|
@@ -56,3 +56,18 @@ RUN git clone --depth 1 -b releases/v3.3 https://github.com/mongodb/mongo-cxx-dr | |
&& make -j$(nproc) \ | ||
&& make install \ | ||
&& cd ../../ && rm -rf mongo-cxx-driver | ||
|
||
RUN git clone --depth 1 -b v0.11.6 https://github.com/boscore/librdkafka.git \ | ||
&& cd librdkafka/ \ | ||
&& cmake -H. -B_cmake_build \ | ||
&& cmake -DRDKAFKA_BUILD_STATIC=1 --build _cmake_build \ | ||
&& cd _cmake_build \ | ||
&& make install \ | ||
&& cd ../../ && rm -rf librdkafka | ||
|
||
RUN git clone --depth 1 -b 0.2 https://github.com/boscore/cppkafka.git \ | ||
&& cd cppkafka/ \ | ||
&& mkdir build && cd build \ | ||
&& cmake -DCPPKAFKA_RDKAFKA_STATIC_LIB=1 -DCPPKAFKA_BUILD_SHARED=0 .. \ | ||
&& make install \ | ||
&& cd ../../ && rm -rf cppkafka |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.