Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(container): add tests for container apps and remove build_env #375

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

squat
Copy link
Contributor

@squat squat commented Jan 2, 2025

We currently do not exercise container apps in our tests, the container
app seems to be an unused fixture. This commit introduces basic tests to
ensure that container apps are built and work as expected. Furthermore,
this commit introduces a check that container args actually work.
Finally, this commit removes the build_env keyword from the
ContainerImage class. Docker has no concept of specifying environment
variables at build time except by declaring build arguments. Having that
keyword is messy and opens the door to non-hermetic builds, which is
a recipe for leaks and reproducibility problems.

Signed-off-by: squat [email protected]

We currently do not exercise container apps in our tests, the container
app seems to be an unused fixture. This commit introduces basic tests to
ensure that container apps are built and work as expected. Furthermore,
this commit introduces a check that container args actually work.
Finally, this commit removes the `build_env` keyword from the
`ContainerImage` class. Docker has no concept of specifying environment
variables at build time except by declaring build arguments. Having that
keyword is messy and opens the door to non-hermetic builds, which is
a recipe for leaks and reproducibility problems.

Signed-off-by: squat <[email protected]>
@squat squat requested a review from efiop January 2, 2025 10:07
@squat squat force-pushed the test_builing_container_apps branch from 5509bfd to fbac082 Compare January 2, 2025 10:39
@squat squat closed this Jan 3, 2025
@squat squat reopened this Jan 3, 2025
@efiop efiop merged commit 1571b28 into main Jan 3, 2025
16 of 20 checks passed
@efiop efiop deleted the test_builing_container_apps branch January 3, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants