by jrockway · 4y ago · 0 comments
Like the author, I tend to write software in a language that produces a single statically linked binary, so I don't need any of this distribution stuff. I don't need layers, I don't need a Make-alike, I don't need a build cache, but I still have to go out of my way to wrap the generated binary and push it to a super special server. Imagine a world where we just skipped all of this, and your k8s manifest looks like:
containers:
- name: foo-app
image:
- architecture: amd64
os: linux
binary: https://github.com/whatever/download/foo-app/foo-app-1.0.0-linux-amd64
checksum: sha256@1234567890abcdef
- architecture: arm64
os: linux
binary: https://github.com/whatever/download/foo-app/foo-app-1.0.0-linux-arm64
checksum: sha256@abdcef1234567890
Meanwhile, if you don't want to orchestrate your deployment and just want to run your app: wget https://github.com/whatever/download/foo-app/foo-app-1.0.0-linux-amd64
chmod a+x foo-app-1.0.0-linux-amd64
./foo-app-1.0.0-linux-amd64
I dunno. I feel like, as an industry, we spent billions of dollars, founded brand new companies, created a new job title ("Devops", don't get me started), all so that we could avoid making Python output a single binary. I'm not sure that random chaos did the right thing, and you're right to be bitter about it.https://bwackninja.github.io/2020/11/25/packaging-python.htm...