Is there a way to get a dockerstorage based flow t...
# prefect-server
g
Is there a way to get a dockerstorage based flow to listen on a port? Similar to publishing a port when a container is run? I’ve got a device that will only backup to an ftp server. I’m wanting my flow to listen for connections on a public port. Is there a different design pattern recommended?
k
Hi @Garret Cook! I’m not understanding 100% quite yet. What do you mean by listen on a port? Do you just want a port open to pass data or are you trying to listen to trigger the flow?
g
Just get my dockerstorage based container to listen for passing data after the flow starts. Going to have a task setup a process in the container to listen for data, and another task trigger the remote device to backup to that container, then save the result to S3.
Does that clarify at all?
k
I think so. Will check with the team and get back to you tom.
g
brilliant, thanks
k
Hey Garrett, you can create a custom image that exposes a given port but there won’t be any broadcasting by the flow on that port. Unfortunately, in general, running the container this way is not a use case we have support for.