The QC Portal app makes the quality_control
metadata (see aind-data-schema) explorable and provides tools for manual annotation of metrics.
[todo]
panel serve src/aind_qc_portal/qc_portal_app.py src/aind_qc_portal/qc_asset_app.py src/aind_qc_portal/qc_app.py --static-dirs images=src/aind_qc_portal/images --autoreload --show --port 5007 --allow-websocket-origin=10.128.141.92:5007 --keep-alive 10000
(port is set to differentiate from aind-metadata-viz app)
There is a Dockerfile
which includes the entrypoint to launch the app.
- Build the Docker image locally and run a Docker container:
docker build -t aind-qc-portal .
docker run -e ALLOW_WEBSOCKET_ORIGIN=localhost:8000 -p 8000:8000 aind-qc-portal
- Navigate to 'localhost:8000` to view the app.
- On pushes to the
dev
ormain
branch, a GitHub Action will run to publish a Docker image toghcr.io/allenneuraldynamics/aind-qc-portal:dev
orghcr.io/allenneuraldynamics/aind-qc-portal:latest
. - The image can be used by a ECS Service in AWS to run a task container. Application Load Balancer can be used to serve the container from ECS. Please note that the task must be configured with the correct env variables (e.g.
API_GATEWAY_HOST
,ALLOW_WEBSOCKET_ORIGIN
).