Hi, I am trying to start with Prefect :slightly_smiling_face: we want to build the flows in our CI u...
a
Hi, I am trying to start with Prefect 🙂 we want to build the flows in our CI using Github Actions we run locally python script and build the Dockers successfully when doing the same in Github workflow
Copy code
storage = flows_storage(registry_url, image_name, tag)
storage = Docker(
        dockerfile="Dockerfile",
        image_tag=tag,
        registry_url=registry_url,
        image_name=image_name,
    )
storage.build(push=False)
traceback in the Thread attached. any idea? maybe timeout? Anyway to increase timeout? Thanks
k
Hey @Amichai Ben Ami, I am not sure where this is coming from, I think it’s not able to find the Docker sock? Is Docker up in your CI environment? Also, when you get the chance, could you move the traceback to the thread to keep the main channel neater?
a
sure. docker is up and Im getting the right results for
docker ps.
it is only
docker build
which is not working.
and getting -
Copy code
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
    chunked=chunked,
  File "/opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/http/client.py", line 1065, in _send_output
    self.send(chunk)
  File "/opt/hostedtoolcache/Python/3.7.7/x64/lib/python3.7/http/client.py", line 987, in send
    self.sock.sendall(data)
ConnectionResetError: [Errno 104] Connection reset by peer
a
maybe it’s easier to build your image separately from Prefect? here is an example that shows how you could build your image first on your own copying your flow files to the image, and then registering this way
🙏 1