Skip to content

Small-Bodies-Node/catch-analysis-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CATCH Analysis Tools

Data analysis tools for CATCH, an astronomical survey search tool

Testing

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

Hosting

The CAT may be run as a containerized service, hosted locally or by AWS Fargate.

Local

Running locally will install the currently checked out version of the CAT.

  1. Copy env-template to .env and edit. a. Set TF_VAR_CAT_DEPLOYMENT="local"
  2. bash _docker

DWD's changes:

  • 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

About

Data analysis tools for CATCH, an astronomical survey search tool

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors