Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Daily Thought App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
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
COM3014-Coursework
Daily Thought App
Merge requests
!30
Implement Mongo Seeder
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Implement Mongo Seeder
mongo-seeder
into
main
Overview
1
Commits
11
Pipelines
0
Changes
12
Closed
D'Abrantes, Felipe (UG - Comp Sci & Elec Eng)
requested to merge
mongo-seeder
into
main
2 years ago
Overview
1
Commits
11
Pipelines
0
Changes
12
Expand
What does this MR do?
Adds a Mongo Seeder service.
Populates User and Question DB if needed and shuts down.
Testing
Ensure Docker's MongoDB instances have no documents in Users and Questions DBs.
Run
docker compose up --build
.
Login as with username 'a' and password 'a'.
Question appears on page.
Relevant issues
Fixes missing seeding.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
5be5c0d0
11 commits,
2 years ago
12 files
+
975
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
backend-services/feed-service/Dockerfile
+
2
−
4
Options
@@ -16,9 +16,7 @@ RUN unzip -d svc target/universal/feed-service-1.0.0.zip \
&&
rm
svc/bin/
*
.bat
\
&&
mv
svc/bin/
*
svc/bin/start
# Delete the RUNNING_PID fle that incorrectly tells Play there is already an instance running
RUN
rm
-f
svc/RUNNING_PID
EXPOSE
9000
CMD
svc/bin/start
# Delete the RUNNING_PID fle that incorrectly tells Play there is already an instance running
CMD
rm -f svc/RUNNING_PID && svc/bin/start
Loading