Skip to content

Commit

Permalink
Added healthcheck and launch/shutdown message.
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-ohai committed Aug 7, 2023
1 parent 65fe6ac commit e6b6efe
Show file tree
Hide file tree
Showing 3 changed files with 443 additions and 0 deletions.
1 change: 1 addition & 0 deletions container-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN chmod a+x ${MLFLOW_DIR}/launch_mlflow.sh
ENV MLFLOW_DIR=${MLFLOW_DIR}

EXPOSE 5000
HEALTHCHECK --interval=30s CMD curl -f -sI http://localhost:5000 || exit 1

RUN if [ -f ${MLFLOW_DIR}/oci_mlflow*.whl ]; then \
local_whl=$(find ${MLFLOW_DIR} -name "*.whl" -exec basename {} \; | head -n 1 ); \
Expand Down
4 changes: 4 additions & 0 deletions container-image/run/launch_mlflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ set -m -e -o pipefail

conda activate oci-mlflow

echo "========== MLflow server is launchng... "==========

mlflow server $@

echo ""========== MLflow server is shutting down... "=========="

exit $LastExitCode
Loading

0 comments on commit e6b6efe

Please sign in to comment.