Closed looztra closed 6 years ago
Your volume option might not be correct because of path transformations applied by msys (which is part of git bash). Could you try removing the leading slash from the host path and prepending the whole command by MSYS_NO_PATHCONV=1
?
If that still gives a folder then it must be some kind of docker for windows bug, right?
works fine like this:
christopher@looz8 MINGW64 ~/workspace/Formation--Modele-cfk (docker_win10_exp)
$ MSYS_NO_PATHCONV=1 docker run --rm -v /c/Users/christopher/workspace/Formation--Modele-cfk/Gruntfile.js:/data/Gruntfile.js -v /c/Users/christopher/workspace/Formation--Modele-cfk/Slides/:/data/Slides/ -v /c/Users/christopher/workspace/Formation--Modele-cfk/package.json:/data/package.json -v /c/Users/christopher/workspace/Formation--Modele-cfk/CahierExercices:/data/CahierExercices -v /c/Users/christopher/workspace/Formation--Modele-cfk/PDF:/data/PDF zenika/formation-framework:v3 grunt pdf
Running "sed:title" (sed) task
/data/node_modules/zenika-formation-framework/index.html
Running "sed:version" (sed) task
Running "sed:dist" (sed) task
/data/node_modules/zenika-formation-framework/app.yaml
Running "sed:description" (sed) task
/data/node_modules/zenika-formation-framework/summary.html
Running "sed:slidesPdf" (sed) task
/data/node_modules/zenika-formation-framework/summary.html
Running "sed:cahierExercicesPdf" (sed) task
/data/node_modules/zenika-formation-framework/summary.html
Running "sed:github" (sed) task
/data/node_modules/zenika-formation-framework/summary.html
Running "sed:homepage" (sed) task
/data/node_modules/zenika-formation-framework/summary.html
Running "connect:print" (connect) task
Started connect web server on http://0.0.0.0:8000
Running "doGenerateSlidesPDF" task
Running "generateCahierExercice" task
Using CSS file /data/node_modules/zenika-formation-framework/styleCahierExercice.css
Using highlightPath file /data/node_modules/zenika-formation-framework/reveal/theme-zenika/code.css
Using md sources files [ '/data/CahierExercices/Cahier.md' ]
17.12.0-ce-win45 (15017)
When I go inside the container thx to a bash shell:
looks like mounting files as volumes under docker for windows does not work (anymore?) because
/data/Gruntfile.js
is a directory and not a file like expected