Code Monkey home page Code Monkey logo

Comments (11)

carueda avatar carueda commented on June 30, 2024

First off, great to see AllegroGraph available via Docker!

Not sure how similar my own observation is with @arademaker's, but I'm looking into using the agraph container and was actually expecting to be able to specify a host volume for my data directly (eg., something like -v /my/data/dir:/data, not another container. What specifically would be the benefit of using a container for the data if in general you want the data to be on the host machine? I've been a long time (and happy) AllegroGraph user, but I'm just starting with Docker, so apologies if any of this doesn't make much sense. I'd appreciate any clarifications of course in the context of AllegroGraph.

from docker-agraph.

franzinc avatar franzinc commented on June 30, 2024

Information added to the documentation on data volumes.

@carueda the host volumes only work on Linux and that's not our market for this. Mac and Windows are, and they don't work there. See the new documentation and let us know (at [email protected]) if you have more questions. We don't really answer the questions here with regularity.

from docker-agraph.

arademaker avatar arademaker commented on June 30, 2024

@franzinc host volumes work on Mac too! I am using them. @carueda , you are thinking only in your devel environment. Once you need to upload the containers to a cloud service like IBM Bluemix or others, you will need a data volume to make your data persistent.

I am still missing more information in the README file of this repo. The run.sh script is not using the data container created my the make command.

from docker-agraph.

franzinc avatar franzinc commented on June 30, 2024

@arademaker I misspoke. The example @carueda gave, which was -v /my/data/dir:/data will not work on Mac or Windows. This use of -v is mapping a local directory to be available inside the agraph container.

You are right, the run.sh script isn't as up to date as the docs. I'll do that.

from docker-agraph.

franzinc avatar franzinc commented on June 30, 2024

run.sh updated.

from docker-agraph.

carueda avatar carueda commented on June 30, 2024

Thanks @arademaker and @franzinc .

Just couple of additional "quick" comments; I appreciate your time so no need to reply as I still need to learn more in Docker land.

  • Right, I'm still more focused on development so no persistence is OK for now.
  • Although I use MacOS for development, my question was in fact in the context of Linux, but I do note that "...Linux ...'s not our market for this."
  • "-v ... will not work on Mac or Windows." Is it because of some limitation in VirtualBox, perhaps the same or similar to the one that prevents one from using it for MongoDB?

from docker-agraph.

franzinc avatar franzinc commented on June 30, 2024

-v mapping a local (OS X) directory doesn't work because the VirtualBox layer doesn't support it. The local data container works, though, since that is a native Linux filesystem inside the container.

I'm unfamiliar with the MongoDB issue. I would assume they could use a data container.

from docker-agraph.

arademaker avatar arademaker commented on June 30, 2024

@franzinc you are wrong, sorry! The -v options is working on my Mac! I am using a container running ubuntu and with a host directory mounted in the container !

from docker-agraph.

carueda avatar carueda commented on June 30, 2024

@franzinc I've actually been using -v with VirtualBox on Mac without any problem (but not for MongoDB).

It is under particular services (like MongoDB) where -v won't work apparently because, at least in part, of a long known VirtualBox limitations.

From: https://hub.docker.com/_/mongo/

WARNING (Windows & OS X): The default Docker setup on Windows and OS X uses a VirtualBox VM to host the Docker daemon. Unfortunately, the mechanism VirtualBox uses to share folders between the host system and the Docker container is not compatible with the memory mapped files used by MongoDB (see vbox bug, docs.mongodb.org and related jira.mongodb.org bug). This means that it is not possible to run a MongoDB container with the data directory mapped to the host.

from docker-agraph.

franzinc avatar franzinc commented on June 30, 2024

@carueda @arademaker That's pretty strange, since I remember reading statements to the contrary, but I give.

Thanks, @carueda for the MongoDB reference. Yes, I think AllegroGraph uses the memory mapped files, too.

Btw, I'm off for a couple of days, so I'll read/reply Monday.

from docker-agraph.

arademaker avatar arademaker commented on June 30, 2024

Any update here?

from docker-agraph.

Related Issues (9)

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.