Open botanicus opened 5 years ago
Two things (source):
docker
binary as a volume, which is not unreasonable, given that it's guaranteed that it's going to be present.I reckon it makes sense to mount Docker as a volume for now, since it's the easier and quicker solution.
If we'd do real DinD, we'd have to do #14. For passing the binary as a volume, we don't have to.
The top-level manager #6 can work in 2 ways:
Either it prints it commands that are then piped to the host OS shell (that all is probably wrapped into a helper). This is OK to start, but at the end of the day, it'd be great if the manager could execute the commands directly.
The issue is that it's hard to install docker in BusyBox. BusyBox doesn't have a package manager. I can imagine a lot of tools would be missing for compilation. I wonder whether it's possible to build a statically-linked
docker
binary and copy it just as we copy the binary we build from the Crystal source.Probably the easiest solution is to derive the final image from https://hub.docker.com/_/docker