registry for storage. In our Gitlab CI/CD pipeline, we want to register the flow when the feature branch is merged into main. However one problem we’re facing is that our CICD pipeline runs on docker, and since Prefect builds the docker image in the registration step, our pipeline fails (docker in docker). I’ve been looking for workaround around this and would be grateful for any ideas: I can tell you about what I have tried so far in the comments
a
Anna Geller
07/18/2022, 3:14 PM
the easiest solution would be adding a separate job in your CI that runs on ubuntu-latest instead of in a Docker container - dunno about Gitlab, but for GitHub I could send an example if you want
t
Tarek
07/18/2022, 3:30 PM
Yeah that would be cool
Tarek
07/18/2022, 4:14 PM
Just checked it: Running on ubnutu instead of docker is not possible in our Gitlab setup. @Kevin Kho do you know someone who had a similar problem and how they fixed it?
k
Kevin Kho
07/18/2022, 4:20 PM
You need to mount the Docker sock to the container CI/CD is running in so that it has access to build, or you can just not rely on Prefect to build the container for the Flow and you can build it yourself somewhere else? You might run into the same problem though doing it in the CICD
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.