diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..8ea1f37 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,17 @@ +services: + fastapi: + image: docker.io/raghavanb/fastapi:dev + build: + context: "./" + dockerfile: "Dockerfile" + ports: + - "8000:8000" + streamlit: + image: docker.io/raghavanb/streamlit:dev + build: + context: "streamlit_app/" + dockerfile: "Dockerfile" + ports: + - "8501:8501" + environment: + API_URL: "http://fastapi:8000" \ No newline at end of file diff --git a/mlflow/compose.yaml b/mlflow/compose.yaml new file mode 100644 index 0000000..908f5cd --- /dev/null +++ b/mlflow/compose.yaml @@ -0,0 +1,6 @@ +services: + mlflow: + image: ghcr.io/mlflow/mlflow:latest + ports: + - 5555:5000 + command: mlflow server --host 0.0.0.0 \ No newline at end of file diff --git a/run_pipeline.sh b/run_pipeline.sh index 2e9d66c..c3eabb0 100755 --- a/run_pipeline.sh +++ b/run_pipeline.sh @@ -8,7 +8,7 @@ # ------------------------------- CONFIG ------------------------------------- -PROJECT_ROOT="house-price-predictor" +PROJECT_ROOT="hprice-predictor" INPUT_RAW="data/raw/house_data.csv" CLEANED_DATA="data/processed/cleaned_house_data.csv" FEATURED_DATA="data/processed/featured_house_data.csv" @@ -100,13 +100,6 @@ run_model_training() { main() { check_dependencies - # Ensure we are in the project root directory - if [[ ! -d "$PROJECT_ROOT" ]]; then - echo "❌ '$PROJECT_ROOT' directory not found. Please run this script from the parent directory of the project." - exit 1 - fi - cd "$PROJECT_ROOT" || exit 1 - run_data_processing run_feature_engineering run_model_training