Giter VIP home page Giter VIP logo

Comments (7)

m0ppers avatar m0ppers commented on May 26, 2024

I understand your frustration and I hope I have just commited some stuff that addresses most of your issues:

  1. The history of this thing is as follows. Initially we did a chown as mysql/postgres are doing. We (I) converted it to this strange rwcheck thing because of docker on mac. Some users wanted to mount foxx apps from their mac into the docker container (which is a perfectly valid usecase). The docker 1.10 setup on mac (using an additional virtual machine) didn't allow chowns because the shared folder stuff that it was using simply failed :(

However assuming correct, writable directories is even worse as you just proved so I have reverted that back to chowns.

I need to check if 1.11 fixes the mac issue. Will do so later.

  1. I think the general approach to treat apps and datafiles differentely is ok. I agree that it is a bit more work to handle the 2 volumes but I don't really see a big pain point here.

Assuming a directory layout like this:

/data/postgres
/data/mysql
/data/arangodb/datafiles
/data/arangodb/apps

I can start arangodb using the following volumes:

-v /data/arangodb/datafiles:/var/lib/arangod -v /data/arangodb/apps:/var/lib/arangod-apps

On the host machine I can still simply backup /data

The thing is mysql and postgres don't have any apps but only datafiles.

  1. I had a look at mysql and postgres and they are both handling this. I implemented something similar which supports restoring databases and executing javascript

I did my changes currently for the upcoming 3.0 release. Maybe you could have a look at my changes here:

https://github.com/arangodb/arangodb-docker/blob/official/docker-entrypoint3.sh

from arangodb-docker.

m0ppers avatar m0ppers commented on May 26, 2024

The new "native" docker does indeed fix the chown problem :D I think we are done here. Need to discuss with the team about a backport to 2.x as 3.x is very very close

from arangodb-docker.

christianhuening avatar christianhuening commented on May 26, 2024

Hi folks, you say this problem is fixed, but I can't start ArangoDB on Kubernetes backed by docker 1.13.1 with a volume mounted from an NFS storage. Is this due to me using NFS based storage or is the problem sitll around?

from arangodb-docker.

dothebart avatar dothebart commented on May 26, 2024

do you think its a clever idea to run a database on an NFS storage in first place?

from arangodb-docker.

christianhuening avatar christianhuening commented on May 26, 2024

Nope! But atm we don't have another opportunity.

from arangodb-docker.

dothebart avatar dothebart commented on May 26, 2024

you need a local filesystem for the arangodb data files. Its using mmap to access them, and I don't think that this is supported by the kernel on NFS.

from arangodb-docker.

christianhuening avatar christianhuening commented on May 26, 2024

alright thanks!

from arangodb-docker.

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.