-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple core runnable #478
Merged
Merged
Changes from 15 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2f6a557
add core name in config
antho1404 cd5ffa1
add network name based on the config
antho1404 a771520
add core path helper method
antho1404 de25479
make daemon startable multiple time with it's own name
antho1404 ea45586
update database path
antho1404 6698103
use network based on the config
antho1404 46a0b5c
Update container.ListServices function to accept multiple labels
NicolasMahe 462108b
Update service.ListRunning function to only return services for a spe…
NicolasMahe 72fdb64
Fix test
NicolasMahe f584cbd
update container namespace
antho1404 512f0e3
Merge branch 'feature/core-name-configuration' of https://github.com/…
antho1404 2732e0d
Change default name of Config.Core.Name from "mesg-core" to "core"
NicolasMahe d0d083e
Merge branch 'dev' into feature/core-name-configuration
antho1404 88d1d51
Merge branch 'dev' into feature/core-name-configuration
NicolasMahe fd91df1
Merge branch 'dev' into feature/core-name-configuration
ilgooz 821e182
Merge branch 'dev' into feature/core-name-configuration
ilgooz e13071c
remove RootPath in favor of Core.Path config all the time
antho1404 1403c19
Merge branch 'dev' into feature/core-name-configuration
antho1404 7bcd8af
Merge branch 'dev' into feature/core-name-configuration
NicolasMahe 580b0f5
fix tests
antho1404 8ad05bf
Merge branch 'feature/core-name-configuration' of https://github.com/…
antho1404 f3b67c0
dont create useless container in test
antho1404 ea64cae
Merge branch 'dev' into feature/core-name-configuration
antho1404 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get this part, why do we need name and rootpath?
What rootpath means - consider remaining it to ConfigPath as this is what you mean right?
Also when the path is explicit given the app shouldn't create new directories (
.mesg
) under it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal of that is to have the database stored in it's own directory so the root path is the one that will store all the different "core" instances
Right now we have
And this change to
Like that we can now run different instances of the core with their own separated database
The
RootPath
is the one to store the.mesg
and theCorePath()
is the one to use to know where to write. This one returns theRootPath + Name
.ConfigPath
is a bit ambiguous because it's the config of the core so this should be the~/.mesg/mesg-core
Why shouldn't we do that ? The goal of this property is to be the "namespace" for the folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the discussion on discord and the feedbacks of @krhubert we can remove the
RootPath
and just keep aCorePath
that is customizable by the user and so we would just have theMESG_CORE_PATH
to edit more