Upgrade to Pro — share decks privately, control downloads, hide ads and more …

記念日

99282ddf6e3b88c0538da15b46e5bad0?s=47 suwa
September 28, 2019

 記念日

99282ddf6e3b88c0538da15b46e5bad0?s=128

suwa

September 28, 2019
Tweet

Transcript

  1. ه೦೔ ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹʙՆͷࢥ͍ग़ฤʙ

  2. ࣗݾ঺հ ͢Θʢ @_Tsuka3 ʣ ৬ۀɿՖ԰

  3. ͖͔͚ͬ ࢖͍ͬͯͨSNS͕ด࠯Λͨ͠ɻ => ൵͍͠ ࣗ෼ͰSNSΛϗεςΟϯά͢Ε͹ ͍͍ͪͪด࠯͝ͱ͖ʹৼΓճ͞Εͳ͍͔΋ʁ => ΍Δؾग़Δ ΍ͬͯΈΔ͜ͱʹͨ͠ ͔͜͜Β͸΍ͬͯΈΔࣄʹͨ͠ͱ͖͔Β

    ࠓ·Ͱͷ׆ಈΛه೦೔ͱͯ͠ৼΓฦΓ·͢ɻ
  4. 6݄3೔ɹυϝΠϯه೦೔ ॳΊͯυϝΠϯΛങͬͨɹ໊͓લ.com 6݄11೔ɹLinuxه೦೔ ˒ ॳΊͯLinuxͷଘࡏΛ஌ͬͨ WindowsҎ֎ʹ΋OS͕͋ΔΒ͍͠ 6݄14೔ɹλʔϛφϧه೦೔ λʔϛφϧͷഎܠΛࠇͯ͘͠ςϯγϣϯ͕͕͋ͬͨ ΤϯδχΞͬΆ͍ 6݄17೔ɹAWSه೦೔

    ˒ AWSʹొ࿥ͨ͠ ҊͣΔΑΓ࢈Ή͕қͩͬͨ͠
  5. 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
  6. 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. 7݄25೔ɹେن໛ো֐ه೦೔ ˒ ॳΊͯͷτϥϒϧ τϥϒϧൃੜʹର͠ਫ਼ਆతʹམͪࠐΈSNSαʔϏεͷϝϯςφϯεϞ ʔυ͕ࡾ೔ଓ͘ 8݄1೔ɹPostgreSQLه೦೔ τϥϯβΫγϣϯػೳΛ֮͑ͨ DBͷສೳײʹײಈ͢Δ 8݄3೔ɹKubernetesه೦೔ ˒

    Javaঁࢠ෦ओ࠵ϋϯζΦϯʹࢀՃ͢Δ 8݄10೔ɹσϕϩούʔπʔϧه೦೔ ԿͰ΋ݟΔ͜ͱ͕Ͱ͖Δ͠ࢼ͢͜ͱ͕Ͱ͖Δੌ͞ʹײಈ͢Δ
  8. 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. 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
  10. ٕज़পʹམͪ·ͨ͠ɻ ࠷ॳ͸ཧղͰ͖ͣɺपΓͷৄͦ͠͏ͳਓʹฉ͍ͯճ͍͕ͬͯͨ ͩΜͩΜࣗݾղܾͰ͖Δ͜ͱ͕૿͑ɺָ͘͠ͳ͖ͬͯͨɻ དྷ݄͔ΒอҭԂͷۀ຿γεςϜΛ։ൃ͍ͯ͠ΔձࣾͰ ΠϯϑϥΤϯδχΞͱͯ͠ಇ͘͜ͱʹͳΓ·ͨ͠ɻ ࡾϲ݄Ͱਓੜͷํ޲ੑ͕͔ͳΓมΘͬͨͱײ͡·͢ɻ ࠓޙ΋ָ͠Έͳ͕Βؤு͍͖͍ͬͯͨͰ͢ɻ

  11. 9݄28೔ɹLTه೦೔