forked from basecamp/kamal-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request basecamp#48 from anderssvendal/local-single-arch
Documentation section about using local builder for single-arch
- Loading branch information
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -436,6 +436,16 @@ builder: | |
host: ssh://[email protected] | ||
``` | ||
|
||
## Using local builder for single-arch | ||
|
||
If you're developing on multiple architectures, always deploy on a specific architecture(e.g. AMD64), and want to build locally, you can configure a remote builder without a host. Kamal will build the image using a local buildx instance. | ||
|
||
```yaml | ||
builder: | ||
remote: | ||
arch: amd64 | ||
``` | ||
|
||
## Using native builder when multi-arch isn't needed | ||
|
||
If you're developing on the same architecture as the one you're deploying on, you can speed up the build by forgoing both multi-arch and remote building: | ||
|