-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from i-dot-ai/feature/run-e2e-in-cd-pipeline
Run e2e in cd pipeline
- Loading branch information
Showing
11 changed files
with
780 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,60 @@ | ||
EMBEDDING_MODEL=paraphrase-albert-small-v2 | ||
DJANGO_SECRET_KEY=1n53cur3K3y | ||
POSTGRES_PASSWORD=insecure | ||
COMPRESSION_ENABLED=False | ||
AWS_REGION=eu-west-2 | ||
DJANGO_LOG_LEVEL=WARNING | ||
OPENAI_MODEL=azure/gpt-35-turbo-16k | ||
|
||
# === Database === | ||
|
||
ELASTIC__HOST=elasticsearch | ||
ELASTIC__VERSION=8.11.0 | ||
ELASTIC__USER=elastic | ||
ELASTIC__PASSWORD=redboxpass | ||
ELASTIC__PORT=9200 | ||
ELASTIC__SCHEME=http | ||
ELASTIC__SUBSCRIPTION_LEVEL=basic | ||
ELASTIC_ROOT_INDEX=redbox-data-integration | ||
|
||
# === Redis === | ||
|
||
EMBED_QUEUE_NAME=redbox-embedder-queue | ||
INGEST_QUEUE_NAME=redbox-ingester-queue | ||
|
||
REDIS_HOST=redis | ||
REDIS_PORT=6379 | ||
|
||
# === Object Storage === | ||
|
||
MINIO_HOST=minio | ||
MINIO_PORT=9000 | ||
# MINIO_ACCESS_KEY=minioadmin | ||
# MINIO_SECRET_KEY=minioadmin | ||
AWS_ACCESS_KEY=minioadmin | ||
AWS_SECRET_KEY=minioadmin | ||
|
||
# minio or s3 | ||
OBJECT_STORE=minio | ||
BUCKET_NAME=redbox-storage-dev | ||
|
||
# === Django App === | ||
DJANGO_SETTINGS_MODULE=redbox_app.settings | ||
DEBUG=True | ||
DJANGO_SECRET_KEY=1n53cur3K3y | ||
DJANGO_LOG_LEVEL=DEBUG | ||
ENVIRONMENT=INTEGRATION | ||
POSTGRES_USER=redbox-core | ||
POSTGRES_DB=redbox-core | ||
POSTGRES_PASSWORD=insecure | ||
[email protected] | ||
POSTGRES_HOST=db | ||
CORE_API_HOST=core-api | ||
CORE_API_PORT=5002 | ||
|
||
EMAIL_BACKEND_TYPE=CONSOLE | ||
GOV_NOTIFY_API_KEY=f4k3_k3y | ||
[email protected] | ||
GOVUK_NOTIFY_PLAIN_EMAIL_TEMPLATE_ID=example-id | ||
EMAIL_FILE_PATH='/app/mail' | ||
|
||
USE_STREAMING=False | ||
COMPRESSION_ENABLED=False | ||
FILE_EXPIRY_IN_DAYS=30 | ||
MAX_SECURITY_CLASSIFICATION=OFFICIAL_SENSITIVE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from enum import StrEnum | ||
|
||
|
||
class Environment(StrEnum): | ||
def __new__(cls, value: str, is_test: bool, hosts=list[str]): | ||
obj = str.__new__(cls, [value]) | ||
obj._value_ = value | ||
obj.is_test = is_test | ||
obj.hosts = hosts | ||
return obj | ||
|
||
def is_local(self) -> bool: | ||
return self is Environment.LOCAL | ||
|
||
LOCAL = ("LOCAL", True, ["localhost", "127.0.0.1", "0.0.0.0"]) # noqa: S104 nosec: B104: Not in prod | ||
INTEGRATION = ("INTEGRATION", True, ["localhost", "127.0.0.1", "0.0.0.0"]) # noqa: S104 nosec: B104: Not in prod | ||
DEV = ("DEV", False, ["redbox-dev.ai.cabinetoffice.gov.uk"]) | ||
PREPROD = ("PREPROD", False, ["redbox-preprod.ai.cabinetoffice.gov.uk"]) | ||
PROD = ("PROD", False, ["redbox.ai.cabinetoffice.gov.uk"]) | ||
|
||
|
||
class Classification(StrEnum): | ||
"""Security classifications | ||
https://www.gov.uk/government/publications/government-security-classifications/""" | ||
|
||
OFFICIAL = "Official" | ||
OFFICIAL_SENSITIVE = "Official Sensitive" | ||
SECRET = "Secret" # noqa: S105 | ||
TOP_SECRET = "Top Secret" # noqa: S105 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.