Giter VIP home page Giter VIP logo

Comments (5)

idank avatar idank commented on August 20, 2024

Looks like pymongo is pinned to an old version while the mongodb version in docker compose is using the latest image available.

You can try changing pymongo==2.6 to just pymongo in requirements.txt and see if using the latest version of pymongo works. I haven't tested that so if there were breaking changes in the library (I'm going to bet on a yes on this one), that might need to be fixed as well.

from explainshell.

Amueller36 avatar Amueller36 commented on August 20, 2024

I tried out the approach with the pymongo @idank but it didn't help me atleast. Can't look up anything in the local explainshell.

from explainshell.

idank avatar idank commented on August 20, 2024

Ok I fixed a few things and just went through this workflow and it worked for me (pull before):

DB=explainshell-db-1

# download db dump
curl -L -o /tmp/dump.tar.gz https://github.com/idank/explainshell/releases/download/db-dump/archive.tar.gz
tar xzvf /tmp/dump.tar.gz -C /tmp/

# start containers, restore from dump
docker-compose build
docker-compose up
docker cp /tmp/db.backup/ $DB:/tmp/dump
docker exec $DB mongorestore /tmp/dump

Give this a try and let me know if that works for you.

from explainshell.

Amueller36 avatar Amueller36 commented on August 20, 2024

Last command fails for me
image

from explainshell.

idank avatar idank commented on August 20, 2024

Hmm I'm not sure what's going on there with the Windows looking path. Try to exec into the container and see if it copied the files over, something like docker exec -it $DB bash, ls -la /tmp/dump.

from explainshell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.