Skip to content

Commit 05d883d

Browse files
committed
Adjust mlflow entrypoint
1 parent 40de191 commit 05d883d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docker/mlflow/init-mlflow.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# Default values for local storage
44
DEFAULT_BACKEND_STORE_URI="sqlite:///mlflow.db"
5-
DEFAULT_ARTIFACT_ROOT="./mlruns"
65
MLFLOW_PORT=5001
76

87
# Check for the presence of environment variables and set them if provided
@@ -14,9 +13,8 @@ fi
1413

1514
if [ -n "$MLFLOW_ARTIFACT_ROOT" ]; then
1615
ARTIFACT_ROOT=$MLFLOW_ARTIFACT_ROOT
16+
mlflow server --backend-store-uri $BACKEND_STORE_URI --default-artifact-root $ARTIFACT_ROOT --host 0.0.0.0 --port $MLFLOW_PORT
1717
else
18-
ARTIFACT_ROOT=$DEFAULT_ARTIFACT_ROOT
18+
mlflow server --backend-store-uri $BACKEND_STORE_URI --host 0.0.0.0 --port $MLFLOW_PORT
1919
fi
2020

21-
# Run the MLflow server with the configured backend store URI and artifact root
22-
mlflow server --backend-store-uri $BACKEND_STORE_URI --default-artifact-root $ARTIFACT_ROOT --host 0.0.0.0 --port $MLFLOW_PORT

0 commit comments

Comments
 (0)