Skip to content

Commit

Permalink
Add build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jstray committed Oct 20, 2024
1 parent 8acd2d6 commit 2a7d8a2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ To test:
poetry run pytest
```

To build and deploy:

- commit changes to rc-release branch
- then run
```
docker buildx bake --set '*.platform=linux/amd64' -f docker-compose.yml --no-cache --load
cd ../ranking-challenge-submission
poetry run python push_to_ecr.py --team perspective
```
- manual "update service" on prod-prc-perspective-app-service in AWS
- PERSPECTIVE_API_KEY and PERSPECTIVE_HOST need to be set in ECS task definition

## API Key

You'll need a Perspective API key, which should be in the `PERSPECTIVE_API_KEY` environment variable. You can put it in `.env` for local use.

0 comments on commit 2a7d8a2

Please sign in to comment.