by derekp7 · 11y ago · 0 comments
I was putting something together like that a while ago for packaging up software for internal use, that we get from outside vendors. I can dig it up and throw it on Github if anyone is interested.
But the point is: can you pack every single dependency in your project? Usually you'll need something from the outside distro (libc usually). Then if you're building on a different host than your target, you may experience issues or different runtime behaviour.
- Make a spec with / (actually the build root) in %files section
- Run the build
- List the resulting package contents (which is whatever was put into the build root)
- Manually remove any common dirs
- Update the %files section and rebuild
I was thinking about a docker-fpm-builder myself by the way, so maybe we'll meet again :-)