Conversation
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.
LGTM
ops/install-feature-service-db.sh
Outdated
if ! (command -v jq >/dev/null); then sudo apt-get install -y jq; fi | ||
if ! (command -v psql >/dev/null); then sudo apt-get install -y postgresql postgresql-contrib; fi | ||
|
||
echo "!!!! Postgres password for ${pg_admin} set to '${pg_password}' !!!!" |
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.
Should we remove this echo statement in case this ends up in an unprotected log file?
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 think we need a way to communicate the password to the user in case they wish to connect to their DB and unfortunately the Azure UI does not expose the password. The alternative would be to ask the user to provide a password but that will likely lead to weak passwords. Thoughts?
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'd just generate a password guid in the deployment script which we'd propagate in the kubernetes ConfigMap
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.
Moved the password to deis in fce2a39.
readonly location="$1" | ||
readonly resource_group="$2" | ||
|
||
readonly pg_dump="https://fortiscentral.blob.core.windows.net/locations/feature-service.v1.sql.gz" |
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.
+1 on that v1
- thanks!
e9ab6da
to
1412bd6
Compare
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.
LGTM
This avoids potential issues with long-running pipes and http connections.
Instead, set it in the deis config.
1412bd6
to
31b2b83
Compare
Implement EdgesSchema.{terms,locations}
This pull request adds a script that sets up a copy of the feature-service database as part of the deployment. First, we create an Azure-hosted Postgres instance. Then we populate the database from a dump of Tim's master database that is hosted on our central Fortis Azure Blob Storage.
To test the script, you need to change the
pg_dump
variable to the test database dump as I haven't written the script to dump the master database yet.This is the first required piece to implementing project-fortis#39. The next steps will include writing the script to dump the master database and setting up the featureService repository via deis.