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

테스트 환경 개선하기

E6ab83a664e3508e199ef2114cdfc824?s=47 RIDI
November 02, 2018

테스트 환경 개선하기

E6ab83a664e3508e199ef2114cdfc824?s=128

RIDI

November 02, 2018
Tweet

Transcript

  1. పझ౟ജ҃ѐࢶೞӝ IUUQTUFTUSJEJJP झషয౱੢൞੤

  2. ӝദ ٣੗ੋ ѐߊ ߓನ ੉Ѣ૓૞ߓನ೧بظਃ ѣ੿ ࠛউ

  3. ࠛউਸহগ۰ݶ పझ౟о೙ਃ೤פ׮

  4. ਬ׫పझ౟ ా೤పझ౟  &&పझ౟١j 2" ஹೊఠ ઁೠػജ҃ ࢎۈ
 ׮নೠജ҃

  5. ѐߊ੗੄۽ஸࢲߡী٣੗੉ցо੽ࣘೞ۰ݶ %FWFMPQFS %FTJHOFS 

  6. %FWFMPQFS %FTJHOFS IUUQTYY 

  7. ٣੗ੋ12о૓೯غחزউ
 ׮ܲѐߊਸ҅ࣘೞҊर׮ݶ ܻ࠙ػపझ౟ࢲߡ೙ਃ 

  8. झషয౱੄ӝઓജ҃ IFFKBFEFWSJEJJP OOZBNNEFWSJEJJP TJNQTPOEFWSJEJJP j ѐੋ߹ࢲ࠳بݫੋ ࣻز ࢤࢿ

  9. ޙઁ੼ઁೠػ44)੽ࣘӂೠ 44) ࢸ੿౵ੌসؘ੉౟ ࠽٘ޙઁ٣ߡӦ١ ૒੽؀਽ࠛо

  10. ޙઁ੼63-ਸాೠ࠽٘ IUUQHJUIFFKBFEFWSJEJJPGFUDI IUUQHJUIFFKBFEFWSJEJJPDIFDLPVUGFBUVSF" IUUQHJUIFFKBFEFWSJEJJPQVMM IUUQHJUIFFKBFEFWSJEJJPTVCNPEVMFVQEBUF IUUQNBLFIFFKBFEFWSJEJJPCVJME ൞੤שউ߄ՈѢ эইਃ દ࣠೧ਃƕƕ
 ׮द࠽٘೧ࠅѱਃ

  11. ޙઁ੼بݫੋࠗ઒ ૑Әపझ౟ࢲߡ উॳदח࠙҅ࣁਃ ઁԁ ׮ॳ࣑যਃ

  12. नӏపझ౟ࢲߡҳ୷ ೐ۿ౟ূ٘࠙ӝ݃ੌझహ

  13. ਃҳࢎ೦ • ৈ۞ѐ੄ ࢲ࠳ بݫੋ ࢤࢿ੉ оמ೧ঠ ೣ • п

    ࢲ࠳ بݫੋ߹۽ ة݀੸ੋ ߓನо оמ೧ঠ ೣ • admin ಕ੉૑ب ੽ࣘ оמ೧ঠ ೣ • పझ౟ ࢲߡী ૒੽ SSH ੽Ӕ оמ೧ঠ ೣ • ࢎղীࢲ݅ ੽ࣘೡ ࣻ ੓যঠ ೣ • Ҋ੿ػ بݫੋ (ex : library.dev.ridi.io) • ௢ఃח ܖ౟ بݫੋী ࢸ੿ • ౠ੿ ࠳ے஖ী ؀೧ ୭न ܻ࠺੹੉ ੗زਵ۽ ߈৔ • SSL ੋૐࢲ ੸ਊ • పझ౟ ജ҃ীࢲ ఋ౱੄ API ௒ী ޙઁо হযঠ ೣ
  14. ޙઁ੼ઁೠػ44)੽ࣘӂೠ ޙઁ੼63-ਸాೠ࠽٘ ޙઁ੼بݫੋࠗ઒ ӝઓࢲߡ৬ܻ࠙ػੋझఢझࢎਊ $*ীࢲبழ੉޷૑۽࠽٘ ࢲ࠳بݫੋࢤࢿਸ੗ਬ܂ѱ

  15. ӝࣿझఖѾ੿ %PDLFS &$4

  16. بழоજ׮חѤ઱ਕٜযࠊࢲঌѷחؘ ߔূ٘بழۄ੉૚਷যڌѱೞ૑

  17. 5IBOLTUP

  18. &$4j ż@ż ॄࠄ"84ۄҊח&$ 4 3PVUF JNBHF DPOUBJOFS UBTLEFGJOJUJPO TFSWJDF DMVTUFS

    UBTL
  19. GPPUFTUSJEJJP &$44FSWJDF
 $POUBJOFS "-# &$4ࢲ࠺झীبݫੋਸোѾೞ۰ݶ CBSUFTUSJEJJP &$44FSWJDF "-# OFXUFTUSJEJJP /FX4FSWJDF

    "-#
  20. UFTUSJEJJP "-# ੉ۧѱೡࣻহਸө GFBUVSF"UFTUSJEJJP GFBUVSF#UFTUSJEJJP CVHGJY"UFTUSJEJJP CVHGJY#UFTUSJEJJP /FX
 7JSUVBM)PTU

  21. ੉ۧѱೡࣻহਸө 3FWFSTF1SPYZ "1*4FSWFS ,FZWBMVF4UPSF 8FC6* jNPSF 

  22. য۵׮ ழझఠ݃੉૚ೞӝ ௿ۄ੉঱౟ܳ ؀नೞৈ ׮ܲ ࢲߡীࢲ ੗ਗਸ оઉ য়ח ࢲߡੑפ׮.

  23. %PDLFSGJMF

  24. FDTHFO EPDLFSHFOGPS"84&$4 *OTQJSFECZEPDLFSHFOFDTHFOMFUTZPVHFOFSBUFDPOGJHGJMFTGSPNUFNQMBUFT VTJOH"84&$4DMVTUFSJOGPSNBUJPOFDTOHJOYQSPYZVTFTFDTHFOUPHFOFSBUF OHJOYDPOGJHGJMFT $POUJOVPVTMZVQEBUFBDPOGJH 5PLFFQBDPOGJHVQUPEBUFUSZBWBSJBUJPOPGUIFGPMMPXJOH $ ecs-gen --signal="nginx

    -s reload” --template=nginx.tmpl --output=/etc/nginx/ conf.d/default.conf IUUQTHJUIVCDPNDPEFTVLJFDTHFO
  25. HJUMBCSJEJJPTUPSFFDTOHJOYQSPYZ ஶప੉ցী೙ਃೠ౵ੌѐ "1* MVBOHJOYNPEVMF 8FC6* 3FWFSTF1SPYZ  ,FZWBMVF4UPSF

  26. 1045DSFBUF (&5WIPTUT

  27. ੉ઁ ௿۞झఠী
 ࢲ࠺झ ஶప੉ց ݅ڸ਋ݶ ঌইࢲ׮೧સפ׮

  28. ࢤࢿ সؘ੉౟ ઙܐ (JUMBC$*$%1JQFMJOF &OWJSPONFOUT

  29. ࢤࢿ সؘ੉౟ ઙܐ (JUQVTI UFTUSJEJJP"1* (JU-BC$*5SJHHFSप೯ %PDLFSCVJME &$3QVTI 4MBDL/PUJGZ FDTDMJDPNQPTFTFSWJDFVQ

    UFTUSJEJJP8FC6* &OWJSPONFOUTUPQ 1JQFMJOF.BOVBMKPCप೯ FDTDMJDPNQPTFTFSWJDFEPXO 4MBDL/PUJGZ #SBODI࢏ઁ
  30. ਘੌҕѐ ੘সӝрѐਘƕƕ

  31. ইएਛ؍੼ ୶о۽ѐࢶ೧ঠೡࠗ࠙ ডѐਘ੄੘সӝрࣗਃ
 "84৬%PDLFS੄ࢎ੹૑ध੉୽࠙೮׮ݶ
 ѐਘউ౷ਵ۽оמ೮ਸѪਵ۽৘࢚ 
 BXTMBCTFDTOHJOYSFWFSTFQSPYZ
 ѐੋѐߊ੗о݅ٚFDTOHJOYQSPYZܳ
 BXTMBCTীࢲ݅ٚۄ੉࠳۞ܻ۽߸҃

  32. ՘ ੉ݶજѷ૑݅ƕƕ

  33. ޙઁоթই੓঻णפ׮

  34. None
  35. IUUQTUFTUSJEJJP IUUQTGFBUVSF"UFTUSJEJJP IUUQTTUBUJDGFBUVSF"UFTUSJEJJP IUUQTTFMFDUGFBUVSF"UFTUSJEJJP IUUQTBENJOGFBUVSF"UFTUSJEJJP ੋૐࢲ ߊә߉חѱޤоয۵׮Ҋ IUUQTGFBUVSF#UFTUSJEJJP IUUQTTUBUJDGFBUVSF#UFTUSJEJJP IUUQTTFMFDUGFBUVSF#UFTUSJEJJP

    IUUQTBENJOGFBUVSF#UFTUSJEJJP
  36. %ZOBNJD8JMEDBSE $FSUJGJDBUFT QTӒրઁоࠢੋ੉ܴੑפ׮Ѩ࢝೧ب߹Ѣউա৬ਃ

  37. աܴѐߊҙ۲झೖ஖ੋؘ௏٘ೠ઴হਵݶ ೲ੹ೡөࠊળ࠺೮णפ׮

  38.  "-#ܻझցীੋૐࢲ୶о ecs-cli compose service up aws acm request-certificate --domain-name

    ${VHOST} --validation-method DNS --subject-alternative-names *.${VHOST} while true do sleep 2.5s OPTIONS=`aws acm describe-certificate --certificate-arn ${ARN} | jq .Certificate.DomainValidationOptions` [ `echo ${OPTIONS} | jq 'map(select(.ResourceRecord)) | length'` -gt 0 ] && break; done BATCH=`echo ${OPTIONS} | jq .[0] | jq --arg action UPSERT -f batch.jq` aws route53 change-resource-record-sets --change-batch "${BATCH}"  ࢲ࠳بݫੋFDTTFSWJDFTࢤࢿ  "$.ੋૐࢲߊәਃ୒  بݫੋࣗਬӂੋૐ  ੋૐࢲߊә৮ܐ؀ӝ aws acm wait certificate-validated --certificate-arn ${ARN} aws elbv2 add-listener-certificates --listener-arn ${LISTENER} --certificates CertificateArn=${ARN}
  39. ՘ ૓૞՘੉ীਃ

  40. хࢎ೤פ׮