When running drone exec
on my Windows 10 machine for a maven project, I'm immediately getting an error that doesn't quite have enough information to debug effectively:
> drone exec --local
Running Matrix job #0
500 Internal Server Error: Invalid volume spec "\\drone\\src": Invalid volume destination
path: '\drone\src' mount path must be absolute.
Even the Docker logs don't really give me anything to work with:
[10:46:01.794][ApiProxy ][Info ] proxy >> GET /v1.15/images/busybox:latest/json
[10:46:01.802][ApiProxy ][Info ] Dial Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
[10:46:01.808][ApiProxy ][Info ] Successfully dialed Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
[10:46:01.814][ApiProxy ][Info ] proxy << GET /v1.15/images/busybox:latest/json
[10:46:01.820][ApiProxy ][Info ] proxy >> POST /v1.15/containers/create?name=drone_ambassador_QK2xbay7OiI [rewriteBinds]
[10:46:01.832][ApiProxy ][Info ] proxy >> POST /v1.15/containers/create?name=drone_ambassador_QK2xbay7OiI
[10:46:01.839][ApiProxy ][Info ] Dial Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
[10:46:01.849][ApiProxy ][Info ] Successfully dialed Hyper-V socket 48de0224-c5be-4b4c-9524-ac9c4b61e0e2:23a432c2-537a-4291-bcb5-d62504644739
[10:46:01.855][ApiProxy ][Info ] proxy << POST /v1.15/containers/create?name=drone_ambassador_QK2xbay7OiI
I haven't done anything fancy with the drone configuration, and the only hint of what might be wrong with this is that Drone exec can't handle Windows paths, which seems unlikely considering the complete lack of relevant drone-cli issues.
pipeline:
build:
image: maven:3.3.9-jdk-8-alpine
commands: [ "mvn clean package" ]
I'm looking for two things:
- An option reference for
.drone.yml
to the level ofdocker-compose.yml
. The official documentation doesn't appear to have this anywhere, and seems to expect you to rely on the pseudo-tutorial examples. - Some idea on how I can fix the error that's stopping me from making the best of the
drone exec
functionality and get on with actually using the tools, rather than wasting time fighting against them.
Addendum
Fiddling with the workspace.base
attribute in the config lets me change what it's complaining about, and using a machine-specific absolute path (so useless) gives me a new error. Inputs and results:
workspace:
base: /
Invalid volume spec "/": Invalid specification: destination can't be '/' in '/'
workspace:
base: C:\code\project
C: drive is not shared. Please share it in Docker for Windows Settings
NOTE: It is shared.