Skip to content

Commit

Permalink
Troubleshooting createdb steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mtauraso committed Nov 27, 2024
1 parent bc91577 commit 099a60c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/tom-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,37 @@ jobs:
TOM_DESC_DIR: ../tom_desc
run: |
docker compose up -d shell resspect
- name: Do Migrations
working-directory: resspect
run: |
docker compose exec -it createdb /bin/bash -c "python tom_desc/manage.py migrate"
- name: Create test superuser
working-directory: resspect
run: |
docker compose exec -it createdb /bin/bash -c "python tom_desc/manage.py create_test_superuser"
- name: Create test api broker
working-directory: resspect
run: |
docker compose exec -it createdb /bin/bash -c "python tom_desc/manage.py create_test_apibroker"
- name: Create Postgres RO user
working-directory: resspect
run: |
docker compose exec -it createdb /bin/bash -c "python /tests/create_postgres_ro_user.py"
- name: Setup Mongodb
working-directory: resspect
run: |
docker compose exec -it createdb /bin/bash -c "python /tests/setup_mongodb.py"

- name: Load the TOM Database
working-directory: resspect
run: |
docker compose exec -it shell /bin/bash -c "PGPASSWORD=fragile pg_restore --create -h postgres -U postgres -d tom_desc /tests/elasticc2_alertcycle_complete.psqlc"
docker compose exec -it shell /bin/bash -c "PGPASSWORD=fragile pg_restore --data-only -h postgres -U postgres -d tom_desc /tests/elasticc2_alertcycle_complete.psqlc"
- name: Run one night of processing
working-directory: resspect
Expand Down

0 comments on commit 099a60c

Please sign in to comment.