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

PC が変わっても使い慣れた Neovim で すぐに開発を始める仕組み / 2023-07-25

Takuma Yamamoto
July 25, 2023
1k

PC が変わっても使い慣れた Neovim で すぐに開発を始める仕組み / 2023-07-25

Takuma Yamamoto

July 25, 2023
Tweet

More Decks by Takuma Yamamoto

Transcript

  1. BIOGRAPHY ͋ͳͨ͸୭Ͱ͔͢ʁ 5BLVNB:BNBNPUP 8PSLBUTOBQNF 'SPN.JZB[BLJ ٕज़ελοΫ 4/4 झຯ ɾόοΫΤϯυ3VCZPO3BJMT ɾϑϩϯτΤϯυ3FBDU

    ɾΞϓϦ3FBDU/BUJWF ɾɹɹIUUQTHJUIVCDPNUBNBHPLFSBO ɾɹɹIUUQTUXJUUFSDPNZBNBUBLV ɾɹɹIUUQTRJJUBDPNUBNBHPLFSBO ɾɹɹIUUQT[FOOEFWUBNBHPLFSBO ɾ͓΍ͭ ɾα΢φ ɾΞχϝ
  2. PROBLEM ϩʔΧϧʹల։͢ΔͱଞϚγϯͰ͙͢ʹར༻Ͱ͖ͳ͍ ϚγϯΛ৽ௐ͢ΔͱɺҎԼͷΑ͏ͳཧ༝Ͱಉ༷ͷ؀ڥΛ੔͑Δͷʹ͕͔͔࣌ؒΔ 
 ɾEPU fi MFTͰઃఆϑΝΠϧΛอଘ͍ͯͯ͠΋ɺϓϥάΠϯ͸վΊͯΠϯετʔϧ͢Δඞཁ͋Γɻ 
 ɾͦ΋ͦ΋ԿΛΠϯετʔϧ͍͔͍֮ͯͨ͑ͯ͠ͳ͍ɻ 


    ɾΠϯετʔϧͰ͖ͯ΋ɺόʔδϣϯ͕ҟͳ͍ͬͯͨ৔߹ɺਖ਼ৗʹಈ࡞͠ͳ͍ɻ 
 ɾ΋͠Ϛγϯͷ04͕ҟͳ͍ͬͯͨΒɺਖ਼͘͠ΠϯετʔϧͰ͖ͯ΋ɺਖ਼ৗʹಈ࡞͠ͳ͍৔߹͕͋Δɻ VSCode ʹ͸ Dev Container ͱ͍͏࢓૊Έ͕͋Δ Neovim Ͱ΋ࣅͨ࢓૊ΈΛ࡞ΕΔͷͰ͸ͳ͍͔ʁ
  3. SOLVE Docker Λར༻ͯ͠ɺ։ൃ؀ڥΛίϯςφԽ ҎԼͷΑ͏ͳ࢓૊ΈͰɺ։ൃ؀ڥΛίϯςφԽ͠ɺ༷ʑͳϚγϯͰ࢖͍·ΘͤΔΑ͏ʹ͠·ͨ͠ɻ )PTU.BDIJOF04 -PDBM $POUBJOFS QSPEVDU $POUBJOFS EPU

    fi MFT 'JMFTZTUFN %PDLFS"SFB BQQMJDBUJPO BQQMJDBUJPO EPU fi MFT %PDLFS fi MFT %PDLFS)VC .BOVBMMZSVOOJOH $MPOF 1VTI 1VMM 7PMVNF 7PMVNF
  4. SOLVE GitHub Actions Λར༻͠ Docker ΠϝʔδΛ Docker Hub ΁ %PDLFS

    fi MFΛ(JU)VCͰ؅ཧ͠ɺ(JU)VC"DUJPOTͰEPU fi MFTΛऔΓࠐΈɺΠϝʔδΛϏϧυ͠·͢ɻ 
 ΠϝʔδΛ%PDLFS)VCʹΞοϓϩʔυ͢Δ͜ͱͰɺͲͷϚγϯͰ΋։ൃ؀ڥΛॠ࣌ʹ੔͑·͢ɻ )PTU.BDIJOF04 -PDBM $POUBJOFS EPU fi MFT BQQMJDBUJPO EPU fi MFT %PDLFS fi MFT %PDLFS)VC .BOVBMMZSVOOJOH $MPOF 1VTI 1VMM
  5. NOTE GitHub Actions ͷ Linux ܥΠϝʔδʹ߹Θͤͯ OS Λબ୒ (JU)VC"DUJPOTͰఏڙ͞Ε͍ͯΔ-JOVYܥͷ3VOOFS*NBHF͕6CVOUV͔͠ఏڙ͞Ε͍ͯ·ͤΜɻ 


    04͕ҟͳΔ͜ͱ͕ݪҼͰ%PDLFSΠϝʔδͷϏϧυ࣌ʹΤϥʔ͕ൃੜ͠ͳ͍Α͏౷Ұ͍ͯ͠·͢ɻ )PTU.BDIJOF04 -PDBM %PDLFS)VC 1VTI 1VMM $POUBJOFS EPU fi MFT BQQMJDBUJPO 3VOOFSJNBHF