mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
reinstate build args and check whether imports work now
This commit is contained in:
parent
f10951f81d
commit
9ae81c1099
3 changed files with 16 additions and 12 deletions
4
.github/workflows/deploy_terraform.yml
vendored
4
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -141,6 +141,10 @@ jobs:
|
|||
ecr_repo: condition-etl-${{ needs.determine_stage.outputs.stage }}
|
||||
dockerfile_path: backend/condition/handler/Dockerfile
|
||||
build_context: .
|
||||
build_args: |
|
||||
DEV_DB_HOST=$DEV_DB_HOST
|
||||
DEV_DB_PORT=$DEV_DB_PORT
|
||||
DEV_DB_NAME=$DEV_DB_NAME
|
||||
secrets:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
||||
|
|
|
|||
|
|
@ -2,18 +2,18 @@ FROM public.ecr.aws/lambda/python:3.11
|
|||
# For local running:
|
||||
# FROM python:3.11.10-bullseye
|
||||
|
||||
# ARG DEV_DB_HOST
|
||||
# ARG DEV_DB_PORT
|
||||
# ARG DEV_DB_NAME
|
||||
ARG DEV_DB_HOST
|
||||
ARG DEV_DB_PORT
|
||||
ARG DEV_DB_NAME
|
||||
|
||||
|
||||
# Set working directory (Lambda task root)
|
||||
WORKDIR /var/task
|
||||
|
||||
# Environment
|
||||
# ENV DB_HOST=${DEV_DB_HOST}
|
||||
# ENV DB_PORT=${DEV_DB_PORT}
|
||||
# ENV DB_NAME=${DEV_DB_NAME}
|
||||
ENV DB_HOST=${DEV_DB_HOST}
|
||||
ENV DB_PORT=${DEV_DB_PORT}
|
||||
ENV DB_NAME=${DEV_DB_NAME}
|
||||
|
||||
COPY backend/.env.local backend/.env.local
|
||||
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ import os
|
|||
|
||||
# from io import BytesIO
|
||||
|
||||
# from backend.condition.condition_trigger_request import ConditionTriggerRequest
|
||||
# from backend.condition.lookups.uprn_lookup_s3 import UprnLookupS3
|
||||
# from backend.condition.processor import process_file
|
||||
# from utils.logger import setup_logger
|
||||
# from utils.s3 import read_io_from_s3
|
||||
from backend.condition.condition_trigger_request import ConditionTriggerRequest
|
||||
from backend.condition.lookups.uprn_lookup_s3 import UprnLookupS3
|
||||
from backend.condition.processor import process_file
|
||||
from utils.logger import setup_logger
|
||||
from utils.s3 import read_io_from_s3
|
||||
|
||||
|
||||
# logger = setup_logger()
|
||||
logger = setup_logger()
|
||||
|
||||
|
||||
def handler(event: Mapping[str, Any], context: Any) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue