Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NLP Group 43
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Menezes, Luke J (PG/T - Comp Sci & Elec Eng)
NLP Group 43
Commits
cc322b3d
Commit
cc322b3d
authored
11 months ago
by
Menezes, Luke J (PG/T - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
9e112c0d
No related branches found
No related tags found
No related merge requests found
Pipeline
#72642
canceled
11 months ago
Stage: pipeline
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pipeline.sh
+27
-0
27 additions, 0 deletions
pipeline.sh
with
27 additions
and
0 deletions
pipeline.sh
0 → 100644
+
27
−
0
View file @
cc322b3d
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment