開発環境の自動化とチューニングについて(仮)

 開発環境の自動化とチューニングについて(仮)

とある会社で開発環境構築の自動化に取り組んだ話を「名古屋Ruby会議04」で発表しました。パフォーマンスチューニングも触れています。

9e4278aa46bdee3404a1ac996e5ed310?s=128

yn-misaki

June 08, 2019
Tweet

Transcript

  1.   ()   (@yn-misaki)

  2. B6A+: /2E* .3 (@yn-misaki) - =?95 (J$#)')K -  "(

    -  >-I -  40CD@ 2019 ;...J7<K - Raspberry Pi &&: HPC,8 -  )% !F 1 GML
  3. "( - )%$!#& ' -    - '

      ( VS VS
  4.   PC !

  5.   !

  6.   !

  7.   ✋  "

  8. " #! - /! -  /  - 

    / etc... VS VS
  9. ;53+-7:.! - "$/% - 9*;53+16 (0=-7 *<> - !$%%2) %

    ;5  - ;5 "$ - "$' =-7 *<> - &#%,480"$;5 ?
  10. ?G3G >REB7U2016:V - )+(PC,M<DockerJ✨ - D2FP #+*" - D2S0Rails AppQ4

    REB7FP - REB7AK5=# - 3 Rails App4 6IRails+% O9;N - REC$+!/ - Rails Console'$(/ 18@T $ - -H."*&$+!5 L
  11.  

  12. CE@>4 . K! - B3/ AHJ569 OKI - :?>4 D;8/<71=

     - AWS(#+%"0=- G... - E@>4,>42F  - Ruby$+!'* - ,Rails&)+ '* - MySQL etc...
  13. CE@>4 . K! - B3/ AHJ569 OKI - :?>4 D;8/<71=

     - AWS(#+%"0=- G... - E@>4,>42F  - Ruby$+!'* - ,Rails&)+ '* - MySQL etc...
  14. $ 4"2 ! /(:10#< - '52 < - ,*.);+=29 :10#-3

    &68 > - ! :10#7%
  15.    !

  16. !       : ruby 

  17.   -   GitHub

  18. >?HEC75IBJ2016<K .0 -PCLDocker.0 -C7A ! - bundle updateD'0#+/gem2; - =1

    (-"@ - '0#+/%)F  - Ruby, Rails, Gem, MySQL etc… - G3 ),!0"+/9PC"*%&$/ 64:8
  19. -7D<;28>B9: -7;2C A*, );20E  ! - 34:  /=

    - ? %,#'+$&56  - &(!,"'+@1Vagrant.  - Rails &(!,"'+@1 - Docker @1 
  20.     aws- dynamodb- local mysql fake-s3 

    Rails App 1 Rails App 2 Rails App 1  Rails App 2  rsync
  21.  !0 - $,%&-* - # !0)' - Vagrant"OS/& -

    Rails /&/1# - config  - database3.(,24 - rake3 +',  4 - .(Docker1# - /etc/hosts /&3/OS4
  22.  Rails App 12  - Ruby, gem  

    - Docker   etc...  ! Vagrantfile  Mac DL - brew, VirtualBox, Vagrant etc...
  23. %$ ' "5* +&   , - : 

    - 2!): #1(
  24. CE@>4 . K! - B3/ AHJ569 OKI - :?>4 D;8/<71=

     - AWS(#+%"0=- G... - E@>4,>42F  - Ruby$+!'* - ,Rails&)+ '* - MySQL etc...
  25.  

  26. Vagrant6)'>2%5" DockerB PCC 8: *;A -  &$!/?76)8:04<1 - -#-@3+

    - Vagrant0 -  (, - Rails Server="04 - GUIVagrantmysql.904 etc...
  27. ?LN8A= D 7J 3Q UTC<(!/1!V - ?O -> +1HGU100%V ->

    6FPR -> *1$  MS - 23IVagrantRDockerU/1"-PCV" - K;D 37 9 :@ - PC,).1% 3P %#,)&Q - E> 0$'Vagrant54B #
  28.    

  29.     1

  30.    

  31.       + VS

  32.    ! 2018   

  33. Docker< B .5! (*&*:EF0810>/-GA4 - ),' <-> VagrantrsyncB - ;=

    9 Rails App,D?1.8K - Rails@3&),:E +++ - 201667:1 $*#! - VMC2 !",$*%, * 
  34.  

  35.  Vagrantfile 

  36.    Vagrantfile:  

  37. 'Vagrantfile: !*5)06 Vagrant (   #+&3% • Docker5PC64. -$,/

     1! Vagrant #+  2",/.git/&3%
  38.    Vagrantfile:  

  39.  Vagrantfile:     

  40.  101 + Vagrant    

  41. #!1,'< O  - 2>L8R#!1,'G  06! -  -5'(3&"

    H " - Slack%.5)2M7PF G - EQKVagrantB*6"/5@A - 3C8:B *6"/5PR; - *6"/5J=?D  S - ,4$!'9ruby, node*6"/5NI  ,4+"/5  
  42.    

  43. O=> 6662!2 - RLKAFNEI,1% .% #> - Infrastructure as Code

    C<! - +35'5(5"):Q G  OK - 8E&-3D5") JP V" - !/%$7T2*047UH 9 - O;?249MB - 44RLS@G
  44. Vagrant    ! - ansible  ImageMagick "

    etc...
  45. QGF<...! 1R= S3B>KS - J:0H6 C " - '-&! /84

    EA9@2Q5 - >O VagrantND2 P1;T*%"LM - #/)-!%IPR7  - @?+$(/,/ #
  46.    

  47.    !  () 

  48.  - i_^PZadLM)%@+'?80#HbN - YG#H `ROh[L Te - )%@+'?80;B.1B+U k

    - Vagrant/6&@0ansible, chef8A5*=2B(#XI - 7>-'9-'+MCCC\SV - dK H!^P ]f!k! - VagrantbN46&D:B+,<D2B(  !j - MacDocker#HcQ "FW:)B Tejj - 46&D:B+,<D2B(3-0 $gEJ