Skip to content

Commit

Permalink
Merge pull request #25 from Ezveus/patch-1
Browse files Browse the repository at this point in the history
Add a specific alias for MacOS on installation documentation
  • Loading branch information
dhh committed Sep 18, 2023
2 parents a516653 + 50de4ae commit 5a58c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ If you have a Ruby environment available, you can install Kamal globally with:
gem install kamal
```

...otherwise, you can run a dockerized version via an alias (add this to your .bashrc or similar to simplify re-use):
...otherwise, you can run a dockerized version via an alias (add this to your .bashrc or similar to simplify re-use). On macOS, use:

```sh
alias kamal="docker run -it --rm -v '${PWD}:/workdir' -v '${SSH_AUTH_SOCK}:/ssh-agent' -v /var/run/docker.sock:/var/run/docker.sock -e 'SSH_AUTH_SOCK=/ssh-agent' ghcr.io/basecamp/kamal:latest"
alias kamal="docker run -it --rm -v '${PWD}:/workdir' -v '/run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock' -e SSH_AUTH_SOCK='/run/host-services/ssh-auth.sock' -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/basecamp/kamal:latest"
```

Then, inside your app directory, run `kamal init` (or `kamal init --bundle` within Rails 7+ apps where you want a bin/kamal binstub). Now edit the new file `config/deploy.yml`. It could look as simple as this:
Expand Down

0 comments on commit 5a58c10

Please sign in to comment.