Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RUN git clone -b $branch https://github.com/EOSIO/eos.git --recursive \
- && cd eos && echo "$branch:$(git rev-parse HEAD)" > /etc/eosio-version
- WORKDIR eos
- # Patch EOS
- RUN git clone https://github.com/EOSLaoMao/elasticsearch_plugin.git plugins/elasticsearch_plugin \
- && cd plugins/elasticsearch_plugin \
- && git submodule update --init --recursive \
- && cd ../.. \
- && sed -ie '/login_plugin/a add_subdirectory(elasticsearch_plugin)' plugins/CMakeLists.txt \
- && sed -ie '/history_plugin.*$/a PRIVATE -Wl,${whole_archive_flag} elasticsearch_plugin -Wl,${no_whole_archive_flag}' programs/nodeos/CMakeLists.txt
- # Build and install EOS
- RUN cmake -H. -B"/tmp/build" -GNinja -DCMAKE_BUILD_TYPE=Release -DWASM_ROOT=/opt/wasm -DCMAKE_CXX_COMPILER=clang++ \
- -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/tmp/build -DBUILD_MONGO_DB_PLUGIN=true -DCORE_SYMBOL_NAME=$symbol \
- && cmake --build /tmp/build --target install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement