Currently images from this repo need to be manually pushed by a developer. This can be done by running the following script after setting appropriate AWS credentials:
$ ./deploy/push-ecr-image.sh
NOTE: The script attempts to auto-detect the target AWS region, but you may need to either set AWS_REGION
in your environment or update your profile configuration with a region
value.
Currently, the application polling loop does not perform any actual work. Instead, the application can be tested by invoking a run-studies.ts
script either locally or in the deployed container on ECS Fargate.
Create a .env
file from the example and populate with valid values. Note that the AWS values can be easily referenced in a deployed stack per these environment variables in the active task / task definition:
$ cp .env.example .env
Run the script (make sure you have AWS credentials for your target region created):
$ npm install
$ npx tsx ./src/lib/run-studies.ts