diff --git a/pipeline.sh b/pipeline.sh new file mode 100644 index 0000000000000000000000000000000000000000..92da5492cc9472db4ddf5d0b408c7fae35a81cde --- /dev/null +++ b/pipeline.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Install required Python packages +pip3 install -r requirements.txt + +# Build stage +echo "build stage" + +# Convert Jupyter notebook to Python script +jupyter nbconvert --to script app.ipynb + +# Check if conversion was successful +if [ ! -f app.py ]; then + echo "Conversion failed, exiting pipeline" + exit 1 +fi + +echo "build completed" + +# Start Flask application in the background +echo "Starting Flask" +nohup python3 app.py & + +# Give the app some time to start +sleep 5 + +echo "App should have started in the background" \ No newline at end of file