Data analysis tools for CATCH, an astronomical survey search tool
Get required packages useful for testing:
pip install .[tests]
Running the tests:
tox -e py312-test
Running the tests with remote tests enabled, here for python 3.12:
tox -e py312-test -- --remote-data
Replacing 312 with something appropriate for your system. A list of all testing environments can be viewed with
tox -l
The CAT may be run as a containerized service, hosted locally or by AWS Fargate.
Running locally will install the currently checked out version of the CAT.
- Copy env-template to .env and edit. a. Set TF_VAR_CAT_DEPLOYMENT="local"
- bash _docker
- Added terraform configuration. For now, we are depending on my local machine for state-files.
- Moved docker stuff to just two files in the root dir: Dockerfile and docker-compose.yml. We'll worry about different deployments later
- To run the app locally, use
docker-compose up - To deploy to AWS:
- Don't do this for now -- rely on DWD to do it -- this is just FYI
- Update the tag in .env
- Rebuild with e.g.
docker-compose build - Push to ECR with
_push_ecr_image - Update tf state with
./_tf apply
- I also made some changes adding a /hello route, and wiring up the flask code to get it to work
- Added a simple script to ping the endpoint created by tf,
./_ping_endpoint