-
Notifications
You must be signed in to change notification settings - Fork 6
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
Set up docker-compose, and other boilerplate #3
Conversation
Hey @tyarkoni hope you don't mind I'm changing some minor stylistic difference to align with neuroscout (e.g. More substantively, in postgres its recommended now to use Q: Any reason why primary_keys are string rather than incremental ids? So we don't have to worry about exposing them later? |
Sounds good.
Sounds good.
Yeah, I changed them to strings so that users can't sequentially scan the DB for records that might not be public. The int |
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.
Looks great!
include: | ||
- language: python | ||
python: | ||
- "3.6" |
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.
Let's add 3.7 and 3.8 as well. I think we might want to make use of dataclasses and other goodies in 3.7/3.8.
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.
Since this is not going to be deployed by others (and is dockerized), we could just jump straight to 3.8 and only test there
Co-authored-by: Tal Yarkoni <tyarkoni@gmail.com>
I'm going to merge this as is, and deal with Python 3.8 and finishing tests in another PR to separate issues. |
* tmp: matrix build * test different build process * change directories * copy env file * copy env file to different directory * rename targets * add workdir * remove leading directories * copy env file to correct folder * explicit no build for docker-compose * explictly state image name * attempt github registry cache * attempt github registry cache #2 * attempt github registry cache #3 * attempt github registry cache #4 * test reuse * attempt to validate cache * change nginx image names * rename nginx and neurosynth * keep service names in line * fix name * add inline cache argument * remove inline cache argument * set mode=max * set set cache stage * try #2 * empty cache * test * use different scopes * parallelize frontend tests * try to ingest data for cypress * remove superfluous cp statement * add more options to manage file * fix cache name * change default directories * add 0T * try to add working directory * fix copy * fix cache
* preload more attributes * wip: speed up PUT * add sqltap profiling agsi * do not update has_coordinates or has_images if irrelevant attribute updated * make openapi more permissive and style * remove unused import * be more selective when updating has_coordinates and has_images * refactor how records are looked up * preload analyses * handle loading of annotations * preload the correct attributes for annotations * catch more custom annotation loading * fix annotation loading attempt #1 * attempt #2 * attempt #3 * reassign q * remove extraneous command, and load studyset * style fixed * comment out unused bits
Based on Neuroscout's set up, filling in some boilerplate for Neurostuff:
Dockerfile
to neurostuff app, and frozerequirements.txt
.env
) and app level configuration (config.py
).zenodo
file.travis
file (need to add tests, and set up travis service) and.codecov
ingest
and addflask-manage
for interactive use/scriptsREADME
flask-migrate
to track migrations with alembicPostgres
and stylistic reasons