moyashidaisuke's diary

moyashidaisuke's diary

RubyMineでDockerでRuby環境作成メモ

2018-12-23 moyashidaisuke

rubyの勉強しようと思ったんだけど、ローカルに入れたくないのでとりあえずrubyをさくっと動かすためのrubyのdocker環境をつくった。

リポジトリ

[https://github.com/daisuke-fukuda/ruby-docker:embed:cite]

やった事

docker-composeでruby動かす

[https://docs.docker.com/compose/rails/:embed:cite] 公式の設定サンプルを参考(railsだけど)にとりあえずrubyが動くように

[https://github.com/daisuke-fukuda/ruby-docker/tree/7b3ec8c6c5e2d42d3a15a72979485d7e2082ff82:embed:cite]

docker-compose.yml

version: '3'
services:
  ruby:
    build: ruby
    volumes:
      - ./myapp:/myapp
    tty: true

Dockerfile

FROM ruby:2.5.3
RUN mkdir /myapp
WORKDIR /myapp

docker起動

docker-compose build
docker-compose up -d
docker exec -it ruby-docker_ruby_1 bash

ruby実行

root@80ee21e28a2d:/myapp# ruby helloworld.rb
hello world!

RubyMineから実行できるようにする

参考

[https://pleiades.io/help/ruby/using-docker-as-a-remote-interpreter.html:embed:cite]

[https://pleiades.io/help/ruby/using-docker-compose-as-a-remote-interpreter.html:embed:cite]

プラグイン確認

[femoji-idmoyashidaisuke:20181223132808p:plain][f<img class="emoji-icon" alt="emoji-id" data-icon="emoji-id" style="display: inline; margin: 0; margin-top: 1px; position: relative; top: 5px; width: 25px" src="data:image/png;base64, ivborw0kggoaaaansuheugaaaeaaaabacayaaacqaxheaaapceleqvr4xu2babblv1xhf2ufc+c39pt6snftdiqqxewqidfncimycphbakiby9koielxrcupeetxxllqstakpkkwmridda2xciohpbnij6endgdo5/u4vh6v33ync/zevrvrlleut8+53quzuvdftepwde1db//+z6111933pvfvfpxl+phw/xsqcoqsfb1t7s0x55braslfhiaf9uzmxkqa4dwroqo4dc04bhy02twvof/x6og7dumkfmqgbf17y01xb/zqb/flri4t5/rcqlaklbyibhhh1zsqoukinajh6x+orkvxylkfwznznz90+k4v00oztfbte9smsoxk7spfttcmf0ap5prjawkthwrbskmcw+qmgrh0ftzcvlfoczgjvo2wnsafmu2psrwtmtuyzqz++ku1xvkhhj1297htzoar1mw7b6g0es9ezcn5q4rj9ek/yvxkyvmqr//jmdafp8dg2ikfgry5vegm8epknri1hy2fipnddq7uxudfh49z7ku5+gud9ouhww/shmnm/5yvlp/bcetupadswfvwffcskclq7wv7nm8elu9qsv2mja+y9dbnnp+ecylqedev6vemzwvldd7ysr+dighbdiqdbca29hponenc9zhn7p76fa/dszdgqki+uisuwnmhcbavml1j56evhohpgkzo6rn+83or+zzthqusorwpsuknxvnzt7+r8ncoyr2lhnldpxyixsaktsbouv5zcabgcaweoag0kmtn+wuuuh6clvtx8axfezrjh0whfypdby4wos+jyhw6okwdrlj7sx8yk6+/drq0qcunsuhccd7/1+czv6/jzs9puzuzhpkaewphafbivzwmxplilkwjmu/vn2xykqxou2hen/me39jn/mdgtbrtj2vxttial6q2wtflm3pjg9/x3y1d575ptxetg8vbfv7zf1gdsxz/3mncykcyn7ywftcdcd1ywftgky8e/nov/jfz9xmo1a+zb+6pj6b2ffuyx/xx6kqzufl7waudxde3det7czoflrllhxfdepjfjpmvh/6pv8zhz18oioe/86w/vizlbl7hd+6s02jqss2vmakpnnqai4wryrl+cqzm/6oyg94yxo7t0wt5aiz6vdsjzgid2z/97gug6p9kmczsmrabcyrvtdugf1yukgzlci7h+osrlb2oqe41yfcfqkndxgai3zmzprrxaginjwufb6cclkyip/skg2ez3zwpzzplc1obygjy63imj5ia8nce6zfqbhntkfyschkjobmacjjakfh1jhfteitarqscmcbohod4kfnhr0qja+p7dmgrkcu0mzhonzih/uzte+stfs+0wuyzuw0icipgakjjake2g4mozrztk28n/759l/fs30hvrw0duirgcp3yw7nupnmg5xbjmny5wo0ppcbbcxxxaaejpahd9sl9wuyn6zzx+uwvy8t5w7hsrluee5mzjvcbi0hemxkjpgoqaqkitltplnq4daajpza3e3hhoyf4xf99bfdzhwkdlot7f+8ysy9ugdhywnytlm/51+c/ymhigmbckuse6xz7d02z+6ld/oe/pcunv/yo5e3dvp8tw7n86nxucnwadzuzdczb3hcqsenwiksokciuxrhcdm03pqycqmp96/qpmaalurrhs51nx5rgxhanlfvjbtauhserx2lr6owhljh7c9tuubjud3zxgzv4449t55t/uogp/ci7kw8kqvwjvbocvc/swzhhgacejyos1jqccyqcwym16hfpajyi/+scdywolxhderynp7wmn1/7dm5+9u188s/u5uo/ey+fupegxs/puw1bkt2yebysnkvp5t5audck15ebiniorfla1e+fjlybl4m+9fftxhtrdm679j5uc99n35aqzi3uimkztdkym8c1qhvnnye1tjszwje5dzglsvvid684y8um9/70fts+nooom3by0v+/dc36lkddds/imdaegzasivnobcs6s8dzonmadc6xdtb5/dbgqhbs1ezjzl6sera6yynxcrhex8ceqpa23fhwhv+14zx43ytven8galfnuxqxhuzgsgxqwkliuz/owbqzazygqinnkknpjd3a70/x68cube7/oxfoh893huneka2grd63wkxvxc3amijp+spb38uvrv4kcwfgkuyewnug9fmozjobhywm8gcq6spg/gl2pbu1cvsk1o/x8d5sxttiyosrpdbnunfbdwqnasxz3z7bi4/mcswhnnl2las4mcrkueyjm3nq76a45n1ros9s8swjl2fs3qrf/rzgrouskqmudpkl4mfte2/rvdlmqpi5q1e9+thbgg78u8gdf7mx0obh/cvdnew3fvin/p5nh6cxznfqwzfipavsuwmcqg9fasxf2ggxtfsjggrw+qeaevxlohy4eaoi9biqp9gincxtvbokj+/87x623t4i0m3pxeif9rf2mxuwytdgkjcftykervesvvtvbrwwxbtfsxzrx4raghm2irjnsq+/ncrwr4utps61ctou116bguejzg4urztedgk6d+sys0ergpn7mlqypauins1h0w1ien8syulxolhdangqhza7bnsv0fz6zwfjwaw4603qgajdgohfh9mn2htjmlgzxjedgahupumhv69bykn3csd+gmtu0dkvksk5sukwiqshxnzhvbg9mqbtiuvx4rw9feth6hmlpglsux+5ksgpo7nswjqu+5j1jmfs7dedskakoygonob5y1ukpzdiya7v3tfvai0aotrs4tirukuvtq5trxh0lbhhcaro0kytvpf8f0yxl0cty/5onezyjiggrkg1zyxtnqlaer8womqiknswi+rvioqjjinbspk9ihyo2wpnrmfjwwvw2esza71lyoleg+zibn0goaindlcjcwemlxalnen995wefwjhqwagav715sbls03sporaoagucig4pgcpubza2zqkiuqigipeuzzahfuvjckhswwbrtuyfgqbogj77bbzojngajbcqpywg8zsrzildnzcoxghrsl4hwbjwyjaih3wgc8nq8qr2ehxsex/zo6axpl9qp1caghigczm9b6fu/51cg+dkglqosfytio5/hznbcuiraobntyskglyyqximsfzb9ouoyt5eaembdld4gcxwcf0csdtxhueyckrqpq5crv2kixlhbpaem1blcytoexrcqvgsokpq9ogyfeimssn5dohatgagmkjeggm+b8glzrnypqjddam99mtvpesci728kv4ljzx9ijcbhvjk52fckq9bitvq0iqhahpeidaebyf57t9xexagigirpaa8jnd3onzdlzhibhopqppzmgtry3r5gkzafqqaeshfscdbmj7a1omjekoecgmsgmgeuatkbiq4hroz4b0pl/4l2p2un185qm/q5omv3ecsccodhrq5rga9podfggh3xdzgsdjmsqekftloid/1wbprgk85endxqzytcf+i+fl9np9nvekzb+wb9dxcixpgoxguc2ea2xsly6jb/h66lecbmk+y8gkrw0kofwouikwsfhbwacbmyjmqc4qd+35onskx+kfb9xhmnz/6xczr2v0jxc7jj7tzmjmzkb7iw8qfdlpj0ivkoiigqprtamw6luex/wbr54ctgwai9cwmbnrjso8ycq7offsei987t7wj51nmh7+x+cjcicikjrc06mhapjjl4nuj63gpzautikissazzo0d5+cgf2cu0ofbagbvkzwl9a8nceub1npnlz/hqsuva8h8+s8+fisb0ujxlwftzhi2swl2hhrbgkq42dv1naiiwfqpq6/k0l4d/dcql0z88badfppcjohuoijcz2rficg2qreh7zxheqwrdhulxq5vi9ikh0v5uwrj5fzbh2d+ei3+vuv/5m55flzchmyyod0nwd49qkfjv+b4obq81+rzt36ll3znmzberdtklymqowmcqtpjdra4a0mt0yqdapxow0d5uerxr+7lk3/yoiszdqzb8gr9wdpm8wuyj0gx6zbfa4sxtyokaxrtvx9jlrahy2bviuky44fv3fsnpx88wcp//bx7nzhout9p36o8dkemunh63gpnd0klgzcpytnu/+ytngvtmkkefdfg8okpkkmfciojofgkefdvn0ymokuckgsq803ipmxu6djhn59jev8iy/mn8qxqp3uxgrnwnk/wiatahhqq7g3kswehnznb848drbt7qqlul6dqdvh7q/f3b/d+6tht//uavqqwofexhge+ygcsbjkgqhjqavookjblamqjuezhvl0jk1hktlpebch0jxb40ug5fbvzerasqsiofow2ewfnvtrxyp5no2aqabe2p+z/3v1bfahkzddarweylm4xzqqaui+xn4pc/bryrth1ioizj496lhbtchunehlpqghl8fldjxjptyjt4nricbdmgw6a8ywtphu2z5hqwog5p743udqwz6awcv4p6mnidhef5mzfv6vpm1sjzryam3tajkkg1kgtnwgcuxmowvmx5vw/ockhqr7bnkn4xk5jzvzzimzpsbuyswah2jmnhr1vodbyyymobm1jzsohjkdktgqiiqoso0s9rrlymgg6tu+hfhtqyzkg3oq9s3s+wttluwljrwcobiwfdykjzwh8rn3wmg+c4hh18mcliyqv1qbdkyicmk5pfiyxih9wzn84np41kb+hgjyiju9gdcdiaw4bqlhoewutelxjotndsev9b/yv7v7wctmr4eslsecftynioqcyurhp7cahc24blw+8aia/tcmskdn5agkqe2beizy4fhuwq5aovfpx8gr8lnpvfq/sm/v+hxyttx4gllx1ef69dqibs4acwdkjl71rthjwrwwuri8sbn3kgpyjislmvc6f9rw31zjinqnbjrya009o1w/c8czmd7+jfxfwqfxjdao6tsgaaxmtamzzaxdfxm4px1om+87jb+ujxiscedu7peripq0eq8dlz1sbs489v7brf+da8bxw1qzalgfpmtabvdgztqwcaz/5baoyjogdvgffzgzvk4a3rirsdcg2ogs0ogcer6hbqieyaaa1va1xivoffmgt72ejwnyaaaaasuvork5cyii=" title="emoji-id" />moyashidaisuke:20181223132822p:plain]

remote追加

[femoji-idmoyashidaisuke:20181223142105p:plain][f<img class="emoji-icon" alt="emoji-id" data-icon="emoji-id" style="display: inline; margin: 0; margin-top: 1px; position: relative; top: 5px; width: 25px" src="data:image/png;base64, ivborw0kggoaaaansuheugaaaeaaaabacayaaacqaxheaaapceleqvr4xu2babblv1xhf2ufc+c39pt6snftdiqqxewqidfncimycphbakiby9koielxrcupeetxxllqstakpkkwmridda2xciohpbnij6endgdo5/u4vh6v33ync/zevrvrlleut8+53quzuvdftepwde1db//+z6111933pvfvfpxl+phw/xsqcoqsfb1t7s0x55braslfhiaf9uzmxkqa4dwroqo4dc04bhy02twvof/x6og7dumkfmqgbf17y01xb/zqb/flri4t5/rcqlaklbyibhhh1zsqoukinajh6x+orkvxylkfwznznz90+k4v00oztfbte9smsoxk7spfttcmf0ap5prjawkthwrbskmcw+qmgrh0ftzcvlfoczgjvo2wnsafmu2psrwtmtuyzqz++ku1xvkhhj1297htzoar1mw7b6g0es9ezcn5q4rj9ek/yvxkyvmqr//jmdafp8dg2ikfgry5vegm8epknri1hy2fipnddq7uxudfh49z7ku5+gud9ouhww/shmnm/5yvlp/bcetupadswfvwffcskclq7wv7nm8elu9qsv2mja+y9dbnnp+ecylqedev6vemzwvldd7ysr+dighbdiqdbca29hponenc9zhn7p76fa/dszdgqki+uisuwnmhcbavml1j56evhohpgkzo6rn+83or+zzthqusorwpsuknxvnzt7+r8ncoyr2lhnldpxyixsaktsbouv5zcabgcaweoag0kmtn+wuuuh6clvtx8axfezrjh0whfypdby4wos+jyhw6okwdrlj7sx8yk6+/drq0qcunsuhccd7/1+czv6/jzs9puzuzhpkaewphafbivzwmxplilkwjmu/vn2xykqxou2hen/me39jn/mdgtbrtj2vxttial6q2wtflm3pjg9/x3y1d575ptxetg8vbfv7zf1gdsxz/3mncykcyn7ywftcdcd1ywftgky8e/nov/jfz9xmo1a+zb+6pj6b2ffuyx/xx6kqzufl7waudxde3det7czoflrllhxfdepjfjpmvh/6pv8zhz18oioe/86w/vizlbl7hd+6s02jqss2vmakpnnqai4wryrl+cqzm/6oyg94yxo7t0wt5aiz6vdsjzgid2z/97gug6p9kmczsmrabcyrvtdugf1yukgzlci7h+osrlb2oqe41yfcfqkndxgai3zmzprrxaginjwufb6cclkyip/skg2ez3zwpzzplc1obygjy63imj5ia8nce6zfqbhntkfyschkjobmacjjakfh1jhfteitarqscmcbohod4kfnhr0qja+p7dmgrkcu0mzhonzih/uzte+stfs+0wuyzuw0icipgakjjake2g4mozrztk28n/759l/fs30hvrw0duirgcp3yw7nupnmg5xbjmny5wo0ppcbbcxxxaaejpahd9sl9wuyn6zzx+uwvy8t5w7hsrluee5mzjvcbi0hemxkjpgoqaqkitltplnq4daajpza3e3hhoyf4xf99bfdzhwkdlot7f+8ysy9ugdhywnytlm/51+c/ymhigmbckuse6xz7d02z+6ld/oe/pcunv/yo5e3dvp8tw7n86nxucnwadzuzdczb3hcqsenwiksokciuxrhcdm03pqycqmp96/qpmaalurrhs51nx5rgxhanlfvjbtauhserx2lr6owhljh7c9tuubjud3zxgzv4449t55t/uogp/ci7kw8kqvwjvbocvc/swzhhgacejyos1jqccyqcwym16hfpajyi/+scdywolxhderynp7wmn1/7dm5+9u188s/u5uo/ey+fupegxs/puw1bkt2yebysnkvp5t5audck15ebiniorfla1e+fjlybl4m+9fftxhtrdm679j5uc99n35aqzi3uimkztdkym8c1qhvnnye1tjszwje5dzglsvvid684y8um9/70fts+nooom3by0v+/dc36lkddds/imdaegzasivnobcs6s8dzonmadc6xdtb5/dbgqhbs1ezjzl6sera6yynxcrhex8ceqpa23fhwhv+14zx43ytven8galfnuxqxhuzgsgxqwkliuz/owbqzazygqinnkknpjd3a70/x68cube7/oxfoh893huneka2grd63wkxvxc3amijp+spb38uvrv4kcwfgkuyewnug9fmozjobhywm8gcq6spg/gl2pbu1cvsk1o/x8d5sxttiyosrpdbnunfbdwqnasxz3z7bi4/mcswhnnl2las4mcrkueyjm3nq76a45n1ros9s8swjl2fs3qrf/rzgrouskqmudpkl4mfte2/rvdlmqpi5q1e9+thbgg78u8gdf7mx0obh/cvdnew3fvin/p5nh6cxznfqwzfipavsuwmcqg9fasxf2ggxtfsjggrw+qeaevxlohy4eaoi9biqp9gincxtvbokj+/87x623t4i0m3pxeif9rf2mxuwytdgkjcftykervesvvtvbrwwxbtfsxzrx4raghm2irjnsq+/ncrwr4utps61ctou116bguejzg4urztedgk6d+sys0ergpn7mlqypauins1h0w1ien8syulxolhdangqhza7bnsv0fz6zwfjwaw4603qgajdgohfh9mn2htjmlgzxjedgahupumhv69bykn3csd+gmtu0dkvksk5sukwiqshxnzhvbg9mqbtiuvx4rw9feth6hmlpglsux+5ksgpo7nswjqu+5j1jmfs7dedskakoygonob5y1ukpzdiya7v3tfvai0aotrs4tirukuvtq5trxh0lbhhcaro0kytvpf8f0yxl0cty/5onezyjiggrkg1zyxtnqlaer8womqiknswi+rvioqjjinbspk9ihyo2wpnrmfjwwvw2esza71lyoleg+zibn0goaindlcjcwemlxalnen995wefwjhqwagav715sbls03sporaoagucig4pgcpubza2zqkiuqigipeuzzahfuvjckhswwbrtuyfgqbogj77bbzojngajbcqpywg8zsrzildnzcoxghrsl4hwbjwyjaih3wgc8nq8qr2ehxsex/zo6axpl9qp1caghigczm9b6fu/51cg+dkglqosfytio5/hznbcuiraobntyskglyyqximsfzb9ouoyt5eaembdld4gcxwcf0csdtxhueyckrqpq5crv2kixlhbpaem1blcytoexrcqvgsokpq9ogyfeimssn5dohatgagmkjeggm+b8glzrnypqjddam99mtvpesci728kv4ljzx9ijcbhvjk52fckq9bitvq0iqhahpeidaebyf57t9xexagigirpaa8jnd3onzdlzhibhopqppzmgtry3r5gkzafqqaeshfscdbmj7a1omjekoecgmsgmgeuatkbiq4hroz4b0pl/4l2p2un185qm/q5omv3ecsccodhrq5rga9podfggh3xdzgsdjmsqekftloid/1wbprgk85endxqzytcf+i+fl9np9nvekzb+wb9dxcixpgoxguc2ea2xsly6jb/h66lecbmk+y8gkrw0kofwouikwsfhbwacbmyjmqc4qd+35onskx+kfb9xhmnz/6xczr2v0jxc7jj7tzmjmzkb7iw8qfdlpj0ivkoiigqprtamw6luex/wbr54ctgwai9cwmbnrjso8ycq7offsei987t7wj51nmh7+x+cjcicikjrc06mhapjjl4nuj63gpzautikissazzo0d5+cgf2cu0ofbagbvkzwl9a8nceub1npnlz/hqsuva8h8+s8+fisb0ujxlwftzhi2swl2hhrbgkq42dv1naiiwfqpq6/k0l4d/dcql0z88badfppcjohuoijcz2rficg2qreh7zxheqwrdhulxq5vi9ikh0v5uwrj5fzbh2d+ei3+vuv/5m55flzchmyyod0nwd49qkfjv+b4obq81+rzt36ll3znmzberdtklymqowmcqtpjdra4a0mt0yqdapxow0d5uerxr+7lk3/yoiszdqzb8gr9wdpm8wuyj0gx6zbfa4sxtyokaxrtvx9jlrahy2bviuky44fv3fsnpx88wcp//bx7nzhout9p36o8dkemunh63gpnd0klgzcpytnu/+ytngvtmkkefdfg8okpkkmfciojofgkefdvn0ymokuckgsq803ipmxu6djhn59jev8iy/mn8qxqp3uxgrnwnk/wiatahhqq7g3kswehnznb848drbt7qqlul6dqdvh7q/f3b/d+6tht//uavqqwofexhge+ygcsbjkgqhjqavookjblamqjuezhvl0jk1hktlpebch0jxb40ug5fbvzerasqsiofow2ewfnvtrxyp5no2aqabe2p+z/3v1bfahkzddarweylm4xzqqaui+xn4pc/bryrth1ioizj496lhbtchunehlpqghl8fldjxjptyjt4nricbdmgw6a8ywtphu2z5hqwog5p743udqwz6awcv4p6mnidhef5mzfv6vpm1sjzryam3tajkkg1kgtnwgcuxmowvmx5vw/ockhqr7bnkn4xk5jzvzzimzpsbuyswah2jmnhr1vodbyyymobm1jzsohjkdktgqiiqoso0s9rrlymgg6tu+hfhtqyzkg3oq9s3s+wttluwljrwcobiwfdykjzwh8rn3wmg+c4hh18mcliyqv1qbdkyicmk5pfiyxih9wzn84np41kb+hgjyiju9gdcdiaw4bqlhoewutelxjotndsev9b/yv7v7wctmr4eslsecftynioqcyurhp7cahc24blw+8aia/tcmskdn5agkqe2beizy4fhuwq5aovfpx8gr8lnpvfq/sm/v+hxyttx4gllx1ef69dqibs4acwdkjl71rthjwrwwuri8sbn3kgpyjislmvc6f9rw31zjinqnbjrya009o1w/c8czmd7+jfxfwqfxjdao6tsgaaxmtamzzaxdfxm4px1om+87jb+ujxiscedu7peripq0eq8dlz1sbs489v7brf+da8bxw1qzalgfpmtabvdgztqwcaz/5baoyjogdvgffzgzvk4a3rirsdcg2ogs0ogcer6hbqieyaaa1va1xivoffmgt72ejwnyaaaaasuvork5cyii=" title="emoji-id" />moyashidaisuke:20181223142123p:plain] [femoji-idmoyashidaisuke:20181223142140p:plain][f<img class="emoji-icon" alt="emoji-id" data-icon="emoji-id" style="display: inline; margin: 0; margin-top: 1px; position: relative; top: 5px; width: 25px" src="data:image/png;base64, ivborw0kggoaaaansuheugaaaeaaaabacayaaacqaxheaaapceleqvr4xu2babblv1xhf2ufc+c39pt6snftdiqqxewqidfncimycphbakiby9koielxrcupeetxxllqstakpkkwmridda2xciohpbnij6endgdo5/u4vh6v33ync/zevrvrlleut8+53quzuvdftepwde1db//+z6111933pvfvfpxl+phw/xsqcoqsfb1t7s0x55braslfhiaf9uzmxkqa4dwroqo4dc04bhy02twvof/x6og7dumkfmqgbf17y01xb/zqb/flri4t5/rcqlaklbyibhhh1zsqoukinajh6x+orkvxylkfwznznz90+k4v00oztfbte9smsoxk7spfttcmf0ap5prjawkthwrbskmcw+qmgrh0ftzcvlfoczgjvo2wnsafmu2psrwtmtuyzqz++ku1xvkhhj1297htzoar1mw7b6g0es9ezcn5q4rj9ek/yvxkyvmqr//jmdafp8dg2ikfgry5vegm8epknri1hy2fipnddq7uxudfh49z7ku5+gud9ouhww/shmnm/5yvlp/bcetupadswfvwffcskclq7wv7nm8elu9qsv2mja+y9dbnnp+ecylqedev6vemzwvldd7ysr+dighbdiqdbca29hponenc9zhn7p76fa/dszdgqki+uisuwnmhcbavml1j56evhohpgkzo6rn+83or+zzthqusorwpsuknxvnzt7+r8ncoyr2lhnldpxyixsaktsbouv5zcabgcaweoag0kmtn+wuuuh6clvtx8axfezrjh0whfypdby4wos+jyhw6okwdrlj7sx8yk6+/drq0qcunsuhccd7/1+czv6/jzs9puzuzhpkaewphafbivzwmxplilkwjmu/vn2xykqxou2hen/me39jn/mdgtbrtj2vxttial6q2wtflm3pjg9/x3y1d575ptxetg8vbfv7zf1gdsxz/3mncykcyn7ywftcdcd1ywftgky8e/nov/jfz9xmo1a+zb+6pj6b2ffuyx/xx6kqzufl7waudxde3det7czoflrllhxfdepjfjpmvh/6pv8zhz18oioe/86w/vizlbl7hd+6s02jqss2vmakpnnqai4wryrl+cqzm/6oyg94yxo7t0wt5aiz6vdsjzgid2z/97gug6p9kmczsmrabcyrvtdugf1yukgzlci7h+osrlb2oqe41yfcfqkndxgai3zmzprrxaginjwufb6cclkyip/skg2ez3zwpzzplc1obygjy63imj5ia8nce6zfqbhntkfyschkjobmacjjakfh1jhfteitarqscmcbohod4kfnhr0qja+p7dmgrkcu0mzhonzih/uzte+stfs+0wuyzuw0icipgakjjake2g4mozrztk28n/759l/fs30hvrw0duirgcp3yw7nupnmg5xbjmny5wo0ppcbbcxxxaaejpahd9sl9wuyn6zzx+uwvy8t5w7hsrluee5mzjvcbi0hemxkjpgoqaqkitltplnq4daajpza3e3hhoyf4xf99bfdzhwkdlot7f+8ysy9ugdhywnytlm/51+c/ymhigmbckuse6xz7d02z+6ld/oe/pcunv/yo5e3dvp8tw7n86nxucnwadzuzdczb3hcqsenwiksokciuxrhcdm03pqycqmp96/qpmaalurrhs51nx5rgxhanlfvjbtauhserx2lr6owhljh7c9tuubjud3zxgzv4449t55t/uogp/ci7kw8kqvwjvbocvc/swzhhgacejyos1jqccyqcwym16hfpajyi/+scdywolxhderynp7wmn1/7dm5+9u188s/u5uo/ey+fupegxs/puw1bkt2yebysnkvp5t5audck15ebiniorfla1e+fjlybl4m+9fftxhtrdm679j5uc99n35aqzi3uimkztdkym8c1qhvnnye1tjszwje5dzglsvvid684y8um9/70fts+nooom3by0v+/dc36lkddds/imdaegzasivnobcs6s8dzonmadc6xdtb5/dbgqhbs1ezjzl6sera6yynxcrhex8ceqpa23fhwhv+14zx43ytven8galfnuxqxhuzgsgxqwkliuz/owbqzazygqinnkknpjd3a70/x68cube7/oxfoh893huneka2grd63wkxvxc3amijp+spb38uvrv4kcwfgkuyewnug9fmozjobhywm8gcq6spg/gl2pbu1cvsk1o/x8d5sxttiyosrpdbnunfbdwqnasxz3z7bi4/mcswhnnl2las4mcrkueyjm3nq76a45n1ros9s8swjl2fs3qrf/rzgrouskqmudpkl4mfte2/rvdlmqpi5q1e9+thbgg78u8gdf7mx0obh/cvdnew3fvin/p5nh6cxznfqwzfipavsuwmcqg9fasxf2ggxtfsjggrw+qeaevxlohy4eaoi9biqp9gincxtvbokj+/87x623t4i0m3pxeif9rf2mxuwytdgkjcftykervesvvtvbrwwxbtfsxzrx4raghm2irjnsq+/ncrwr4utps61ctou116bguejzg4urztedgk6d+sys0ergpn7mlqypauins1h0w1ien8syulxolhdangqhza7bnsv0fz6zwfjwaw4603qgajdgohfh9mn2htjmlgzxjedgahupumhv69bykn3csd+gmtu0dkvksk5sukwiqshxnzhvbg9mqbtiuvx4rw9feth6hmlpglsux+5ksgpo7nswjqu+5j1jmfs7dedskakoygonob5y1ukpzdiya7v3tfvai0aotrs4tirukuvtq5trxh0lbhhcaro0kytvpf8f0yxl0cty/5onezyjiggrkg1zyxtnqlaer8womqiknswi+rvioqjjinbspk9ihyo2wpnrmfjwwvw2esza71lyoleg+zibn0goaindlcjcwemlxalnen995wefwjhqwagav715sbls03sporaoagucig4pgcpubza2zqkiuqigipeuzzahfuvjckhswwbrtuyfgqbogj77bbzojngajbcqpywg8zsrzildnzcoxghrsl4hwbjwyjaih3wgc8nq8qr2ehxsex/zo6axpl9qp1caghigczm9b6fu/51cg+dkglqosfytio5/hznbcuiraobntyskglyyqximsfzb9ouoyt5eaembdld4gcxwcf0csdtxhueyckrqpq5crv2kixlhbpaem1blcytoexrcqvgsokpq9ogyfeimssn5dohatgagmkjeggm+b8glzrnypqjddam99mtvpesci728kv4ljzx9ijcbhvjk52fckq9bitvq0iqhahpeidaebyf57t9xexagigirpaa8jnd3onzdlzhibhopqppzmgtry3r5gkzafqqaeshfscdbmj7a1omjekoecgmsgmgeuatkbiq4hroz4b0pl/4l2p2un185qm/q5omv3ecsccodhrq5rga9podfggh3xdzgsdjmsqekftloid/1wbprgk85endxqzytcf+i+fl9np9nvekzb+wb9dxcixpgoxguc2ea2xsly6jb/h66lecbmk+y8gkrw0kofwouikwsfhbwacbmyjmqc4qd+35onskx+kfb9xhmnz/6xczr2v0jxc7jj7tzmjmzkb7iw8qfdlpj0ivkoiigqprtamw6luex/wbr54ctgwai9cwmbnrjso8ycq7offsei987t7wj51nmh7+x+cjcicikjrc06mhapjjl4nuj63gpzautikissazzo0d5+cgf2cu0ofbagbvkzwl9a8nceub1npnlz/hqsuva8h8+s8+fisb0ujxlwftzhi2swl2hhrbgkq42dv1naiiwfqpq6/k0l4d/dcql0z88badfppcjohuoijcz2rficg2qreh7zxheqwrdhulxq5vi9ikh0v5uwrj5fzbh2d+ei3+vuv/5m55flzchmyyod0nwd49qkfjv+b4obq81+rzt36ll3znmzberdtklymqowmcqtpjdra4a0mt0yqdapxow0d5uerxr+7lk3/yoiszdqzb8gr9wdpm8wuyj0gx6zbfa4sxtyokaxrtvx9jlrahy2bviuky44fv3fsnpx88wcp//bx7nzhout9p36o8dkemunh63gpnd0klgzcpytnu/+ytngvtmkkefdfg8okpkkmfciojofgkefdvn0ymokuckgsq803ipmxu6djhn59jev8iy/mn8qxqp3uxgrnwnk/wiatahhqq7g3kswehnznb848drbt7qqlul6dqdvh7q/f3b/d+6tht//uavqqwofexhge+ygcsbjkgqhjqavookjblamqjuezhvl0jk1hktlpebch0jxb40ug5fbvzerasqsiofow2ewfnvtrxyp5no2aqabe2p+z/3v1bfahkzddarweylm4xzqqaui+xn4pc/bryrth1ioizj496lhbtchunehlpqghl8fldjxjptyjt4nricbdmgw6a8ywtphu2z5hqwog5p743udqwz6awcv4p6mnidhef5mzfv6vpm1sjzryam3tajkkg1kgtnwgcuxmowvmx5vw/ockhqr7bnkn4xk5jzvzzimzpsbuyswah2jmnhr1vodbyyymobm1jzsohjkdktgqiiqoso0s9rrlymgg6tu+hfhtqyzkg3oq9s3s+wttluwljrwcobiwfdykjzwh8rn3wmg+c4hh18mcliyqv1qbdkyicmk5pfiyxih9wzn84np41kb+hgjyiju9gdcdiaw4bqlhoewutelxjotndsev9b/yv7v7wctmr4eslsecftynioqcyurhp7cahc24blw+8aia/tcmskdn5agkqe2beizy4fhuwq5aovfpx8gr8lnpvfq/sm/v+hxyttx4gllx1ef69dqibs4acwdkjl71rthjwrwwuri8sbn3kgpyjislmvc6f9rw31zjinqnbjrya009o1w/c8czmd7+jfxfwqfxjdao6tsgaaxmtamzzaxdfxm4px1om+87jb+ujxiscedu7peripq0eq8dlz1sbs489v7brf+da8bxw1qzalgfpmtabvdgztqwcaz/5baoyjogdvgffzgzvk4a3rirsdcg2ogs0ogcer6hbqieyaaa1va1xivoffmgt72ejwnyaaaaasuvork5cyii=" title="emoji-id" />moyashidaisuke:20181223142151p:plain]

試しにRunしたら動いた [femoji-idmoyashidaisuke:20181223142223p:plain][f<img class="emoji-icon" alt="emoji-id" data-icon="emoji-id" style="display: inline; margin: 0; margin-top: 1px; position: relative; top: 5px; width: 25px" src="data:image/png;base64, ivborw0kggoaaaansuheugaaaeaaaabacayaaacqaxheaaapceleqvr4xu2babblv1xhf2ufc+c39pt6snftdiqqxewqidfncimycphbakiby9koielxrcupeetxxllqstakpkkwmridda2xciohpbnij6endgdo5/u4vh6v33ync/zevrvrlleut8+53quzuvdftepwde1db//+z6111933pvfvfpxl+phw/xsqcoqsfb1t7s0x55braslfhiaf9uzmxkqa4dwroqo4dc04bhy02twvof/x6og7dumkfmqgbf17y01xb/zqb/flri4t5/rcqlaklbyibhhh1zsqoukinajh6x+orkvxylkfwznznz90+k4v00oztfbte9smsoxk7spfttcmf0ap5prjawkthwrbskmcw+qmgrh0ftzcvlfoczgjvo2wnsafmu2psrwtmtuyzqz++ku1xvkhhj1297htzoar1mw7b6g0es9ezcn5q4rj9ek/yvxkyvmqr//jmdafp8dg2ikfgry5vegm8epknri1hy2fipnddq7uxudfh49z7ku5+gud9ouhww/shmnm/5yvlp/bcetupadswfvwffcskclq7wv7nm8elu9qsv2mja+y9dbnnp+ecylqedev6vemzwvldd7ysr+dighbdiqdbca29hponenc9zhn7p76fa/dszdgqki+uisuwnmhcbavml1j56evhohpgkzo6rn+83or+zzthqusorwpsuknxvnzt7+r8ncoyr2lhnldpxyixsaktsbouv5zcabgcaweoag0kmtn+wuuuh6clvtx8axfezrjh0whfypdby4wos+jyhw6okwdrlj7sx8yk6+/drq0qcunsuhccd7/1+czv6/jzs9puzuzhpkaewphafbivzwmxplilkwjmu/vn2xykqxou2hen/me39jn/mdgtbrtj2vxttial6q2wtflm3pjg9/x3y1d575ptxetg8vbfv7zf1gdsxz/3mncykcyn7ywftcdcd1ywftgky8e/nov/jfz9xmo1a+zb+6pj6b2ffuyx/xx6kqzufl7waudxde3det7czoflrllhxfdepjfjpmvh/6pv8zhz18oioe/86w/vizlbl7hd+6s02jqss2vmakpnnqai4wryrl+cqzm/6oyg94yxo7t0wt5aiz6vdsjzgid2z/97gug6p9kmczsmrabcyrvtdugf1yukgzlci7h+osrlb2oqe41yfcfqkndxgai3zmzprrxaginjwufb6cclkyip/skg2ez3zwpzzplc1obygjy63imj5ia8nce6zfqbhntkfyschkjobmacjjakfh1jhfteitarqscmcbohod4kfnhr0qja+p7dmgrkcu0mzhonzih/uzte+stfs+0wuyzuw0icipgakjjake2g4mozrztk28n/759l/fs30hvrw0duirgcp3yw7nupnmg5xbjmny5wo0ppcbbcxxxaaejpahd9sl9wuyn6zzx+uwvy8t5w7hsrluee5mzjvcbi0hemxkjpgoqaqkitltplnq4daajpza3e3hhoyf4xf99bfdzhwkdlot7f+8ysy9ugdhywnytlm/51+c/ymhigmbckuse6xz7d02z+6ld/oe/pcunv/yo5e3dvp8tw7n86nxucnwadzuzdczb3hcqsenwiksokciuxrhcdm03pqycqmp96/qpmaalurrhs51nx5rgxhanlfvjbtauhserx2lr6owhljh7c9tuubjud3zxgzv4449t55t/uogp/ci7kw8kqvwjvbocvc/swzhhgacejyos1jqccyqcwym16hfpajyi/+scdywolxhderynp7wmn1/7dm5+9u188s/u5uo/ey+fupegxs/puw1bkt2yebysnkvp5t5audck15ebiniorfla1e+fjlybl4m+9fftxhtrdm679j5uc99n35aqzi3uimkztdkym8c1qhvnnye1tjszwje5dzglsvvid684y8um9/70fts+nooom3by0v+/dc36lkddds/imdaegzasivnobcs6s8dzonmadc6xdtb5/dbgqhbs1ezjzl6sera6yynxcrhex8ceqpa23fhwhv+14zx43ytven8galfnuxqxhuzgsgxqwkliuz/owbqzazygqinnkknpjd3a70/x68cube7/oxfoh893huneka2grd63wkxvxc3amijp+spb38uvrv4kcwfgkuyewnug9fmozjobhywm8gcq6spg/gl2pbu1cvsk1o/x8d5sxttiyosrpdbnunfbdwqnasxz3z7bi4/mcswhnnl2las4mcrkueyjm3nq76a45n1ros9s8swjl2fs3qrf/rzgrouskqmudpkl4mfte2/rvdlmqpi5q1e9+thbgg78u8gdf7mx0obh/cvdnew3fvin/p5nh6cxznfqwzfipavsuwmcqg9fasxf2ggxtfsjggrw+qeaevxlohy4eaoi9biqp9gincxtvbokj+/87x623t4i0m3pxeif9rf2mxuwytdgkjcftykervesvvtvbrwwxbtfsxzrx4raghm2irjnsq+/ncrwr4utps61ctou116bguejzg4urztedgk6d+sys0ergpn7mlqypauins1h0w1ien8syulxolhdangqhza7bnsv0fz6zwfjwaw4603qgajdgohfh9mn2htjmlgzxjedgahupumhv69bykn3csd+gmtu0dkvksk5sukwiqshxnzhvbg9mqbtiuvx4rw9feth6hmlpglsux+5ksgpo7nswjqu+5j1jmfs7dedskakoygonob5y1ukpzdiya7v3tfvai0aotrs4tirukuvtq5trxh0lbhhcaro0kytvpf8f0yxl0cty/5onezyjiggrkg1zyxtnqlaer8womqiknswi+rvioqjjinbspk9ihyo2wpnrmfjwwvw2esza71lyoleg+zibn0goaindlcjcwemlxalnen995wefwjhqwagav715sbls03sporaoagucig4pgcpubza2zqkiuqigipeuzzahfuvjckhswwbrtuyfgqbogj77bbzojngajbcqpywg8zsrzildnzcoxghrsl4hwbjwyjaih3wgc8nq8qr2ehxsex/zo6axpl9qp1caghigczm9b6fu/51cg+dkglqosfytio5/hznbcuiraobntyskglyyqximsfzb9ouoyt5eaembdld4gcxwcf0csdtxhueyckrqpq5crv2kixlhbpaem1blcytoexrcqvgsokpq9ogyfeimssn5dohatgagmkjeggm+b8glzrnypqjddam99mtvpesci728kv4ljzx9ijcbhvjk52fckq9bitvq0iqhahpeidaebyf57t9xexagigirpaa8jnd3onzdlzhibhopqppzmgtry3r5gkzafqqaeshfscdbmj7a1omjekoecgmsgmgeuatkbiq4hroz4b0pl/4l2p2un185qm/q5omv3ecsccodhrq5rga9podfggh3xdzgsdjmsqekftloid/1wbprgk85endxqzytcf+i+fl9np9nvekzb+wb9dxcixpgoxguc2ea2xsly6jb/h66lecbmk+y8gkrw0kofwouikwsfhbwacbmyjmqc4qd+35onskx+kfb9xhmnz/6xczr2v0jxc7jj7tzmjmzkb7iw8qfdlpj0ivkoiigqprtamw6luex/wbr54ctgwai9cwmbnrjso8ycq7offsei987t7wj51nmh7+x+cjcicikjrc06mhapjjl4nuj63gpzautikissazzo0d5+cgf2cu0ofbagbvkzwl9a8nceub1npnlz/hqsuva8h8+s8+fisb0ujxlwftzhi2swl2hhrbgkq42dv1naiiwfqpq6/k0l4d/dcql0z88badfppcjohuoijcz2rficg2qreh7zxheqwrdhulxq5vi9ikh0v5uwrj5fzbh2d+ei3+vuv/5m55flzchmyyod0nwd49qkfjv+b4obq81+rzt36ll3znmzberdtklymqowmcqtpjdra4a0mt0yqdapxow0d5uerxr+7lk3/yoiszdqzb8gr9wdpm8wuyj0gx6zbfa4sxtyokaxrtvx9jlrahy2bviuky44fv3fsnpx88wcp//bx7nzhout9p36o8dkemunh63gpnd0klgzcpytnu/+ytngvtmkkefdfg8okpkkmfciojofgkefdvn0ymokuckgsq803ipmxu6djhn59jev8iy/mn8qxqp3uxgrnwnk/wiatahhqq7g3kswehnznb848drbt7qqlul6dqdvh7q/f3b/d+6tht//uavqqwofexhge+ygcsbjkgqhjqavookjblamqjuezhvl0jk1hktlpebch0jxb40ug5fbvzerasqsiofow2ewfnvtrxyp5no2aqabe2p+z/3v1bfahkzddarweylm4xzqqaui+xn4pc/bryrth1ioizj496lhbtchunehlpqghl8fldjxjptyjt4nricbdmgw6a8ywtphu2z5hqwog5p743udqwz6awcv4p6mnidhef5mzfv6vpm1sjzryam3tajkkg1kgtnwgcuxmowvmx5vw/ockhqr7bnkn4xk5jzvzzimzpsbuyswah2jmnhr1vodbyyymobm1jzsohjkdktgqiiqoso0s9rrlymgg6tu+hfhtqyzkg3oq9s3s+wttluwljrwcobiwfdykjzwh8rn3wmg+c4hh18mcliyqv1qbdkyicmk5pfiyxih9wzn84np41kb+hgjyiju9gdcdiaw4bqlhoewutelxjotndsev9b/yv7v7wctmr4eslsecftynioqcyurhp7cahc24blw+8aia/tcmskdn5agkqe2beizy4fhuwq5aovfpx8gr8lnpvfq/sm/v+hxyttx4gllx1ef69dqibs4acwdkjl71rthjwrwwuri8sbn3kgpyjislmvc6f9rw31zjinqnbjrya009o1w/c8czmd7+jfxfwqfxjdao6tsgaaxmtamzzaxdfxm4px1om+87jb+ujxiscedu7peripq0eq8dlz1sbs489v7brf+da8bxw1qzalgfpmtabvdgztqwcaz/5baoyjogdvgffzgzvk4a3rirsdcg2ogs0ogcer6hbqieyaaa1va1xivoffmgt72ejwnyaaaaasuvork5cyii=" title="emoji-id" />moyashidaisuke:20181223142237p:plain]

Debug実行

試しに実行してみたら怒られた

14:23	Error running 'helloworld': Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.

落ち着いてマニュアルに従ってgemfileを追加して、build時にbunlde installするようにする

Dockerfile

FROM ruby:2.5.3
RUN mkdir /myapp
WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
ADD Gemfile.lock /myapp/Gemfile.lock
RUN bundle install

Gemfileのpathが気に食わないけど、とりあえずそのままで。

少しハマったのが、installしたGemがRubyMine見えるように手動で再読込してあげないといけなかった。

[femoji-idmoyashidaisuke:20181223145851p:plain]

動いた [femoji-idmoyashidaisuke:20181223145956p:plain]

所感

他の言語も一通り作っておくと楽だな〜と思いました。 環境作ったら同じノリで残しておく事にしよう。