1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/kamal/README.md

21 lines
576 B
Markdown
Raw Normal View History

2024-05-29 23:38:07 +09:00
```
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'
```
```.env
KAMAL_REGISTRY_PASSWORD=*
```
```
$ docker context create --docker=host=ssh://ubuntu@gamma.fogtype.com gamma
$ docker context use gamma
$ docker run --rm -d -p 127.0.0.1:5000:5000 --name registry registry
$ ssh -NL 5000:localhost:5000 ubuntu@gamma.fogtype.com
$ docker context use default
$ kamal deploy
```
TODO
- [ ] Docker レジストリどうするか問題