Skip to content

Commit f7b0481

Browse files
committed
Use package module entrypoints in Docker runs
1 parent d5f5db2 commit f7b0481

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,10 @@ else
450450
--rm \
451451
-it \
452452
-e PYTHONWARNINGS=ignore \
453+
--entrypoint /opt/conda/envs/agentomics-prepare-env/bin/python \
453454
--name agentomics_prepare_cont_${AGENT_ID} \
454455
-v "$(pwd)":/repository \
455-
"$PREPARE_IMAGE" ${PREPARE_ARGS[@]+"${PREPARE_ARGS[@]}"}
456+
"$PREPARE_IMAGE" -m agentomics.prepare_datasets ${PREPARE_ARGS[@]+"${PREPARE_ARGS[@]}"}
456457

457458
printless_command docker volume create temp_agentomics_volume_${AGENT_ID}
458459
cleanup_volume_on_finish
@@ -548,7 +549,8 @@ else
548549
-v "$(pwd)/src":/repository/src:ro \
549550
-v "$(pwd)/prepared_datasets":/repository/prepared_datasets:ro \
550551
-v temp_agentomics_volume_${AGENT_ID}:/workspace \
551-
"$AGENTOMICS_IMAGE" ${AGENTOMICS_ARGS+"${AGENTOMICS_ARGS[@]}"}
552+
--entrypoint /opt/conda/envs/agentomics-env/bin/python \
553+
"$AGENTOMICS_IMAGE" -m agentomics.run_agent_interactive ${AGENTOMICS_ARGS+"${AGENTOMICS_ARGS[@]}"}
552554

553555
if [ "$LIST_MODE" = true ]; then
554556
exit 0

0 commit comments

Comments
 (0)