-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement core metadata schema in the eCR viewer (#2756)
* Starting small tweaks for implementing core schema * WIP * implement core schema * error tweak * add script to update data.sql for cypress testing * [pre-commit.ci] auto fixes from pre-commit hooks * Bring in data.sql gen script and update for new schema to fix cypress tests * test fixture for db cleanup update, maybe this'll do it * change database.one to .none for error, update sql script references * oops I broke cypress again, fixing * rollback test fixture changes * remove borked data.sql path and make new cypress docker compose * remove borked data.sql path and make new cypress docker compose * fix cypress #876234 * cypress fix please * increase cypress timeout * remove duplicate cypress timeout increase * fix borked cypress tests again * fix unit tests * tweak cypress settings, update gitignore * attempt to satisfy fickle cypress gods by changing localhost to 127.0.0.1 in baseUrl * reenable cypress video * Save docker logs * set working directory for logs * set working directory for logs * add space * Remove working directory from push logs * Rename db to postgres * Add a stop docker container step in e2e before getting logs * Change docker compose down to stop to retain logs * get rid of docker compose stop * set base url to localhost again ? * change local cypress script from db to postgres --------- Co-authored-by: Austin Hall <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Boban Ljuljdjurovic <[email protected]> Co-authored-by: Boban <[email protected]>
- Loading branch information
1 parent
b7b0728
commit 4225f1d
Showing
23 changed files
with
3,085 additions
and
1,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,7 @@ node_modules | |
.env.local | ||
|
||
# localstack data | ||
volume/ | ||
volume/ | ||
|
||
cypress/screenshots | ||
cypress/videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
services: | ||
# PostgreSQL database | ||
postgres: | ||
image: "postgres:alpine" | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- ../sql/core.sql:/docker-entrypoint-initdb.d/core.sql | ||
- ../seed-scripts/sql/01-init.sql:/docker-entrypoint-initdb.d/01-init.sql | ||
- ./assets/data.sql:/docker-entrypoint-initdb.d/data.sql | ||
- ../seed-scripts/sql/.pgpass/:/usr/local/lib/.pgpass | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- PGUSER=postgres | ||
- POSTGRES_PASSWORD=pw | ||
- POSTGRES_DB=ecr_viewer_db | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready"] | ||
interval: 2s | ||
timeout: 5s | ||
retries: 20 | ||
|
||
# Next.js app | ||
ecr-viewer: | ||
build: | ||
context: ../../.. | ||
dockerfile: ./containers/ecr-viewer/Dockerfile | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:pw@db:5432/ecr_viewer_db} | ||
- APP_ENV=${APP_ENV:-prod} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
246 changes: 0 additions & 246 deletions
246
.../ecr-viewer/seed-scripts/baseECR/cypress/6100896d-b520-497c-b2fe-1c111c679274/CDA_RR.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.