From fd9dc8d5f22126945c375077f3dc177e918efdb8 Mon Sep 17 00:00:00 2001 From: Travis Briggs Date: Sun, 18 Sep 2022 22:48:04 -0700 Subject: [PATCH] mkdir -p on MODEL_DIR and pipe yes to conda clean to avoid need for interaction --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e130ea0d0..f24a295b4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,6 +10,7 @@ cd $SCRIPT_DIR export PYTHONPATH=$SCRIPT_DIR MODEL_DIR="${SCRIPT_DIR}/model_cache" +mkdir -p $MODEL_DIR # Array of model files to pre-download # local filename # local path in container (no trailing slash) @@ -49,7 +50,7 @@ fi # Clear artifacts from conda after create/update # @see https://docs.conda.io/projects/conda/en/latest/commands/clean.html if (( $ENV_UPDATED > 0 )); then - conda clean --all + yes | conda clean --all echo -n $ENV_MODIFIED > $ENV_MODIFED_FILE fi