github.com/bshelton229/agent@v3.5.4+incompatible/docker-compose.windows-dev.yml (about)

     1  version: "3.2"
     2  
     3  # This is a docker-compose file designed to be called in macOS and translate through to windows
     4  
     5  # Windows docker has some challenges, namely that bind mounts can't be over existing directories and
     6  # symlinks are used, so we need to do create a new gopath and mount it at the root of the gopath. This
     7  # means we count on $GOPATH having a single entry and it being under your macOS user directory. Mine
     8  # is /Users/lachlan/go.
     9  
    10  # See https://github.com/docker/compose/issues/5371 and https://github.com/moby/moby/issues/27537#issuecomment-271546031
    11  # for some details of the horrors within
    12  
    13  services:
    14    agent:
    15      build:
    16        dockerfile: Dockerfile-windows
    17        context: .
    18      working_dir: G:/src/github.com/buildkite/agent
    19      environment:
    20        - BUILDKITE_BUILD_NUMBER
    21        - "BUILDKITE_AGENT_TAGS=queue=default"
    22        - "BUILDKITE_BUILD_PATH=c:\\buildkite"
    23        - "GOPATH=G:\\"
    24      volumes:
    25        - type: bind
    26          source: "C:${GOPATH}"
    27          target: "C:/data"
    28  
    29  networks:
    30    default:
    31      external:
    32        name: nat