harbur / captain

Captain - Convert your Git workflow to Docker :whale: containers
MIT License
767 stars 51 forks source link

Add support for build time variables #30

Closed ludovicc closed 8 years ago

ludovicc commented 8 years ago

Docker supports now build time variables, it would be great if captain adds support for them too. For example,

hello-world-test:
  build: Dockerfile.test
  image: harbur/hello-world-test
  build_variables:
    NODE_ENV: test
> docker build --help
Usage:  docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
  --build-arg=[]                  Set build-time variables
[...]