Manuel Mourato
05/21/2020, 7:43 PMstorage = Docker(image_name="flows-storage", image_tag="v1.0",local_image=True,dockerfile="DockerFile-PrefectDependencies")
storage.build()
test_flow.storage=storage
test_flow.register(build=False,labels=['docker-execs-test'])
But when I start a docker agent and run the flow, the run is permanently in Submitted state.
Any idea why this is?Dylan
Manuel Mourato
05/21/2020, 9:36 PMMay 21st 2020 at 8:37:26pm | agent
INFO
Submitted for execution: Container ID: 2195b5fba5fdfe7aebd42cc3d2b24dfd388b593a7906696c158c14adffe333a5
This what appeared in the docker agent at the time of the submission:
[2020-05-21 19:37:26,644] DEBUG - agent | Docker container 2195b5fba5fdfe7aebd42cc3d2b24dfd388b593a7906696c158c14adffe333a5 started
[2020-05-21 19:37:26,666] DEBUG - agent | Completed flow run submission (id: b5dc6bf7-c17f-4b64-aa00-ef75e92eddb1)
[2020-05-21 19:37:26,667] DEBUG - agent | No flow runs found
[2020-05-21 19:37:26,668] DEBUG - agent | Next query for flow runs in 1.0 seconds
[2020-05-21 19:37:27,675] DEBUG - agent | Querying for flow runs
....
The image is is listed as any other:
REPOSITORY TAG IMAGE ID CREATED SIZE
flows-storage v1.0 4fbaeb689778 2 hours ago 2.26GB
Manuel Mourato
05/21/2020, 9:37 PMDylan
Dylan
Manuel Mourato
05/21/2020, 9:41 PMCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
44b17ca9857e prefecthq/ui:0.10.7 "/intercept.sh" 2 weeks ago Up 2 weeks 80/tcp, 0.0.0.0:8080->8080/tcp tmp_ui_1
68bc69e6109c prefecthq/server:0.10.7 "python src/prefect_…" 2 weeks ago Up 2 weeks tmp_scheduler_1
2aa5452f37ab prefecthq/apollo:0.10.7 "npm run serve" 2 weeks ago Up 2 weeks 0.0.0.0:4200->4200/tcp tmp_apollo_1
99fb78a30f84 prefecthq/server:0.10.7 "bash -c 'prefect-se…" 2 weeks ago Up 2 weeks 0.0.0.0:4201->4201/tcp tmp_graphql_1
fff0e7c91174 hasura/graphql-engine:v1.1.0 "graphql-engine serve" 2 weeks ago Up 2 weeks 0.0.0.0:3000->3000/tcp tmp_hasura_1
70baeada2c2e postgres:11 "docker-entrypoint.s…" 2 weeks ago Up 2 weeks 0.0.0.0:5432->5432/tcp tmp_postgres_1
It doesn't seem to have created it from the mentioned imageManuel Mourato
05/21/2020, 9:42 PMManuel Mourato
05/22/2020, 9:48 AMFROM prefecthq/prefect:0.10.7-python3.6
ADD local_folder_content /root/content
However , if I use a dockerfile like this, despite it building the image correctly , it causes the issue I mentioned before:
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y python3.6 python3.6-dev python3-pip
RUN ln -s /usr/bin/pip3 /usr/bin/pip
RUN ln -s /usr/bin/python3.6 /usr/bin/python
RUN pip install --upgrade pip
RUN pip install --upgrade pip setuptools
ENV LC_ALL C.UTF-8
ADD local_folder_content /root/content
RUN pip install prefect==0.10.7
I can try and see what the prefecthq image contains that I am missingManuel Mourato
05/22/2020, 11:45 AMJenny
05/22/2020, 11:48 AMDylan