Skip to content

Commit

Permalink
Activate conda env before running pyfunc server
Browse files Browse the repository at this point in the history
  • Loading branch information
Krithika Sundararajan committed Sep 10, 2023
1 parent 6a81990 commit 001e7f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/pyfunc-ensembler-service/app.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ARG GOOGLE_APPLICATION_CREDENTIALS
RUN if [[-z "$GOOGLE_APPLICATION_CREDENTIALS"]]; then gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}; fi
RUN gsutil -m cp -r ${MODEL_URL} .

RUN /bin/bash -c ". activate ${CONDA_ENV_NAME} && \
conda env update --name ${CONDA_ENV_NAME} --file ./${FOLDER_NAME}/conda.yaml"
RUN /bin/bash -c "conda env update --name ${CONDA_ENV_NAME} --file ./${FOLDER_NAME}/conda.yaml"

SHELL ["/bin/bash", "-c"]
ENTRYPOINT python -m pyfunc_ensembler_runner --mlflow_ensembler_dir ./${FOLDER_NAME} -l INFO
ENTRYPOINT . activate ${CONDA_ENV_NAME} && \
python -m /pyfunc_ensembler_runner --mlflow_ensembler_dir ./${FOLDER_NAME} -l INFO

0 comments on commit 001e7f9

Please sign in to comment.