Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
記念日
Search
suwa
September 28, 2019
Technology
0
720
記念日
suwa
September 28, 2019
Tweet
Share
More Decks by suwa
See All by suwa
EKS_on_Fargate
suwa3
0
23
Other Decks in Technology
See All in Technology
実践! ソフトウェアエンジニアリングの価値の計測 ── Effort、Output、Outcome、Impact
nomuson
0
1.4k
終了の危機にあった15年続くWebサービスを全力で存続させる - phpcon2024
yositosi
28
25k
Oracle Exadata Database Service(Dedicated Infrastructure):サービス概要のご紹介
oracle4engineer
PRO
0
12k
いまからでも遅くないコンテナ座学
nomu
0
200
Evolving Architecture
rainerhahnekamp
3
220
30分でわかる「リスクから学ぶKubernetesコンテナセキュリティ」/30min-k8s-container-sec
mochizuki875
2
120
Unlearn Product Development - Unleashed Edition
lemiorhan
PRO
2
170
プロダクト組織で取り組むアドベントカレンダー/Advent Calendar in Product Teams
mixplace
0
670
機械学習を「社会実装」するということ 2025年版 / Social Implementation of Machine Learning 2025 Version
moepy_stats
3
200
Fearsome File Formats
ange
0
550
#TRG24 / David Cuartielles / Post Open Source
tarugoconf
0
430
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
1.6k
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
550
Music & Morning Musume
bryan
46
6.3k
Optimizing for Happiness
mojombo
376
70k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Embracing the Ebb and Flow
colly
84
4.5k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Transcript
ه೦ ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹʙՆͷࢥ͍ग़ฤʙ
ࣗݾհ ͢Θʢ @_Tsuka3 ʣ ৬ۀɿՖ
͖͔͚ͬ ͍ͬͯͨSNS͕ดΛͨ͠ɻ => ൵͍͠ ࣗͰSNSΛϗεςΟϯά͢Ε ͍͍ͪͪด͝ͱ͖ʹৼΓճ͞Εͳ͍͔ʁ => Δؾग़Δ ͬͯΈΔ͜ͱʹͨ͠ ͔͜͜ΒͬͯΈΔࣄʹͨ͠ͱ͖͔Β
ࠓ·Ͱͷ׆ಈΛه೦ͱͯ͠ৼΓฦΓ·͢ɻ
6݄3ɹυϝΠϯه೦ ॳΊͯυϝΠϯΛങͬͨɹ໊͓લ.com 6݄11ɹLinuxه೦ ˒ ॳΊͯLinuxͷଘࡏΛͬͨ WindowsҎ֎ʹOS͕͋ΔΒ͍͠ 6݄14ɹλʔϛφϧه೦ λʔϛφϧͷഎܠΛࠇͯ͘͠ςϯγϣϯ͕͕͋ͬͨ ΤϯδχΞͬΆ͍ 6݄17ɹAWSه೦
˒ AWSʹొͨ͠ ҊͣΔΑΓ࢈Ή͕қͩͬͨ͠
6݄22ɹPORTه೦ ˒ ॳΊͯϓϩάϥϛϯάษڧձʢPORTʣʹࢀՃͨ͠ 6݄22ɹDockerه೦ docker-composeͰlogΛݟΔํ๏Λ֮͑ͨ 6݄25ɹαʔϏεެ։ه೦ ˒ 3ि͔͚ؒͯEC2্ʹΦʔϓϯιʔεSNSͷߏங͕ޭ͠ɺެ։͢Δ https://don.suwa3.me/about 7݄1ɹٕज़ϒϩάه೦
ίʔυϒϩοΫͱ͍͏ٕΛʹ͚ͭͨ ಌΕͷٕज़blogΛॻ͚ͯຬ https://qiita.com/suwa3/items/0a180e9833c0146e36b5
7݄11ɹHPه೦ ˒ HPΛͭͬͯ͘ެ։ͯ͠Έͨ https://suwa3.github.io 7݄14ɹOSCه೦ ˒ ΦʔϓϯιʔεΧϯϑΝϨϯεॳࢀઓ ߦ͖ͨͯ͘ํͳ͔ͬͨͷͰ໊ݹ·Ͱ৽װઢͰߦ͘ ເͷதͰsshϩάΠϯ͢ΔΑ͏ʹͳͬͨ 7݄20ɹϝϯςφϯεه೦
˒ ϝϯςφϯεϞʔυʹΓସ͑Δज़Λʹ͚ͭͨ https://github.com/suwa3/Maintenance-Page/blob/master/README.md 7݄22ɹNuxt.jsه೦ Nuxt.jsͬͯΈͨ
7݄25ɹେنোه೦ ˒ ॳΊͯͷτϥϒϧ τϥϒϧൃੜʹର͠ਫ਼ਆతʹམͪࠐΈSNSαʔϏεͷϝϯςφϯεϞ ʔυ͕ࡾଓ͘ 8݄1ɹPostgreSQLه೦ τϥϯβΫγϣϯػೳΛ֮͑ͨ DBͷສೳײʹײಈ͢Δ 8݄3ɹKubernetesه೦ ˒
Javaঁࢠ෦ओ࠵ϋϯζΦϯʹࢀՃ͢Δ 8݄10ɹσϕϩούʔπʔϧه೦ ԿͰݟΔ͜ͱ͕Ͱ͖Δ͠ࢼ͢͜ͱ͕Ͱ͖Δੌ͞ʹײಈ͢Δ
8݄12ɹΞϓσه೦ ྫͷSNSαʔϏεͷΞοϓσʔτΛԿͱ͔͕Μͬͨ 8݄16ɹLambdaه೦ LambdaͷςετͬͯΈͨ 8݄20ɹࢹه೦ αʔϏεʹࢹͱͯ͠Uptime RobotΛಋೖͨ͠ 2xxҎ֎Λฦ͖ͯͨ͠ΒSlackʹ௨ 8݄24ɹAnsibleه೦ ˒
AnsibleͰߏཧʹઓͯ͠Έͨ https://github.com/suwa3/don.suwa3.me- ansible/blob/master/maintenance.yaml 9݄1ɹϥζύΠه೦ ϥζύΠʹॳΊͯsshϩάΠϯͨ͠
9݄7ɹDjangoه೦ ˒ DjangoGirlsͷϋϯζΦϯʹࢀՃ PythonͰWebΞϓϦέʔγϣϯΛͭͬͯ͘Έͨ 9݄14ɹcircleCIه೦ εΫϦϓτ͕ޭ͔ͨ͠Ͳ͏͔͕ύοͱΘ͔Δͷศརͩͳͱ͓ͬͨ 9݄21ɹϙʔτมߋه೦ ˒ 22൪͔Β22222൪ͱ͔ʹ͢Δ͚ͩͰ߈ܸ͕ܹݮͨ͠ cat
/var/log/auth.log | grep -v CRON | grep 'Sep 20' | wc -l 626݅=>5݅ 9݄25ɹNetlifyه೦ HexoͰ੩తαΠτΛͭ͘Γஔ͍ͯΈͨ https://hexo.suwa3.me
ٕज़পʹམͪ·ͨ͠ɻ ࠷ॳཧղͰ͖ͣɺपΓͷৄͦ͠͏ͳਓʹฉ͍ͯճ͍͕ͬͯͨ ͩΜͩΜࣗݾղܾͰ͖Δ͜ͱ͕૿͑ɺָ͘͠ͳ͖ͬͯͨɻ དྷ݄͔ΒอҭԂͷۀγεςϜΛ։ൃ͍ͯ͠ΔձࣾͰ ΠϯϑϥΤϯδχΞͱͯ͠ಇ͘͜ͱʹͳΓ·ͨ͠ɻ ࡾϲ݄Ͱਓੜͷํੑ͕͔ͳΓมΘͬͨͱײ͡·͢ɻ ࠓޙָ͠Έͳ͕Βؤு͍͖͍ͬͯͨͰ͢ɻ
9݄28ɹLTه೦