mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 13:58:08 +00:00
create kamal
This commit is contained in:
parent
31c822e1c1
commit
07f7302115
3 changed files with 31 additions and 0 deletions
1
kamal/Dockerfile
Normal file
1
kamal/Dockerfile
Normal file
|
@ -0,0 +1 @@
|
|||
FROM caddy
|
20
kamal/README.md
Normal file
20
kamal/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
```
|
||||
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 レジストリどうするか問題
|
10
kamal/config/deploy.yml
Normal file
10
kamal/config/deploy.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
# yaml-language-server: $schema=https://raw.githubusercontent.com/kjellberg/mrsk/validate-with-json-schema/lib/mrsk/configuration/schema.yaml
|
||||
service: kamal-example
|
||||
image: caddy
|
||||
servers:
|
||||
- ubuntu@gamma.fogtype.com
|
||||
registry:
|
||||
server: localhost:5000
|
||||
username: _
|
||||
password:
|
||||
- KAMAL_REGISTRY_PASSWORD
|
Loading…
Add table
Reference in a new issue