Skip to content

Commit

Permalink
Use postgres authentication and healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
mbocevski committed Jan 16, 2021
1 parent 9f53b71 commit 7cf26d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
pip install pytest coveralls
- name: Setup CKAN
env:
PGPASSWORD: postgres
run: |
bash bin/setup-ckan.bash
Expand Down
4 changes: 2 additions & 2 deletions bin/setup-ckan.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ pip install -r dev-requirements.txt
cd -

echo "Creating the PostgreSQL user and database..."
PGPASSWORD=postgres sudo -u postgres psql -h localhost -c "CREATE USER ckan_default WITH PASSWORD 'pass';"
PGPASSWORD=postgres sudo -u postgres psql -h localhost -c 'CREATE DATABASE ckan_test WITH OWNER ckan_default;'
psql -h localhost -U postgres -c "CREATE USER ckan_default WITH PASSWORD 'pass';"
psql -h localhost -U postgres -c 'CREATE DATABASE ckan_test WITH OWNER ckan_default;'

echo "Initialising the database..."
cd ckan
Expand Down

0 comments on commit 7cf26d6

Please sign in to comment.