Comments (2)
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.
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)
- Where did it sync my files? HOT 7
- case issue with Caskroom HOT 3
- "Connection refused" running docker-osx-dev with docker-machine HOT 1
- docker-osx-dev install: returns "tar: write error: No space left on device" HOT 4
- I had an error 'greadlink: command not found' HOT 5
- No performance increase on 1.11 HOT 2
- /usr/local/bin/docker-osx-dev: line 797: /usr/local/bin/rsync: cannot execute binary file
- OSX rsync permission denied on file change HOT 1
- Couldn't connect to Docker daemon.. HOT 1
- OS X Docker Beta compatibility HOT 12
- docker-osx-dev crashes if current path has a space in it HOT 1
- Constant "Password:" prompts HOT 2
- Halt immediately if dependencies are missing HOT 1
- Running docker-osx-dev changes file owner on my host HOT 11
- Ignore shared folders HOT 1
- Bug introduced with 1a1d6370f6fa75159ace63ce9a8204e0c8c10631: tar: could not chdir to '/engagement-chat' HOT 4
- SSL certificate error on compose up HOT 2
- Error when trying to init docker-osx-dev HOT 5
- It deletes every file created inside docker HOT 1
- Drupal 7 performance boost not improving
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-osx-dev.