Skip to content

Load variables from .env files associated with docker-compose files #62

@pgesek

Description

@pgesek

In docker compose I have

image: something:${EXTERNAL_COMPONENT_VERSION}

In the .env file I have:

EXTERNAL_COMPONENT_VERSION=1.0.0

Currently when using Infrascan docker image in BB pipelines , I have to do something like this:

- source scripts/.env && export EXTERNAL_COMPONENT_VERSION
- infrascan ...

where I source the .env file and export the configuration.

We could load such .env files associated with docker-compose.yml files out of the box to make setting up the build easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions