I'm looking for more information on some basics on...
# prefect-getting-started
j
I'm looking for more information on some basics on running a dockerized script that communicates with prefect. I currently have a docker-compose yaml script that takes a postgredb and then I execute a dockerized script that uses sqlalchemy block. My prefect server is on the host computer. (I'll try dockerizing prefect later). Here is the command:
Copy code
docker run -t   --network=bc-dev_default -v /home/j/project/sales:/src sales_ingest:v002  --filename=/src/sales.csv
Here is the tail of the error:
Copy code
ValueError: Unable to find block document named postgres-dev for block type sqlalchemy-connector
The name matches the block named shown in the UI. Here is my Dockerfile
Copy code
FROM python:3.9

RUN apt-get install wget

WORKDIR /app

COPY requirements.txt .
COPY ingest_sales_flow.py ingest_sales_flow.py

RUN pip install -r requirements.txt

ARG PREFECT_API_URL
ENV PREFECT_API_URL=$PREFECT_API_URL

ENTRYPOINT [ "python", "ingest_sales_flow.py" ]