Hello, any experience how to lunch containers in prefect? How to make this container accessible on localhost port? I mean running containers in workflow and make them accessible during pipeline execution
d
Dylan
06/25/2020, 1:27 PM
Hi @Rafal,
To use containerized environments for workflows, check out: https://docs.prefect.io/api/latest/environments/storage.html#docker
Whether the containers are accessible during pipeline execution depends on where and how you set them up. If your docker agent can communicate with Prefect Server / Prefect Cloud, you should be good to go.
If I didn’t answer your question, can you tell me a bit more about your use case and goal? I’ll do my best to help
r
Rafal
06/25/2020, 2:25 PM
Thank you @Dylan. I am not sure. The task is to make analyst work easier - in theory they will click button "lunch R container" and url with container should appear which is accessible by user on specific url for example
d
Dylan
06/25/2020, 7:11 PM
Hmmm. Do you plan on your analysts writing their own Prefect Flows? Or are they writing R scripts that are executed by a Flow that you manage?
r
Rafal
07/08/2020, 3:13 PM
Ideally would be to run and write flow on their own