Compare commits

...

8 Commits

Author SHA1 Message Date
Michel Roux 0cbc8254ab Oops 2017-02-07 10:46:44 +01:00
Michel Roux 2155194f6d Find another way 2017-02-07 10:44:55 +01:00
Michel Roux ef6f582b5a Fix my poor JS knowledge 2017-02-07 10:39:08 +01:00
Michel Roux e5e3f94956 Add command to fix symlink 2017-02-07 10:36:21 +01:00
Vincent Weevers dcf4601159 0.0.4 2016-07-15 12:36:08 +02:00
Vincent Weevers 1299f5b071 fix node version typo (0.4.0) 2016-07-15 12:36:03 +02:00
Vincent Weevers de2fd4a2ac 0.0.3 2016-07-15 12:30:42 +02:00
Vincent Weevers bd8e108bf8 tweak motivation paragraph 2016-07-15 12:29:47 +02:00
3 changed files with 7 additions and 3 deletions

View File

@ -162,6 +162,10 @@ class Shares {
else this.vm.addShare(name, hostPath, opts, next)
},
(next) => {
this.vm.command(['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1'], next)
},
(next) => {
this.getFilesystem(name, (err, fs) => {
if (err) return next(err)

View File

@ -1,6 +1,6 @@
{
"name": "docker-share",
"version": "0.0.2",
"version": "0.0.4",
"description": "Share local folders with a Docker Machine VM",
"license": "MIT",
"bin": "bin.js",
@ -23,7 +23,7 @@
"share"
],
"engines": {
"node": ">=0.4.0",
"node": ">=4.0.0",
"npm": ">=2.0.0"
},
"repository": "vweevers/node-docker-share",

View File

@ -6,7 +6,7 @@
## motivation
On Windows with Docker Toolbox, one [can't mount data volumes outside of `C:\Users`](https://github.com/docker/compose/issues/2548). This is especially annoying with Docker Compose and relative data volumes like `.:/code`. To remedy this (without migrating to [Windows 10 with Docker for Windows](https://github.com/docker/compose/issues/2548#issuecomment-232415158)), we can add a project's directory as a VirtualBox shared folder and mount it inside the Docker Machine VM - at the exact same path as on the Windows box so that relative volumes resolve correctly. This tool does this for you (and more, like checking if the share already exists). Its main functionality is roughly equivalent to:
On Windows with Docker Toolbox, one [can't mount data volumes outside of `C:\Users`](https://github.com/docker/compose/issues/2548). This makes the use of Docker Compose and relative data volumes (`.:/code`) rather problematic. As a remedy (when migrating to [Windows 10 with Docker for Windows Beta](https://github.com/docker/compose/issues/2548#issuecomment-232415158) is not an option) we can add a project's directory as a VirtualBox shared folder. Then mount it inside the Docker Machine VM - at the exact same path as on the Windows box so that relative volumes resolve correctly. This tool does this for you (and more, like checking if the share already exists). Its main functionality is roughly equivalent to:
```batch
cd C:\projects\my-project