https://prefect.io logo
#prefect-community
Title
# prefect-community
a

Arsenii

05/21/2020, 9:58 AM
Hey all! I'm trying to set up a CircleCI job that builds and pushes flows Docker images to AWS ECR. CircleCI provides a remote docker execution environment, and to connect to it I need to pass on TLS configuration to the docker client. Unfortunately Prefect seems to only expose the
base_image
of
docker.APIClient
(https://github.com/PrefectHQ/prefect/blob/1447982cc63a1f87c4a19cc7be18f2b2693fb883/src/prefect/environments/storage/docker.py#L508). Any suggestions on how to do this? Thanks!
👀 3
l

Laura Lorenz (she/her)

05/21/2020, 12:11 PM
Hi @Arsenii, I’m not sure of a workaround per se but it looks like the signature of exactly where you found the client instantiation could be changed to accept TLS config, configured by the user against an attribute of the
Docker
Storage instance like you can for
base_url
now. Let me get the bot to open an issue off this thread.
@Marvin open “Expose TLS config on Docker storage”
a

Arsenii

05/21/2020, 12:19 PM
Thanks @Laura Lorenz (she/her)! yes, being able to pass my own
TLSConfig
object as an initialization parameter (
**kwargs
?..) to the
Docker
object would basically solve the problem. Maybe I can install a fork of
prefect
locally for now as a workaround.