Miguel Moncada
03/29/2023, 4:16 PM2.8.7
but I'm getting this error on the last step, which is to register the blocks:
executor failed running [/bin/sh -c prefect block register -m prefect_gcp]: exit code: 1
ERROR: Service 'agent' failed to build : Build failed
Have you seen this error before?FROM prefecthq/prefect:2.8.7-python3.8
COPY requirements.txt .
COPY setup.py .
RUN apt-get update && apt-get install --yes libgdal-dev
RUN pip install --upgrade pip setuptools --no-cache-dir
RUN pip install --trusted-host <http://pypi.python.org|pypi.python.org> --no-cache-dir .
ARG PREFECT_API_KEY
ENV PREFECT_API_KEY=$PREFECT_API_KEY
ARG PREFECT_API_URL
ENV PREFECT_API_URL=$PREFECT_API_URL
ENV PYTHONUNBUFFERED True
COPY dataflows/flows/ /opt/prefect/flows/
RUN prefect block register -m prefect_gcp
ENTRYPOINT ["prefect", "agent", "start", "-q", "default"]
This is my Dockerfile for referenceprefect_gcp
dependency, upgrading to 0.3.0
seems to have done the trick