Skip to content

Commit

Permalink
Merge pull request #44 from unckan/update-apitrackin
Browse files Browse the repository at this point in the history
Update tracking
  • Loading branch information
avdata99 authored Dec 11, 2024
2 parents 044c4aa + 83c2bb2 commit f3e4d8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docker/ckan/files/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ ckan db upgrade -p announcements
# Rebuild search index
ckan search-index rebuild

# Update tracking
LAST_MONTH=$(date -d '60 days ago' +'%Y-%m-%d')
ckan tracking update $LAST_MONTH

# Datapusher+ requires a valid API token to operate
echo "Creating a valid API token for Datapusher+"
DATAPUSHER_TOKEN=$(ckan user token add default datapusher_multi expires_in=365 unit=86400 | tail -n 1 | tr -d '\t')
Expand Down
4 changes: 2 additions & 2 deletions docker/ckan/files/scripts/install-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ pip install -e git+https://github.com/okfn/datapusher-plus.git@okfn_tmp#egg=data
pip install -r https://raw.githubusercontent.com/okfn/datapusher-plus/okfn_tmp/requirements.txt

echo "Installing API-tracking extension"
pip install git+https://github.com/NorwegianRefugeeCouncil/[email protected].3#egg=ckanext-api-tracking
pip install -r https://raw.githubusercontent.com/NorwegianRefugeeCouncil/ckanext-api-tracking/refs/tags/0.4.3/requirements.txt
pip install git+https://github.com/NorwegianRefugeeCouncil/[email protected].4#egg=ckanext-api-tracking
pip install -r https://raw.githubusercontent.com/NorwegianRefugeeCouncil/ckanext-api-tracking/refs/tags/0.4.4/requirements.txt

echo "Installing Apache Superset extension"
pip install git+https://github.com/unckan/[email protected]#egg=ckanext-superset
Expand Down

0 comments on commit f3e4d8a

Please sign in to comment.