プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

create kamal

Kohei Watanabe (Jun 30, 2024, 1:23 PM +0900) 0fa1ac35 07f73021

+15 -12
+1
kamal/.gitignore
··· 1 + .env
+7 -8
kamal/README.md
··· 7 7 ``` 8 8 9 9 ``` 10 - $ docker context create --docker=host=ssh://ubuntu@gamma.fogtype.com gamma 11 - $ docker context use gamma 12 - $ docker run --rm -d -p 127.0.0.1:5000:5000 --name registry registry 13 - $ ssh -NL 5000:localhost:5000 ubuntu@gamma.fogtype.com 14 - $ docker context use default 15 - $ kamal deploy 10 + $ kamal setup 16 11 ``` 17 12 18 - TODO 13 + ``` 14 + ubuntu@gamma:~$ mkdir -p .kamal/env/roles 15 + ubuntu@gamma:~$ touch .kamal/env/roles/web-web.env 16 + ubuntu@gamma:~$ chmod 600 .kamal/env/roles/web-web.env 17 + ``` 19 18 20 - - [ ] Docker レジストリどうするか問題 19 + - Docker レジストリどうするか => Docker Hub などパブリックなものを使用するのが簡単
+7 -4
kamal/config/deploy.yml
··· 1 1 # yaml-language-server: $schema=https://raw.githubusercontent.com/kjellberg/mrsk/validate-with-json-schema/lib/mrsk/configuration/schema.yaml 2 - service: kamal-example 3 - image: caddy 2 + service: web 3 + image: fogtype/caddy 4 4 servers: 5 5 - ubuntu@gamma.fogtype.com 6 6 registry: 7 - server: localhost:5000 8 - username: _ 7 + username: fogtype 9 8 password: 10 9 - KAMAL_REGISTRY_PASSWORD 10 + logging: 11 + driver: journald 12 + healthcheck: 13 + cmd: /bin/true