Skip to content

Handle environment variable interpolation in compositions #2818

@ab77

Description

@ab77

See, balena-io/open-balena#271

balena-cli chokes when presented with a composition containing a valid compose syntax (e.g.):

...
    environment:
      <<: *default-environment
      VPN_PORT: ${VPN_PORT:-443}

.. instead it should parse this by checking if there is an override set for VPN_PORT in build-variables, substituting the interpolation syntax;

if no override is presented, use the default value

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehttps://help.github.com/articles/helping-new-contributors-find-your-project-with-labels/help wantedhttps://help.github.com/articles/helping-new-contributors-find-your-project-with-labels/low-hanging-fruitneeds investigationopenBalenatype:feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions