-
Notifications
You must be signed in to change notification settings - Fork 76
/
index.html
60 lines (53 loc) · 5.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: "Deploy web apps anywhere"
description: "From bare metal to cloud VMs using Docker, deploy web apps anywhere with zero downtime."
---
<div class="headline">
<header>
<h1>Deploy web apps anywhere.</h1>
<p>From bare metal to cloud VMs.</p>
</header>
</div>
<div class="video">
<div class="video__content">
<video data-event="Kamal Demo" poster="https://d2biiyjlsh52uh.cloudfront.net/kamal/kamal-demo.webp" src="https://d2biiyjlsh52uh.cloudfront.net/kamal/kamal-demo.mp4" preload="metadata" crossorigin playsinline>
<track src="https://d2biiyjlsh52uh.cloudfront.net/kamal/kamal-demo-en.vtt" kind="captions" label="English" srclang="en" default>
</video>
<button aria-label="Play video about Kamal"></button>
</div>
</div>
<div class="intro">
<div class="intro__content">
<p>Kamal offers zero-downtime deploys, rolling restarts, asset bridging, remote builds, accessory service management, and everything else you need to deploy and manage your web app in production with Docker. Originally built for Rails apps, Kamal will work with any type of web app that can be containerized.</p>
<ul>
<li><a href="{{ '/docs/' | absolute_url }}" class="button" aria-label="Read the docs">Read the docs</a></li>
<li><a href="https://github.com/basecamp/kamal" class="button" aria-label="View the source">View the source</a></li>
</ul>
</div>
</div>
<div class="page">
<div class="page__content">
<article>
<h2>Vision</h2>
<p>In the past decade+, there’s been an explosion in commercial offerings that make deploying web apps easier. Heroku kicked it off with an incredible offering that stayed ahead of the competition seemingly forever. These days we have excellent alternatives like Fly.io and Render. And hosted Kubernetes is making things easier too on AWS, GCP, Digital Ocean, and elsewhere. But these are all offerings that have you renting computers in the cloud at a premium. If you want to run on your own hardware, or even just have a clear migration path to do so in the future, you need to carefully consider how locked in you get to these commercial platforms. Preferably before the bills swallow your business whole!</p>
<p>Kamal seeks to bring the advance in ergonomics pioneered by these commercial offerings to deploying web apps anywhere. Whether that’s low-cost cloud options without the managed-service markup from the likes of Digital Ocean, Hetzner, OVH, etc, or it’s your own colocated bare metal. To Kamal, it’s all the same. Feed the config file a list of IP addresses with vanilla Ubuntu servers that have seen no prep beyond an added SSH key, and you’ll be running in literally minutes.</p>
<p>This approach gives you enormous portability. You can have your web app deployed on several clouds at ease like this. Or you can buy the baseline with your own hardware, then deploy to a cloud before a big seasonal spike to get more capacity. When you’re not locked into a single provider from a tooling perspective, there are a lot of compelling options available.</p>
<p>Ultimately, Kamal is meant to compress the complexity of going to production using open source tooling that isn’t tied to any commercial offering. Not to zero, mind you. You’re probably still better off with a fully managed service if basic Linux or Docker is still difficult, but as soon as those concepts are familiar, you’ll be ready to go with Kamal.</p>
<hr class="ornament">
<h3>Why not just run Capistrano, Kubernetes or Docker Swarm?</h3>
<p>Kamal basically is Capistrano for Containers, without the need to carefully prepare servers in advance. No need to ensure that the servers have just the right version of Ruby or other dependencies you need. That all lives in the Docker image now. You can boot a brand new Ubuntu (or whatever) server, add it to the list of servers in Kamal, and it’ll be auto-provisioned with Docker, and run right away. Docker’s layer caching also speeds up deployments with less mucking about on the server. And the images built for Kamal can be used for CI or later introspection.</p>
<p>Kubernetes is a beast. Running it yourself on your own hardware is not for the faint of heart. It’s a fine option if you want to run on someone else’s platform, either transparently <a href="https://thenewstack.io/render-cloud-deployment-with-less-engineering/">like Render</a> or explicitly on AWS/GCP, but if you’d like the freedom to move between cloud and your own hardware, or even mix the two, Kamal is much simpler. You can see everything that’s going on, it’s just basic Docker commands being called.</p>
<p>Docker Swarm is much simpler than Kubernetes, but it’s still built on the same declarative model that uses state reconciliation. Kamal is intentionally designed around imperative commands, like Capistrano.</p>
<p>Ultimately, there are a myriad of ways to deploy web apps, but this is the toolkit we’ve used at <a href="https://37signals.com">37signals</a> to bring <a href="https://www.hey.com">HEY</a> and all our other formerly cloud-hosted applications <a href="https://world.hey.com/dhh/we-have-left-the-cloud-251760fb">home to our own hardware</a> — without losing the advantages of modern containerization tooling.</p>
<hr class="ornament">
<h3>Name</h3>
<p>Kamal is named after <a href="https://exploration.marinersmuseum.org/object/kamal/">the ancient Arab navigational tool</a> used by sailors to keep course by determining their latitude via the Pole Star. (Kamal was formerly known as MRSK).</p>
<figure>
<picture>
<source type="image/webp" srcset="{{ '/assets/images/kamal.webp' | absolute_url }}">
<img src="{{ '/assets/images/kamal.png' | absolute_url }}" alt="A person uses a Kamal, an ancient Arab navigational tool, to measure the angle between the horizon and the Pole Star at night by the sea.">
</picture>
</figure>
</article>
</div>
</div>