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
~/hashicorp/packer | |
~/h/packer ❯❯❯ packer build -var-file=variables.json packer-wordpress.json | |
amazon-ebs output will be in this color. | |
==> amazon-ebs: Prevalidating AMI Name... | |
amazon-ebs: Found Image ID: ami-504f2037 | |
~~ 中略 ~~ |
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
#!/bin/bash | |
### check instance status is running | |
/usr/bin/aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" | | |
jq -r '[ .Reservations[] | .Instances[] | { InstanceType } ]| group_by(.InstanceType) | . | |
[]|.[0] + { "Count": length}| .InstanceType, .Count'|sed 'N;s/\n/ value=/'|sed 's/^/instan | |
ces,instance_type=/' |
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
- データにロジックを埋め込むな | |
- アプリには、データベースの中身がわからない | |
- DBを停止すると、サービスが止まる | |
- DBを変更すると、複数サービスの改修が必要 | |
- データは常に変化する | |
- アプリと違って、DBの知識、数年では廃れない。 | |
- モニタリング大事。 |
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
[program:cesi] | |
command=python /var/www/cesi/web.py | |
user=root | |
group=root | |
autostart=true | |
autorestart=true | |
redirect_stdout=true | |
redirect_stderr=true | |
stopasgroup=true | |
stopsignal=QUIT |
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
~ ❯❯❯ mkdir ansible | |
~ ❯❯❯ cd ansible | |
~/ansible ❯❯❯ ansible-galaxy init ansible-role-watcher | |
- ansible-role-watcher was created successfully | |
~/ansible ❯❯❯ ll | |
total 0 | |
drwxr-xr-x 14 kitamurajun staff 476 12 18 14:10 ansible-role-watcher |
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
## Spin up Environment | |
Build-agent version 0.0.4775-4387c40 (2018-03-26T10:29:11+0000) | |
Starting container circleci/node:6 | |
image is cached as circleci/node:6, but refreshing... | |
6: Pulling from circleci/node | |
Digest: sha256:6c64433cd80bb347d5d95fada05743163eacbae3ceebeebfe81ae142d26bc57e | |
Status: Image is up to date for circleci/node:6 | |
using image circleci/node@sha256:6c64433cd80bb347d5d95fada05743163eacbae3ceebeebfe81ae142d26bc57e |