Remove references to the old datagov-deploy repo#1143
Remove references to the old datagov-deploy repo#1143robert-bryson wants to merge 14 commits intomainfrom
Conversation
This reverts commit f67cd55.
For some reason also a linting of that JS file. Also, included the sql file remove/revert on purpose if we want to go that route in the future.
|
|
||
| # Include extra setup scripts (eg datastore) | ||
| ADD docker-entrypoint-initdb.d /docker-entrypoint-initdb.d | ||
| ADD https://github.com/GSA/datagov-deploy/raw/71936f004be1882a506362670b82c710c64ef796/ansible/roles/software/ec2/ansible/files/locations.sql.gz /docker-entrypoint-initdb.d/locations.sql.gz |
There was a problem hiding this comment.
Instead of updating this link, I think referencing a key piece of DB setup (for dev and prod) at a historical git commit to a file that is no longer being tracked isn't good practice. Can we just add the file in the repo similar to the other files in docker-entrypoint-initdb.d folder?
btylerburton
left a comment
There was a problem hiding this comment.
Thanks for rewiring up the links. It would be equally valuable to delete/update outdated instructions.
|
|
||
| # Include extra setup scripts (eg datastore) | ||
| ADD docker-entrypoint-initdb.d /docker-entrypoint-initdb.d | ||
| ADD https://github.com/GSA/datagov-deploy/raw/71936f004be1882a506362670b82c710c64ef796/ansible/roles/software/ec2/ansible/files/locations.sql.gz /docker-entrypoint-initdb.d/locations.sql.gz |
| The locations table [was defined in 2016](https://github.com/GSA/datagov-deploy/search?q=location+table&type=commits). | ||
| This table was deleted from the repo but is still available from old commits: [locations.sql.gz](https://github.com/GSA/datagov-deploy/raw/71936f004be1882a506362670b82c710c64ef796/ansible/roles/software/ec2/ansible/files/locations.sql.gz). | ||
| The locations table [was defined in 2016](https://github.com/GSA/data.gov/search?q=location+table&type=commits). | ||
| This table was deleted from the repo but is still available from old commits: [locations.sql.gz](https://github.com/GSA/data.gov/raw/71936f004be1882a506362670b82c710c64ef796/ansible/roles/software/ec2/ansible/files/locations.sql.gz). |
There was a problem hiding this comment.
This is outdated now that the table is in the docker-entrypoint dir.
|
|
||
| DEST_FOLDER=/tmp | ||
| # TODO check path on run | ||
| SQL_FILE=30_locations.sql.gz |
There was a problem hiding this comment.
i'm almost positive the pathing needs to be adjusted
|
|
||
| echo "Cleaning" | ||
| rm -f $DEST_FOLDER/locations.sql.gz No newline at end of file | ||
| gunzip -c ${SQL_FILE} | PGPASSWORD=${PASS} psql -h "$HOST" -U "$DB_USER" -d "$DB_NAME" -v ON_ERROR_STOP=1 |
There was a problem hiding this comment.
my understanding was putting the .gzipped file in the docker-entrypoint dir executes it automatically when catalog starts up... is that correct?
and if so, what does this script here do?
|
What do we need to do to get this merged @robert-bryson? |
|
@Bagesary here's another one to discuss with @robert-bryson |
@jbrown-xentity could you please talk to Robert on Monday on this ticket? |
As the
datagov-deployrepo has been removed, all references are now redirected todata.gov. We should probably just have them point todata.govinstead of relying on the301->302chain that currently happens.This surfaced for me as I was having an issue pulling down the file
postgres/locations.sql.gzin the postgres Dockerfile. Not sure why only my system was impacted by this, but probably a good fix in any case.