avoid interactive prompts when updating from an environment.yaml #727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Working with @taureandyernv yesterday, we tried something like this to patch in a dependency at run time.
Found that that prompts for confirmation:
But that prompt seems not to make it through to
mamba
.And even if that did work, this interactive prompt prevents the use of the "mount in an
environment.yml
" approach in situations where you aren't running the container interactively... for example, where you want to use this image in a container in a Kubernetes Pod, and provide anenvironment.yml
via a ConfigMap or file Secret.This proposes skipping the confirmation and always running
mamba env update -y
when anenvironment.yml
is provided.Notes for Reviewers
How I tested this
Pulled an image built from this PR and confirmed that that install pattern described above works and does not prompt for interactive input.