ort: [docker] failed on windows
Hi,
I try to use ORT with docker on windows …
I run “docker/run.sh xxx” on git bash and I get this error of path (with ;C at the end):
$ docker/run.sh "-v /c/workspace/POCs/MOB_ORT/my-gateway-web:/project" analyze -i /project/server -o /project/ort/analyzer-server
cat: /c/workspace/POCs/MOB_ORT/docker/oss-review-toolkit/model/src/main/resources/VERSION: No such file or directory
Building ORT...
Sending build context to Docker daemon 2.56kB
Step 1/2 : FROM frolvlad/alpine-java:jdk8-slim
---> 666b9799aa2a
Step 2/2 : RUN apk add --no-cache libstdc++
---> Using cache
---> c3f453a829ce
Successfully built c3f453a829ce
Successfully tagged ort-build:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
No Gradle daemons are running.
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Mount denied:
The source path "C:/Program Files/Git/etc/group;C"
doesn't exist and is not known to Docker.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
Failed to build ORT.
I go on my test with setting an env var : export MSYS_NO_PATHCONV=1
(maybe an note in the readme will be appreciate by windows users 😃 )
after this, the path error is gone, but the build failed :
$ docker/run.sh "-v /c/workspace/POCs/MOB_ORT/my-gateway-web:/project" analyze -i /project/server -o /project/ort/analyzer-server
cat: /c/workspace/POCs/MOB_ORT/docker/oss-review-toolkit/model/src/main/resources/VERSION: No such file or directory
Building ORT...
Sending build context to Docker daemon 2.56kB
Step 1/2 : FROM frolvlad/alpine-java:jdk8-slim
---> 666b9799aa2a
Step 2/2 : RUN apk add --no-cache libstdc++
---> Using cache
---> c3f453a829ce
Successfully built c3f453a829ce
Successfully tagged ort-build:latest
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
No Gradle daemons are running.
': No such file or directory
Failed to build ORT.
any idea ?
Regards
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- gitattributes: Checkout shell scripts with Unix line endings To avoid e.g. issues with Docker as described at https://github.com/heremaps/oss-review-toolkit/issues/2084#issuecomment-575563566. Signe... — committed to oss-review-toolkit/ort by sschuberth 4 years ago
- gitattributes: Checkout shell scripts with Unix line endings To avoid e.g. issues with Docker as described at https://github.com/heremaps/oss-review-toolkit/issues/2084#issuecomment-575563566. Signe... — committed to oss-review-toolkit/ort by sschuberth 4 years ago
- gitattributes: Checkout shell scripts with Unix line endings To avoid e.g. issues with Docker as described at https://github.com/heremaps/oss-review-toolkit/issues/2084#issuecomment-575563566. Signe... — committed to oss-review-toolkit/ort by sschuberth 4 years ago
- gitattributes: Checkout shell scripts with Unix line endings To avoid e.g. issues with Docker as described at https://github.com/heremaps/oss-review-toolkit/issues/2084#issuecomment-575563566. Signe... — committed to oss-review-toolkit/ort by sschuberth 4 years ago
So, good to close this issue?
I found the problem for
scripts/import_proxy_certs.sh: line 45: syntax error: unexpected word (expecting "do")I was a problem of eol ! I change crlf to lf for the script file used and gradlew. I think you can add these lines in.gitattributesI go on the test