Skip to content
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

[ENH] Add configuration files and templates for different deployment flavours #2

Merged
merged 7 commits into from
Dec 6, 2023

Conversation

alyssadai
Copy link
Contributor

@alyssadai alyssadai commented Dec 5, 2023

Changes proposed in this pull request:

  • Subdirectories created with relevant config files for 3 deployment flavours for 1) setting up local federation (f-API + query tool), 2) setting up a local node (n-API + graph), and 3) setting up a local node with a query tool automatically deployed (n-API, graph, query tool)
  • The template .env file for 2) is taken from the API repo, but has the variables relevant for communication with a local query tool commented out (the docker-compose.yml similarly has the query service removed)
  • Added basic usage instructions in README

Checklist

  • PR has an interpretable title with a prefix ([ENH], [FIX], [REF], [TST], [CI], [MNT], [INF], [MODEL], [DOC]) (see https://neurobagel.org/contributing/pull_requests for more info)
  • PR links to GitHub issue with mention Closes #XXXX
  • Tests pass
  • Checks pass

For new features:

  • Tests have been added

For bug fixes:

  • There is at least one test that would fail under the original bug conditions.

@surchs surchs self-requested a review December 5, 2023 19:03
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alyssadai for setting this up. I think this will be super useful and a nice way to get started.

One thing that I noticed while trying these files out is that having to copy/rename files is a bit tedious compared to being able to immediately going docker compose up. I know we want people to look at these and configure them, but if we can make this runnable out of the box, it'll be very useful even for ourselves. And if I mess up my local file, git is always there to bring me back to a safe version.

I left a couple of comments on the files themselves as well.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
local_federation/template.env Outdated Show resolved Hide resolved
local_node/template.env Outdated Show resolved Hide resolved
local_node_with_query_tool/template.env Outdated Show resolved Hide resolved
local_node/docker-compose.yml Outdated Show resolved Hide resolved
local_node_with_query_tool/docker-compose.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alyssadai. Looks good 🧑‍🍳

Comment on lines +53 to +54
printf '\t%s\n' "--use-graphdb-syntax, --no-use-graphdb-syntax: Whether or not to use GraphDB API endpoints to update the specified graph database. If off, assumes the graph database is a Stardog database. (off by default)"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that everything is graphDB, we should also make graphDB the default here. Maybe for a future PR and only docs for now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alyssadai alyssadai merged commit fef3c0b into main Dec 6, 2023
@alyssadai alyssadai deleted the add-config-files branch December 19, 2023 01:25
Copy link
Contributor

neurobagel-bot bot commented Aug 7, 2024

🚀 PR was released in v0.0.1 🚀

@neurobagel-bot neurobagel-bot bot added the released This issue/pull request has been released. label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store all Compose files and configs in one place
2 participants