Slide 1

Slide 1 text

ヘプタゴン ⽴花 拓也 #CircleCIJP 新型コロナウイルス感染症対策サイトの データ更新をCircleCIで⾃動化!

Slide 2

Slide 2 text

ࣗݾ঺հ ཱՖ ୓໵ (35) @biatunky ੨৿ग़਎ઋ୆ܦ༝੨৿ݝࡏॅ݁ߏઋ୆ ϔϓλΰϯ୅දऔక໾ JAWS-UG౦๺ (ݩ)JAWS-UGશࠃ୅ද AWS Summit ι΢ϧ/๺ژ εϐʔΧʔ CircleCIͷษڧձΛ౦๺Ͱ΋΍Γ͍ͨ(౦๺ͰҰॹʹ΍Γ͍ͨํͥͻʂ)

Slide 3

Slide 3 text

໊ࣾ גࣜձࣾϔϓλΰϯ IFQUBHPOJOD ཧ೦ إΛ஌Βͳ͍ສਓͷ޾ͤΑΓ΋ ࣗ෼ͨͪͷ਎ۙͳਓΛςΫϊϩδʔͰ޾ͤʹ ୅ද ཱՖ୓໵ ڌ఺ ੨৿ݝࡾ୔ࢢɺٶ৓ݝઋ୆ࢢ ૑ۀ ೥݄̓ ࣄۀ Ϋϥ΢υಋೖʹؔ͢ΔίϯαϧςΟϯά Ϋϥ΢υͷߏஙอकӡ༻ Ϋϥ΢υωΠςΟϒͳ։ൃ ձࣾ֓ཁ גࣜձࣾϔϓλΰϯ͸ ϕΨϧλઋ୆ɺγϯτʹτϩΠσϯVV ΛԠԉ͍ͯ͠·͢ɻ

Slide 4

Slide 4 text

ࢲͨͪͷಇ͖ํ ࣾ಺ͰͷνϟϨϯδ ษڧձɺΠϕϯτ͸ࢀՃඅ͸શֹαϙʔτ ࣾһͷίϛϡχςΟ΁ͷࢀՃߩݙΛαϙʔτ TFMGIBDLUJNF िʹ࣌ؒɺबۀ࣌ؒதʹۀ຿Ҏ֎ͷ޷͖ͳ͜ͱΛ΍Δ ࣾ֎ͷਓΛೖΕͨࣾ಺ϛʔςΟϯά ࣾ಺৘ใϑϧΦʔϓϯʢ΍ΓͱΓച্څྉʣ ܾࡋ͸ͳ͘શ͕ͯࣗݾࡋྔɹ बۀ࣌ؒٳՋܦඅग़ுϑϧϦϞʔτϫʔΫ ਓؒੑ͕ߴ͍খ͞ͳνʔϜͰ͋Ε͹ ׬શίϛϡχςΟܕͷձࣾӡӦ͕Ͱ͖Δ͸ͣ

Slide 5

Slide 5 text

஍ݩͷITίϛϡχςΟͰ΋ษڧձΛ։࠵

Slide 6

Slide 6 text

஍ݩֶੜΛ஍ݩاۀ͕ࢧԉͯ͠ւ֎Πϕϯτʹ࿈Ε͍ͯ͘ϓϩδΣΫτ

Slide 7

Slide 7 text

ͦΕ͸3݄23೔໷…

Slide 8

Slide 8 text

͜ͷลͷৄ͍͠࿩͸෱Ҫ͞Μͷnoteʹ -> https://note.com/r82/n/n63bb34b83cc9

Slide 9

Slide 9 text

౦ژ౎৽ܕίϩφ΢Πϧεײછ঱ରࡦα Πτͷιʔε͕HJUIVCͰެ։͞Ε͍ͯ ͯɺ͜ΕΛϑΥʔΫͯ͠શࠃ֤஍Ͱ৘ใ αΠτ্ཱ͕͕͍ͪͬͯΔ ϑϩϯτΤϯυ͸/VYUKTɺάϥϑ΍ද ͷσʔλ͸+40/Ͱ࣮૷͞Εͨ41" /FUMJGZͰϗεςΟϯά͞Ε͍ͯΔέʔ ε͕ଟ͍ https://stopcovid19.metro.tokyo.lg.jp/

Slide 10

Slide 10 text

੨৿ݝ಺Ͱͷײછऀൃද ෱Ҫ͞Μ͕͟Θ͟Θ࢝͠ΊΔ ฐࣾϝϯόʔ͕+0*/։ൃ४උ։࢝ 4/4Ͱ։ൃϝϯόʔΛืΓ࢝ΊΔ ݝ಺*5ؔ܎ऀΛத৺ʹϝϯόʔ͕ἧ͍ɺ໾ׂ෼୲ΛܾΊΔ ͦͷޙͻͨ͢Β։ൃ େ࿮͕ग़དྷ্͕Δ ݝிͷํʹ΋֬ೝͯ͠΋Β͍ͭͭඍௐ੔ ϩʔϯνʂʂ

Slide 11

Slide 11 text

πʔϧ 4MBDL ίϛϡχέʔγϣϯ (JU)VC λεΫ؅ཧ ϩʔϯν·Ͱͷओͳϝϯόʔ ϑϩϯτɿ໊ Πϯϑϥɿ໊ σβΠϯɿ໊ ϨϏϡʔɿ໊ 1.ɿ໊ ৘ใऩूɿ໊ ݝிͱͷௐ੔໊ ֦ࢄ෦ୂɿͨ͘͞Μ νʔϜ໊"PNPSJ)BDLFST ϩʔϯνޙ͸ೖΕସΘΓཱͪସΘΓͰ ࠷ऴతʹTMBDLʹࢀՃͨ͠ϝϯόʔ͸໊

Slide 12

Slide 12 text

ϩʔϯν࣌ͷϖʔδ ೔ʑσʔλΛߋ৽͍ͯ͘͠ ද΍άϥϑɺϖʔδΛ௥Ճ͍ͯͬͨ͠

Slide 13

Slide 13 text

͓஌Βͤάϥϑදͷσʔλ͸͜Μͳײ͡ news.json data.json

Slide 14

Slide 14 text

ϩʔϯν౰ॳͷσʔλߋ৽ ެ։͞ΕΔpdfΛ ໨ࢹνΣοΫ build & deploy dev prod ϨϏϡʔ ख࡞ۀͰJSON࡞੒ ੨৿ݝαΠτ dev ίʔυ؅ཧ JSON؅ཧ PRͰىಈ non-dev

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

ϩʔϯν౰ॳͷσʔλߋ৽ ެ։͞ΕΔpdfΛ ໨ࢹνΣοΫ build & deploy dev prod ϨϏϡʔ ख࡞ۀͰJSON࡞੒ ੨৿ݝαΠτ ίʔυ؅ཧ JSON؅ཧ PRͰىಈ non-dev ͭΒ͍ʜ dev

Slide 17

Slide 17 text

WFS prod ੨৿ݝαΠτ RSS ίϩφؔ࿈ͷRSSͷΈ௨஌ εϓϨουγʔτΛߋ৽ JSONੜ੒ build࣌ʹJSONΛऔಘ PRͰىಈ build & deploy ίʔυ؅ཧ dev ϨϏϡʔ non-dev JSON؅ཧ dev

Slide 18

Slide 18 text

WFS prod ੨৿ݝαΠτ RSS ίϩφؔ࿈ͷRSSͷΈ௨஌ εϓϨουγʔτΛߋ৽ JSONੜ੒ build࣌ʹJSONΛऔಘ PRͰىಈ build & deploy ίʔυ؅ཧ dev ϨϏϡʔ non-dev JSON؅ཧ dev

Slide 19

Slide 19 text

ผͷ$*$%πʔϧΛ୳͢͜ͱʹʜ

Slide 20

Slide 20 text

͜͜ͰΑ͏΍͘ొ৔ʂ ແྉ࿮ͷൣғ͕େ͖͔ͬͨ "1*͕෼͔Γ΍͔ͬͨ͢ ࠓޙ֦ு͢Δͱ͖ͷͨΊʹ

Slide 21

Slide 21 text

WFS build deploy prod ੨৿ݝαΠτ RSS ίϩφؔ࿈ͷRSSͷΈ௨஌ εϓϨουγʔτΛߋ৽ JSONੜ੒ build࣌ʹJSONΛऔಘ APIͰىಈ ίʔυ؅ཧ non-dev JSON؅ཧ εϓϨουγʔτ͑͞ߋ৽͢Ε͹σʔλ͕൓өʂ S3 Lambda

Slide 22

Slide 22 text

͞Βʹ੨৿ݝிଆͰײછऀ৘ใΛDTWͰ഑৴ͯ͘͠Εͨʂ ʢͦΕ·Ͱ͸1%'ʣ https://opendata.pref.aomori.lg.jp/dataset/1531.html ͜ΕͰউͭΔ

Slide 23

Slide 23 text

'JOBMWFS scheduleͰىಈ build࣌ʹJSON΋ੜ੒ deploy prod ੨৿ݝαΠτ RSS ৽ண৘ใ΋ RSS͔Βࣗಈੜ੒ CSVऔಘ ੨৿ݝΦʔϓϯσʔλ ίʔυ؅ཧ JOBΛఆظىಈͤͯ͞ɺ JSON΋CircleCI಺Ͱ Ͱࣗಈੜ੒͢Δߏ੒ʹʂ ਓखΛհͣ͞ʹࣗಈͰ σʔλߋ৽ʂ

Slide 24

Slide 24 text

'JOBMWFS ੨৿ݝαΠτ ੨৿ݝΦʔϓϯσʔλ ࠷৽χϡʔεΛදࣔ ࠷৽σʔλΛදࣔ 'JOBMWFS ͜͜·Ͱϲ݄

Slide 25

Slide 25 text

໘ࣝͷແ͍ํʑ͔Β΋ଟ͘ͷ*TTVF΍ϓϧϦΫΤετΛ͍͖ͨͩ·ͨ͠ https://github.com/covid19-aomori/

Slide 26

Slide 26 text

ͳΜͱதͷਓ͔Β΋

Slide 27

Slide 27 text

ʢ͔ͭͯ͸ʣ౦๺ͷελʔτΞοϓͷελʔܦӦऀ ࢲ ͜ͷޙ࿩͢5BLB͞Μ

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

ٸʹθϩʹʜ

Slide 31

Slide 31 text

੨৿ݝ΁ιʔείʔυΛৡ౉͠ ੨৿ݝެࣜͷαΠτ͕Φʔϓϯ IUUQTTUPQDPWJEQSFGBPNPSJMHKQ ݝிͷ୲౰ऀͷํͷ͓ؾݣ͍Ͱ "PNPSJ)BDLFSTͷ໊͕࢒ͬͨ

Slide 32

Slide 32 text

஍ݩࢴʹ΋औΓ্͛ΒΕͨ

Slide 33

Slide 33 text

ݝ஌ࣄ͔Βʂ

Slide 34

Slide 34 text

·ͱΊ ςΫϊϩδʔͱίϛϡχςΟͷྗͰੈͷதΛྑ͘͢Δ͜ͱ͕Ͱ͖Δ͔΋͠Εͳ͍ ίϛϡχςΟͱ࣏ࣗମͷ৽͍ؔ͠܎ͷҰาʹͳ͔ͬͨ΋ $JSDMF$*࠷ߴʂ