184 points · by crohr · 12y ago · 52 comments
It builds the packages on virtual machines for many different distributions and 32+64 bit CPUs.
Hope people will just "get it" soon!
I could totally "get" why it's the number one under used service. I wish I could just as easily grasp how to use this service.
pkgr.io does a way better job explaining what the service provide, why it's a good idea to use it, and even a quick overview of how to use it.
One edge-case, where fpm cannot help by itself, occurs in the python (w/ C-bindings) world, when your dev and prod environments use different libc versions. I got around that issue by running fpm inside a VM, which matches the libc version of the target system.
But it's still not as easy as it can be - so pkgr.io looks promising.
As a Rails developer, I've become tired of messing with
ruby versions, gem dependencies, bundle installations,
deploy-time asset precompilation on my servers,
etc. ... Basically, what I wanted was a Heroku-like
workflow that generates and hosts debian packages,
which is what exactly what PKGR provides.
As a customer of Heroku's excellent but rather expensive services, and a fan of deployment via package management, I'm certainly intrigued.http://manpages.ubuntu.com/manpages/trusty/man8/checkinstall...
This manifests itself by any "mkdir -p" which requires root in the `make install` phase failing.
That does mean, however, that it's now your job to rebuild your package whenever a library gets a security fix. Possibly worth the sacrifice, but an important one I think people need to understand.
You package your application and its dependencies as .debs, create an apt-mirror containing those debs, add that apt repo to your deploy-targets' sources.list.d's, "apt-get install yourcorp-system-release", and relax.
Missing the neat config interface of pkgr (and the build service obviously!) but it's fully supported by Debian/Ubuntu now (used to build almost all of their ruby app and library packages).
In short, if you already have a working Docker installation, you probably don't need PKGR, though nothing prevents you from building your containers by simply apt-get install'ing the app instead of having 10's of RUN commands to install the dependencies.
"The easiest way to get a debian package out of any app"
Basically you push up to the service and it takes care of building a debian package for you and provides an apt repo to pull from.
Usually you end up having to do some permutation of https://wiki.debian.org/HowToPackageForDebian
In this case, containers have definite merits. For example, you can be sure you're not inadvertently dependeing on something that happens to be installed on your systems but may not be explicitly declared as a dependency of your package. On the other hand, is containerization going to make it harder for admins to deploy security updates, especially for things that are usually system-wide libraries in the conventional distro packaging model, like OpenSSL?
Those of us long time Debian users can appreciate having a service for those (very rare) situations in which something is not already (very well) packaged. Making sure that you're not inadvertently depending on something is as easy as "apt-get install" on the target machine (usually your webserver that is running the same version of Debian as your dev machine).
Does anyone have any suggestions for other platforms? Perhaps Windows, OSX, etc?