Thread
#prefect-server
    ale

    ale

    1 year ago
    Hi all, we’re trying to figure out how to build the image of a Prefect Flow inside a Jenkins pipeline. We would want to avoid using Prefect directly to build the image, mainly because we don’t want to have Jenkins to depend on Prefect for building docker containers. Have you find yourself in such situation before? How did you manage to create Prefect docker images without relying on storage.build() and flow.register()? Do you think it is something doable?
    Chris White

    Chris White

    1 year ago
    Hi Alessandro - I think this is possible but might be a little clunky; you could use
    cloudpickle
    directly to save the Flow contents to a file, and then place that file within your Docker image at
    /opt/prefect/flows/slugify(flow-name).prefect
    . The placement of the file could be done within Jenkins without requiring Prefect
    ale

    ale

    1 year ago
    Thank you very much @Chris White!!! Much appreciated 🙂