Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

feat(docker): add mongo_db_plugin support to docker #2318

Merged
merged 1 commit into from Apr 11, 2018
Merged

feat(docker): add mongo_db_plugin support to docker #2318

merged 1 commit into from Apr 11, 2018

Conversation

Akagi201
Copy link
Contributor

Make Docker image support mongo_db_plugin.
Reference the options from the script https://github.com/EOSIO/eos/blob/master/scripts/eosio_build_ubuntu.sh

@heifner heifner merged commit 6d17e08 into EOSIO:master Apr 11, 2018
@masato25
Copy link

HI, I got a problem when i build docker image. those error message are below:

CMake Error at plugins/mongo_db_plugin/CMakeLists.txt:22 (find_package):
  By not providing "Findlibbsoncxx-static.cmake" in CMAKE_MODULE_PATH this                                                                                                                  
  project has asked CMake to find a package configuration file provided by                                                                                                                  
  "libbsoncxx-static", but CMake did not find one.

  Could not find a package configuration file provided by "libbsoncxx-static"
  with any of the following names:

    libbsoncxx-staticConfig.cmake
    libbsoncxx-static-config.cmake

  Add the installation prefix of "libbsoncxx-static" to CMAKE_PREFIX_PATH or
  set "libbsoncxx-static_DIR" to a directory containing one of the above
  files.  If "libbsoncxx-static" provides a separate development package or
  SDK, be sure it has been installed.

I found the problem was the option -> "-DBUILD_MONGO_DB_PLUGIN=true". when I removed this, then image can built succeeded. I'm not sure do this only happen on my machine or it's a problem that need fix it.

@Akagi201
Copy link
Contributor Author

@masato25 hello, You should update/rebuild your eosio/builder, then build the docker.

@masato25
Copy link

@Akagi201 thanks for your response.

yes, if i run docker-compose build builder first, then do docker build . -t eosio/eos. the problem is solved.

@tinyhill666
Copy link

run mongo_db_plugin in docker error

tag: dawn3x
image id: 642c444da9ab

1005458ms thread-0   main.cpp:97                   main                 ] /eos/libraries/appbase/application.cpp(290): Throw in function appbase::abstract_plugin &appbase::application::get_plugin(const string &) const
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
std::exception::what: unable to find plugin: eosio::mongo_db_plugin

@mosjin
Copy link

mosjin commented Jun 5, 2019

@masato25Your ideas also works for me, but whether there is any bad effect ...?!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants