635 Sub-compose files #985
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!985
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "635-Sub-compose-files-re-branch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added sub-compose (will be calling them stacks) files for all (at the time) mockups and services. Some ongoing PR for other services will have to make their own stacks to later be added to the Rebuild script.
As of now, the Test script (both .bat and .sh) starts the all the stacks and create their own databases for each stacks, except frontend and "core" (consisting of middleware and MQTT). This PR only implements the stacks and the reviewer(s) are mostly to focus on if services work in a sub format.
Further issues for cleanup, addition of other services and expansion of the create service scripts will be made.
To start using stacks, remove (system prune) everything from docker, including images and compose files, and use the Test scripts.
The Test scripts and other cleanup will be done at the weekly merge so everything sync for both teams.
Relevant issue: #635
Review on #635
Whats done
Implemented sub-compose/stacks
Tested on Windows using Chrome/Firefox
Inspected following files
+scripts/Test.sh
What needs to be done
Conclusion
It shouldn't, I at least haven't touched anything within the poll frequency. According to the config file it should happen every minute for the graph and default view.
This comment in the compose file ha been existing for a while, and I don't really know where it comes from or if it has been solved. When looking through the history of the file it seems to never have changed (?). As it works and don't seem to be an issue anymore I will remove it.
Will fix.
I've been trying to keep most of other peoples code as they are. Some things have been commented out because they were not working with the new setup or they have always been there. I don't know if anything should be removed permanently or just commented out as I feel like I'm stepping on peoples toes. People are writing code so differently from each other that it feels hard whether to change their code or adapt mine.
I think I'll leave middleware as the mess that it is due to how it already needs a major cleanup (will create an issue about this). But I'll remove every other unnecessary comment.
Looks good, ready for merge.
I can test on linux
Waiting to merge this until it has been reviewed for linux as well.
The change above needed for linux. I am testing on linux again and it is not up. I will test again.
@ -0,0 +15,4 @@$$ LANGUAGE plpgsql;-- If job already exists, unschedule to avoid duplicatesSELECT cron.unschedule('calculate_daily_averages_job');This change was needed for cron job
@ -0,0 +42,4 @@# userdocker compose -f stacks/user/compose.yaml --env-file ./.env down --volumesdocker build -t loginservice ../service/loginService/loginserviceloginservice shall be changed to loginService
@ -0,0 +50,4 @@# Note: It is important that frontend runs last, as all endpoints have to be establisheddocker compose -f stacks/frontend/compose.yaml --env-file ./.env down --volumesdocker build -t frontend ../frontenddocker build -t entrypoint ../entrypointentrypoint shall be changed to entryPoint.
Notes:
The branch runs without error when applying the above changes.
When that is done we can merge it
Awesome! Really good change.
Ready to be merged.