ek
05/09/2022, 8:28 PM~/.prefect/config.toml
looks like this:
backend = "server"
[server]
endpoint = "<http://prefect-server-apollo.prefect-server:4200>"
• in .github/workflows/build.yml
, execute python flow.py
which it should build as docker storage
when ever my github-runner exec python flow.py
, it won’t build the docker image for me here is the error message:
<http://localhost:2376/version>: Bad Request ("b'Client sent an HTTP request to an HTTPS server.'")
Any thoughts/suggestions would be much appreciate it!Kevin Kho
05/09/2022, 8:48 PMek
05/09/2022, 9:25 PMKevin Kho
05/09/2022, 9:27 PMZanie
05/09/2022, 11:35 PMdef CIDocker(**kwargs) -> Docker:
import docker
default_client = docker.from_env()
# This will break local runs which makes me think this *may* be CircleCI specific
if default_client.api.base_url != "<http+docker://localhost>":
kwargs.setdefault("base_url", default_client.api.base_url)
kwargs.setdefault("tls_config", docker.TLSConfig(default_client.api.cert))
return Docker(**kwargs)
ek
05/10/2022, 3:41 AM