Error running `drone exec` on Windows 10

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:

  • Docker disk usage
  • How to set environment variables via env-file
  • Unable to SSH to a docker container from docker host
  • Elastic Beanstalk local environment (with Docker) connection refused
  • HttpClient request on networked docker container
  • how to securely connect to a mysql server running on a virtual machine
  • [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:

    1. An option reference for .drone.yml to the level of docker-compose.yml. The official documentation doesn’t appear to have this anywhere, and seems to expect you to rely on the pseudo-tutorial examples.
    2. 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.

  • Docker External File Access Not in /Users/ on OSX
  • why do my docker containers on SLES 12 take 2x memory compared to Ubuntu?
  • How to resolve docker machine ip address to a DNS?
  • returned a non-zero code: 2 on EVERY SINGLE COMMAND in known good Dockerfiles
  • How does docker handle almost equal images?
  • Postgres Error running query on database: Could not detect default username
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.