You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some image building workflows involve a final RUN command that serves to in some way validate the built image before pushing it to a remote registry (example).
For example, we may want to run a security scan of the image for CVEs using e.g. trivy, or perform a final confidence check on the image using e.g. goss.
With Envbuilder, the built image is only available inside the running envbuilder container, so it can't be scanned easily by external processes.
Solution
Allow appending an arbitrary RUN command to the Dockerfile produced by Envbuilder. An example of such a command could be:
Motivation
Some image building workflows involve a final
RUN
command that serves to in some way validate the built image before pushing it to a remote registry (example).For example, we may want to run a security scan of the image for CVEs using e.g. trivy, or perform a final confidence check on the image using e.g. goss.
With Envbuilder, the built image is only available inside the running
envbuilder
container, so it can't be scanned easily by external processes.Solution
Allow appending an arbitrary RUN command to the Dockerfile produced by Envbuilder. An example of such a command could be:
Alternatives
The above behaviour can be approximated with no code changes with the below:
devcontainer.json
as e.g.postCreateCommand
, orThe text was updated successfully, but these errors were encountered: