News for hackers. Stuff that matters.
Re:Tiny Container Challenge: Building a 6kB Containerized HT... by tbrock on Thursday April 22, 2021 @03:27AM (#26899810)
The golang example where he uses scratch as the base image is essentially this.
Re:Tiny Container Challenge: Building a 6kB Containerized HT... by pjmlp on Thursday April 22, 2021 @03:30AM (#26899834)
Except he packages it on a container.
Re:Tiny Container Challenge: Building a 6kB Containerized HT... by regularfry on Thursday April 22, 2021 @03:43AM (#26899935)
Which is probably unnecessary if you've got the deployment platform to yourself and can decide that just-run-this-binary is suitable, safe, and manageable. Personally I prefer "just install this .deb" because it wraps up dependency management along with everything else, but that's not been a popular opinion for a long time.
Re:Tiny Container Challenge: Building a 6kB Containerized HT... by secondcoming on Thursday April 22, 2021 @04:30AM (#26900268)
Maybe because creating custom deb packages can be a hair-pulling experience?

But this is our flow too. We have a jenkins job that builds our master branch and uploads deb packages to jfrog. And then another to create a GCP image with these psckages, and a third to actually deploy these images to GCE. Containers are used for the various jenkins jobs, but not on the actual GCE instances.

Re:Tiny Container Challenge: Building a 6kB Containerized HT... by regularfry on Thursday April 22, 2021 @07:06AM (#26901359)
It depends which tooling layer you're using, really. If you're just saying "bundle up these files and put them on that part of the filesystem" it can be extremely simple. If you're trying to provide the full build-from-source chain... less so. Being able to ignore the Debian Packaging Guidelines is the path to sanity.

In a previous incarnation I wrote https://github.com/regularfry/au to take the grunt-work out of packaging up ruby apps, and pretty much all it does is generate the minimum set of files that `dpkg-deb` needs to spit out an archive.

Re:Tiny Container Challenge: Building a 6kB Containerized HT... by debiandev on Thursday April 22, 2021 @09:06AM (#26902299)
Debian Developer here.

Reminder: the Debian Packaging Guidelines are meant for official Debian packages.

Making a package with dpkg-deb -b <dir> <packagename> is very easy and gives all the features of APT (dependency tracking, config management, atomic deployment).

Re:Tiny Container Challenge: Building a 6kB Containerized HT... by regularfry on Thursday April 22, 2021 @10:51AM (#26903423)
Yep. If you're packaging for Debian, the packaging guidelines make sense. If you're packaging something nobody outside your org is ever going to see, you can be a lot more flexible.
Re:Tiny Container Challenge: Building a 6kB Containerized HT... by secondcoming on Thursday April 22, 2021 @09:28AM (#26902478)
Yes, dpkg-deb is a recent discovery. Out of interest, what am I losing by doing it this way rather than if I followed the official guidelines?
Re:Tiny Container Challenge: Building a 6kB Containerized HT... by dijit on Thursday April 22, 2021 @03:42AM (#26899929)
The container, if it's `from SCRATCH` is basically just a gzip/zip archive.

https://github.com/opencontainers/image-spec/blob/master/ima...