Hi, Good morning to all. I wanted to ask whether i...
# prefect-docker
p
Hi, Good morning to all. I wanted to ask whether it's possible to deploy a flow, which contains python_flow in docker itself. If so, how would the deployment look like? So step by step what I did is sth like : 1. Build docker, which has /python/pb_flow.py in it (runs fine locally) 2. Pushed the image to AWS ECR 3. In the deployment I've specified image="my_image" (this part works fine), but I am not sure what source shall I use Can you maybe take a quick a look and let me know what kind of obvious mistake I'm doing? 🙂 The goal is to keep the python flow code inside docker image.
Copy code
if __name__ == "__main__":
    deploy(
        pb_flow.from_source(
            entrypoint=entrypoint,
            source="/python/pb_flow.py"
        ).to_deployment(
            name="pb_flow_docker",
            tags=default_snowflake_tags + ["test"],
            enforce_parameter_schema=True,
        ),
        print_next_steps_message=False,
        work_pool_name=default_work_pool,
        image="<http://362403473208.dkr.ecr.eu-west-1.amazonaws.com/pbtest:latest|362403473208.dkr.ecr.eu-west-1.amazonaws.com/pbtest:latest>",
        push=False