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

Sort DBs Fly Datasette; don't distribute Datasette's metadata.yml #3106

Merged
merged 3 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devtools/datasette/fly/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ find /data/ -name '*.sqlite' -delete
mv all_dbs.tar.zst /data
zstd -f -d /data/all_dbs.tar.zst -o /data/all_dbs.tar
tar -xf /data/all_dbs.tar --directory /data
datasette serve --host 0.0.0.0 /data/*.sqlite --cors --inspect-file inspect-data.json --metadata metadata.yml --setting sql_time_limit_ms 5000 --port $PORT
datasette serve --host 0.0.0.0 /data/pudl.sqlite /data/ferc*.sqlite /data/censusdp1tract.sqlite --cors --inspect-file inspect-data.json --metadata metadata.yml --setting sql_time_limit_ms 5000 --port $PORT
Copy link
Member

Choose a reason for hiding this comment

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

🎉

3 changes: 2 additions & 1 deletion docker/gcp_pudl_etl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ if [[ $ETL_SUCCESS == 0 ]]; then
# Compress the SQLite DBs for easier distribution
# Remove redundant multi-file EPA CEMS outputs prior to distribution
gzip --verbose $PUDL_OUTPUT/*.sqlite && \
rm -rf $PUDL_OUTPUT/hourly_emissions_epacems/
rm -rf $PUDL_OUTPUT/hourly_emissions_epacems/ && \
rm -f $PUDL_OUTPUT/metadata.yml
ETL_SUCCESS=${PIPESTATUS[0]}

# Dump outputs to s3 bucket if branch is dev or build was triggered by a tag
Expand Down
1 change: 1 addition & 0 deletions docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pages for each source:
We also publish SQLite databases containing relatively pristine versions of our more
difficult to parse inputs, especially the old Visual FoxPro (DBF, pre-2021) and new XBRL
data (2021+) published by FERC:

* `FERC Form 1 (DBF) <https://s3.us-west-2.amazonaws.com/pudl.catalyst.coop/dev/ferc1_dbf.sqlite.gz>`__
* `FERC Form 1 (XBRL) <https://s3.us-west-2.amazonaws.com/pudl.catalyst.coop/dev/ferc1_xbrl.sqlite.gz>`__
* `FERC Form 2 (DBF) <https://s3.us-west-2.amazonaws.com/pudl.catalyst.coop/dev/ferc2_dbf.sqlite.gz>`__
Expand Down