mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fix lambda and docker issues
This commit is contained in:
parent
f6fa782026
commit
f5c038c98d
4 changed files with 15 additions and 3 deletions
|
|
@ -8,7 +8,8 @@ RUN chmod +x /usr/local/bin/aws-lambda-rie
|
|||
WORKDIR /var/task
|
||||
|
||||
COPY utils/ utils/
|
||||
COPY backend/pashub_fetcher/ backend/pashub_fetcher/
|
||||
COPY backend/ backend/
|
||||
COPY datatypes/ datatypes/
|
||||
|
||||
COPY backend/pashub_fetcher/handler/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
|
|
|||
|
|
@ -2,4 +2,12 @@ awslambdaric
|
|||
playwright==1.58.0
|
||||
requests
|
||||
msal
|
||||
openpyxl
|
||||
openpyxl
|
||||
pydantic-settings
|
||||
sqlalchemy
|
||||
sqlmodel
|
||||
psycopg2-binary
|
||||
pytz
|
||||
boto3==1.35.44
|
||||
pandas==2.2.2
|
||||
numpy<2.0
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ services:
|
|||
build:
|
||||
context: ../../../
|
||||
dockerfile: backend/pashub_fetcher/handler/Dockerfile
|
||||
entrypoint: ["/usr/local/bin/aws-lambda-rie", "python", "-m", "awslambdaric"]
|
||||
command: ["backend.pashub_fetcher.handler.handler.handler"]
|
||||
ports:
|
||||
- "9000:8080"
|
||||
env_file:
|
||||
|
|
|
|||
|
|
@ -12,8 +12,9 @@ payload = {
|
|||
{
|
||||
"body": json.dumps(
|
||||
{
|
||||
"pashub_link": "https://pashub.net/jobs/00000000-0000-0000-0000-000000000000/details",
|
||||
"pashub_link": "https://google.co.uk",
|
||||
"uprn": "123456",
|
||||
"hubspot_deal_id": "498926855369",
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue