From 7ab271192d8753b278432277a90560f3e6d11dc3 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 18 Apr 2016 14:05:42 +0200 Subject: Stop deploying packages --- content/images/be-prepared-to-stop.jpg | Bin 0 -> 25656 bytes content/technical/stop-deploying-packages.md | 46 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 content/images/be-prepared-to-stop.jpg create mode 100644 content/technical/stop-deploying-packages.md (limited to 'content') diff --git a/content/images/be-prepared-to-stop.jpg b/content/images/be-prepared-to-stop.jpg new file mode 100644 index 0000000..f6332a8 Binary files /dev/null and b/content/images/be-prepared-to-stop.jpg differ diff --git a/content/technical/stop-deploying-packages.md b/content/technical/stop-deploying-packages.md new file mode 100644 index 0000000..3732a45 --- /dev/null +++ b/content/technical/stop-deploying-packages.md @@ -0,0 +1,46 @@ +Title: Stop deploying packages +Date: 2016-04-18 13:35 +Tags: linux, technical, kubernetes +Slug: stop-deploying-packages +Category: Linux +Summary: Stop assembling packages while deploying a system. Stop using tools that assemble packages while dploying a production system. + +Stop assembling packages while deploying a system. Stop using tools that assemble packages while deploying a production system. + +
+Be prepared to stop +
+ +Packages are for development. Whether that's developers of systems or developers of services. Don't use ```apt-get install``` or ```yum install``` or ```npm install``` or any of another hundred other package installers on your production systems. Use those tools as part of your build process. + +

Packages are build components

+ +This applies to Linux distribution packages, RPMs, NPM packages, Ruby Gems, JAR files, and so on. Those packages are build components of an application or operating system. Those packages go into your images, your containers, your applications, and your file system trees. + +When it comes time to deploy those systems, services or applications, don't assemble these parts all over again. Use what you assembled previously during development, the parts you integrated and tested. Deploy exactly those bits. + +

It wasn't always this way

+ +Do you remember a time when you built your Linux or BSD systems from source every time on every machine? In fact, you can still do that today. There is even fancy tooling that lets you assemble stuff on your system from source with just a couple commands. But we moved on. Binary packages were born. We wanted a reproducible, verifiable, composable abstraction. + +To this day, source code is still really important and a vital part of development, troubleshooting, not to mention a corner stone of [free software](http://www.gnu.org/philosophy/free-sw.en.html#content). + +We're moving on again. Packages are becoming build components, and not the deployable atoms of a system. For some people this is old news ... but others haven't yet gotten the memo. + +

What's the alternative?

+ +Modern systems and services are deployed as images, file system trees, or the entire "userland" of the operating system, as seen in containers. + +This holds whether we're talking about modern mobile applications, Docker containers, or operating systems like [Atomic Host](http://www.projectatomic.io/) or [CoreOS](https://coreos.com/) or [ChromeOS](https://www.chromium.org/chromium-os), plans like [XDG apps](https://en.wikipedia.org/wiki/Xdg-app), and the [list goes on](http://0pointer.net/blog/revisiting-how-we-put-together-linux-systems.html) and on. Even certain languages like [Golang](https://golang.org/) (annoyingly) produce an entire userland statically linked as their build output. + +

What about upgrades?

+ +Thanks for asking. But again, friends don't let friends assemble software on their production systems. If you're running ```apt-get update``` or ```yum update``` on a production system you're asking for trouble. Packages are part of your build process, whether an update or a new installation. + +

Is it solved?

+ +This move beyond packages is not done. Stands to reason, or I wouldn't be writing about it. Many of these post-package solutions have poor inventory, security updates, updating mechanisms. + +But the mindshift has already happened. The movement is underway and has significant momentum. By thinking about things in terms of the new reality we finish building out the remaining gray areas. + +Packages are development tools. -- cgit v1.2.3