apparatus / fuge

The microservice shell
http://fuge.io
MIT License
431 stars 49 forks source link

docker-compose and build objects #158

Open davidmarkclements opened 7 years ago

davidmarkclements commented 7 years ago

given a service in the docker-compose.yml file like:

  foo:
    build:
      context: ../service-path
      args:
        foo: 'some arg'

This will result in

compiling...
Path must be a string. Received { context: '../service-path',
  args: { foo: 'some arg' } }
davidmarkclements commented 7 years ago

just to add:

there's three possible props of the build object

context (non-optional), args, and dockerfile (which may specify a different dockerfile)

https://docs.docker.com/compose/compose-file/compose-file-v2/#build

davidmarkclements commented 7 years ago

in v3 context may also be a git url, https://docs.docker.com/compose/compose-file/#context (this might also be true of path in general...)

marcfreiheit commented 6 years ago

Am I right that I currently can't add a docker-compose file with a build section including context and Dockerfile? Is there any workaround?