################################################################################
# Defaults
#
# Best practice is to set defaults to production settings.

name: airstack/core

build:
  dir: .airstack/build
  cache: .airstack/cache
  templates:
    # Build template directory
    dir: Dockerfiles
    # Build templates, concatenated in listed order
    files: Dockerfile.base Dockerfile.packages Dockerfile.services


################################################################################
# Environment specific sections
#
# Prefixed with a colon ':'
# Missing keys in environment sections will be looked up the default section above.

:development:
  build:
    templates:
      <% dev_tpls = 'Dockerfile.base Dockerfile.packages Dockerfile.packages.development Dockerfile.services Dockerfile.services.development' %>
      files: <%= dev_tpls %>
  mount: &dev_mounts
    - ./command:/package/json/json-utils/command
    - ./test:/package/json/json-utils/test

:test:
  build:
    templates:
      files: <%= dev_tpls %> Dockerfile.services.test
  cmd: core-watch /package/json/json-utils -c "core-test-runner -f /package/json/json-utils/test/*_spec.lua"
  mount:
    *dev_mounts


:production:
  # Build defaults

################################################################################
# Defaults
#
# Best practice is to set defaults to production settings.

name: airstack/core

build:
  dir: .airstack/build
  cache: .airstack/cache
  templates:
    # Build template directory
    dir: Dockerfiles
    # Build templates, concatenated in listed order
    files: Dockerfile.base Dockerfile.packages Dockerfile.services

cmd: "sh -c '{ /etc/runit/2 multi &}'"


################################################################################
# Environment specific sections
#
# Prefixed with a colon ':'
# Missing keys in environment sections will be looked up the default section above.

:development:
  build:
    templates:
      <% dev_tpls = 'Dockerfile.base Dockerfile.packages Dockerfile.packages.development Dockerfile.services Dockerfile.services.development' %>
      files: <%= dev_tpls %>
  mount: &dev_mounts
    - ./command:/package/json/json-utils/command
    - ./test:/package/json/json-utils/test

:test:
  build:
    templates:
      files: <%= dev_tpls %> Dockerfile.services.test
  # cmd: /command/core-watch /package/json/json-utils -c \"core-test-runner -f /package/json/json-utils/test/*_spec.lua\"
  cmd: /command/core-test-runner -f /package/airstack/test/\*_spec.lua
  mount:
    *dev_mounts

:production:
  # Build defaults


Add default and test cmd
Add default and test cmd