Skip to content

Commit

Permalink
some cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchitram1 committed Oct 21, 2024
1 parent 4aee155 commit a56b18b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,9 @@ services:
- TEST=${TEST:-false}
- FETCH=${FETCH:-true}
- FREQUENCY=${FREQUENCY:-24}
- DEBUG=${DEBUG:-true}
- SOURCE=https://formulae.brew.sh/api/formula.json
- CODE_DIR=/package_managers/homebrew
- DATA_DIR=/data/homebrew
- PYTHONPATH=/
# TODO: can I reference DATA_DIR in the volumes key? do I need it?
# https://stackoverflow.com/questions/29377853/how-can-i-use-environment-variables-in-docker-compose
volumes:
- ./data/homebrew:/data/homebrew
depends_on:
Expand All @@ -79,5 +75,5 @@ services:
depends_on:
crates:
condition: service_started
# homebrew:
# condition: service_started
homebrew:
condition: service_started
2 changes: 1 addition & 1 deletion package_managers/homebrew/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fi

# Load data into database
log "Loading data into database"
psql "$CHAI_DATABASE_URL" <<EOSQL
psql -q "$CHAI_DATABASE_URL" <<EOSQL
\i $DATA_DIR/latest/packages.sql
\i $DATA_DIR/latest/urls.sql
\i $DATA_DIR/latest/versions.sql
Expand Down

0 comments on commit a56b18b

Please sign in to comment.