Advertisement
Guest User

docker

a guest
Dec 11th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. RUN git clone -b $branch https://github.com/EOSIO/eos.git --recursive \
  2. && cd eos && echo "$branch:$(git rev-parse HEAD)" > /etc/eosio-version
  3.  
  4. WORKDIR eos
  5.  
  6. # Patch EOS
  7. RUN git clone https://github.com/EOSLaoMao/elasticsearch_plugin.git plugins/elasticsearch_plugin \
  8. && cd plugins/elasticsearch_plugin \
  9. && git submodule update --init --recursive \
  10. && cd ../.. \
  11. && sed -ie '/login_plugin/a add_subdirectory(elasticsearch_plugin)' plugins/CMakeLists.txt \
  12. && sed -ie '/history_plugin.*$/a PRIVATE -Wl,${whole_archive_flag} elasticsearch_plugin -Wl,${no_whole_archive_flag}' programs/nodeos/CMakeLists.txt
  13.  
  14. # Build and install EOS
  15. RUN cmake -H. -B"/tmp/build" -GNinja -DCMAKE_BUILD_TYPE=Release -DWASM_ROOT=/opt/wasm -DCMAKE_CXX_COMPILER=clang++ \
  16. -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/tmp/build -DBUILD_MONGO_DB_PLUGIN=true -DCORE_SYMBOL_NAME=$symbol \
  17. && cmake --build /tmp/build --target install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement