MetaCell / cloud-harness

Other
16 stars 5 forks source link

CH-142 Add dockerfile build args support to apps #763

Closed condar-metacell closed 3 months ago

condar-metacell commented 3 months ago

Closes CH-142

Implemented solution

A dockerfile section has been added under the haress section of an application which then has a buildArgs map which is provided to the dockerfile by Skaffold when building.

How to test this PR

Either run pytest to run the added unit test, or run harness-deployment -i samples and skaffold dev to see the value set in the values echoed out during build.

Sanity checks:

Breaking changes (select one):

Possible deployment updates issues (select one):

Test coverage (select one):

Documentation (select one):

Nice to have (if relevant):

filippomc commented 3 months ago

@zsinnema this is useful for local development and debugging as mentioned in the Jira card, but I see your concern about this being abused as an attempt to set env variables on CI/CD and production systems. Let's be sure that the documentation states clearly that this feature shouldn't be used to set environment variables @condar-metacell

zsinnema commented 3 months ago

@filippomc @condar-metacell did you see my comment here: https://metacell.atlassian.net/browse/CH-142?focusedCommentId=15219?