Giter VIP home page Giter VIP logo

Comments (2)

brikis98 avatar brikis98 commented on June 18, 2024

Yea, you're right. I'm using greadlink to convert paths to absolute paths, but that also resolves symlinks.

I'm not sure on the best solution, but am open to ideas.

from docker-osx-dev.

JKrag avatar JKrag commented on June 18, 2024

I haven't thought this through in detail, but for the sake of discussion, we should look at two separate questions.
a) What is the best behaviour regarding paths outside of the synced folder, i.e. pwd. Based solely on my own current use case, I would prefer that my actual current path (= pwd) is the one that is reflected into boot2docker, so that in the normal case where I run docker-osx-dev in my current project, then docker -v $(pwd):.... actually works as expected, which I guess is the whole point in mapping the folders 1-to-1 with absolute path inside the b2d.

b) What is the best behaviour with regards to the files actually synced into b2d? In this case, my first gut feeling would be to preserve everything as close as possible to what it really is locally, as this provides the best testing and flexibility. But as far as I can see, this is already the behaviour you chose using rsync --archive, which implicitly includes -l (i.e. preserve symlinks as symlinks).

Hope this makes at least some sense.

As said, I haven't thought it through in detail, so there might be very valid reasons to keep the existing behaviour for a) as well.

from docker-osx-dev.

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.