Is it possible to develop a custom Mill plugin to run tasks within Docker containers, rather than on the system executing Mill? #5157
Replies: 1 comment 3 replies
-
That depends on what you imagine Mill doing with "Docker"/containerization. And what the actual goal is.
But I assume you expect some more 'fine-grained' / principled approach. Where there is some `magic' to run parts of the build implicitly in Docker. I don't think there is a good way to write such a plugin. On the other hand, I can imagine for example having Mill 'launch' the build inside Docker. It already runs things inside a deamon. I could imagine that that deamon runs inside a Docker container to 'standardize' the build more. Anyway, I think the important part is to write your use cases. What problem should it solve? Is there a good example of what you would want to achive? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question is in the title. I am curious about Mill as a general purpose build tool, as described in @lihaoyi's recent blog. Many of these build tools (like Earthly) use Docker under the hood to provide a reproducible build environment.
Would it be possible today to create a plugin/trait that did this? If so, how would it interact with other plugins?
E.g. would there be a way to use the existing
import pythonlib._
but have thepip install
occur within a Docker container? I'm not particularly familiar with Scala, so I'm not sure whether this would be something another plugin could do natively (perhaps with a meta-build?) or whether each other plugin would need a Docker version (e.g.import pythonlib_docker._
)Beta Was this translation helpful? Give feedback.
All reactions