forked from boscore/bos
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #4 from boscore/master
master
- Loading branch information
Showing
207 changed files
with
8,270 additions
and
59,798 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<!-- PLEASE FILL OUT THE FOLLOWING MARKDOWN TEMPLATE --> | ||
<!-- Give your PR a title that is sufficient to understand what is being changed. --> | ||
|
||
**Change Description** | ||
## Change Description | ||
|
||
<!-- Describe the change you made, the motivation for it, and the impact it will have. Reference issues or pull requests where possible (use '#XX' or 'GH-XX' where XX is the issue or pull request number). --> | ||
|
||
**Consensus Changes** | ||
## Consensus Changes | ||
|
||
<!-- If this PR introduces a change to the validation of blocks in the chain or consensus in general, please describe the impact. --> | ||
|
||
|
||
**API Changes** | ||
## API Changes | ||
|
||
<!-- If this PR introduces API changes, please describe the changes here. What will developers need to know before upgrading to this version? --> | ||
|
||
|
||
**Documentation Additions** | ||
## Documentation Additions | ||
|
||
<!-- List all the information that needs to be added to the documentation after merge. --> |
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
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
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
Oops, something went wrong.