-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run e2e in cd pipeline #491
Conversation
d8b15a8
to
66ef2be
Compare
e450a51
to
0205488
Compare
bc0b512
to
215eca4
Compare
2b2067f
to
5ffe539
Compare
This reverts commit a72dd41.
e7533a0
to
5df61a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!
.github/workflows/integration.yml
Outdated
@@ -54,8 +54,7 @@ jobs: | |||
cp .env.integration .env | |||
echo AZURE_OPENAI_ENDPOINT=${{ secrets.AZURE_OPENAI_ENDPOINT }} >> .env | |||
echo AZURE_OPENAI_API_KEY=${{ secrets.AZURE_OPENAI_API_KEY }} >> .env | |||
docker compose up -d --wait elasticsearch | |||
docker compose up -d --wait core-api worker | |||
docker compose up -d --wait elasticsearch core-api worker db django_app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
annoyingly we have found that the docker-compose depends_on
is not sufficient to ensure that elastic is ready to accept connections, this leads to other services (especially the worker for some reason) failing to start, hence why elastic is started before all the others
.github/workflows/integration.yml
Outdated
pip install boto3 | ||
pip install python-jose | ||
pip install websockets | ||
poetry install --with dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
django_app/redbox_app/settings.py
Outdated
@@ -146,7 +144,7 @@ | |||
|
|||
HOST = ( | |||
"redbox.ai.cabinetoffice.gov.uk" | |||
if ENVIRONMENT.lower() == "prod" | |||
if ENVIRONMENT == "prod" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ENVIRONMENT == "prod" | |
if ENVIRONMENT == "PROD" |
Context
Changes proposed in this pull request
Guidance to review
Relevant links
Things to check