Hedgar
10/03/2022, 3:08 PMAnna Geller
10/03/2022, 4:49 PMHedgar
10/03/2022, 6:53 PMAnna Geller
10/03/2022, 7:27 PMHedgar
10/04/2022, 11:17 AMAnna Geller
10/04/2022, 12:55 PMHedgar
10/04/2022, 4:45 PMpublic.ecr.aws/lambda/python:3.9
doesn’t allow installation from requirement.txt file. I have tried by copying the requirement.txt
file and running
pip install -r requirement.txt
but alway end with error that “no such file found”.-cant’ build. What do you think could be wrong? Although I observed in the template you install the packages directly.Anna Geller
10/04/2022, 6:56 PMADD requirements.txt .
you can also list packages this way:
RUN pip install prefect requests pandas package1 package2 package3 package4
Hedgar
10/04/2022, 7:39 PMengineroom
inside it I have several .py
files each with a task function. also inside this directory I have engineroom.py
in this py file I imported the various task function which I called under a flow e.g
from nnfm import get_nnfm_ideas
from sofia import get_sofia_ideas
@flow(name="run all ideas")
def gather_all_ideas():
get_nnfm_ideas()
get_sofia_ideas()
#def handler(event,context):
gather_all_ideas()
if __name__ == "__main__":
gather_all_ideas()
I was able to run locally successfully by doing:
python engineroom/engineroom.py
My challenge is how to represent in Dockerfile
and the serverless.yml
file to run “serverlessly”
I have tried but all I get is “module engineroom not found”
sorry for taking your time!Anna Geller
10/04/2022, 9:06 PM