Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
RancherにDocker初心者がチャレンジしてみた!.pdf
Search
NakanishiTetsuhiro
November 10, 2018
Programming
0
410
RancherにDocker初心者がチャレンジしてみた!.pdf
Rancher meetup01 okinawaで発表したLTの資料です
NakanishiTetsuhiro
November 10, 2018
Tweet
Share
More Decks by NakanishiTetsuhiro
See All by NakanishiTetsuhiro
コメントの書き方から見る 良いコードについての考察
nakanishitetsuhiro
0
590
SelfIntroduction
nakanishitetsuhiro
0
44
Laravelで設計する際の ベストプラクティスを探る
nakanishitetsuhiro
0
2k
MackerelでECS on Fargate 監視してみた
nakanishitetsuhiro
0
820
WebエンジニアによるWebエンジニアのための今だからこそおすすめしたいLinux環境
nakanishitetsuhiro
1
84
本番環境をECSで構築した話
nakanishitetsuhiro
0
830
Laravel5でjobque実装した話
nakanishitetsuhiro
0
91
Laravel5でJob_Queue実装した話_v1.0.1
nakanishitetsuhiro
1
47
社会人による社会人のための友達づくりのすゝめ
nakanishitetsuhiro
0
43
Other Decks in Programming
See All in Programming
CPython 인터프리터 구조 파헤치기 - PyCon Korea 24
kennethanceyer
0
250
Better Code Design in PHP
afilina
PRO
0
120
Macとオーディオ再生 2024/11/02
yusukeito
0
350
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.6k
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
430
Dev ContainersとGitHub Codespacesの素敵な関係
ymd65536
1
140
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
720
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
280
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
270
CSC509 Lecture 12
javiergs
PRO
0
140
Jakarta EE meets AI
ivargrimstad
0
440
Amazon Qを使ってIaCを触ろう!
maruto
0
390
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
RailsConf 2023
tenderlove
29
900
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
A Tale of Four Properties
chriscoyier
156
23k
Docker and Python
trallard
40
3.1k
Bash Introduction
62gerente
608
210k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Six Lessons from altMBA
skipperchong
27
3.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
400
Transcript
Rancherʹ Dockerॳ৺ऀ͕ νϟϨϯδͯ͠Έͨʂ גࣜձࣾRe:Build ͯͭ (@kaoru6strings) 201811݄10ʢʣ Rancher Meetup #01
in Okinawa https://rancherjp.connpass.com/event/105968/
ࣗݾհ • த େʢͯͭ͞Μ or ͯͭ͑Μ ← New!!ʣ • גࣜձࣾRe:BuildɿWebΤϯδχΞ
• Laravel + Vue.js, Ruby on rails • ϦϞʔτϫʔΫͯ͠·͢ • @kaoru6strings
Πϯϑϥؔ࿈ͷεΩϧηοτ • Vagrant + VirtualBoxɿ2ؒ͘Β͍৮ͬͯͨ • AWSɿઌഐʹڭ͑ͯΒ͍ͭͭECS + Fargateͷ ڥͭ͘ΕΔఔ
• Dockerɿ͖ • Rancherɿࠓճ͕͡Ίͯ
ࠓճͷϞνϕʔγϣϯ ʮLaravelΤϯδχΞͷϫΠ Rancher + EC2Ͱڥߏங͠ ͍ͨΜʯ
RancherͰ Kubernetes on AWS https://qiita.com/taishin/items/ 9fe614ec177ead919f97
લ్ଟ
Step1: AMI͔ΒRancher on RancerOSΛ બͯ͠ɺEC2ΠϯελϯεΛͨͪ͋͛Δ ←͜͜
Step1: Rancher on RancerOSΛબ ͯ͠ɺEC2ΠϯελϯεΛͨͪ͋͛Δ ͳ͍
None
ͱΓ͋͑ͣRancherOSΛબ ͯ͠ىಈ ΫϦοΫˠ
Step2: try.rancher.com
Step2: try.rancher.com ͠ɺ͠ΜͰΔɻɻɻ
ͻͱ·্ཱ͖ͣͬͪ͛ͨ͞ EC2ʹRancherͷ͚ͬΔ
Step3: ssh
Step3: ssh ec2-userͰϩάΠϯͰ ͖ͳ͍
None
↑ ͜͜
ssh͢Δͱ͖Ϣʔβ໊rancherͳ
Step3: ec2ʹsshͨ͋͠ͱɺ docker run -d --restart=always -p 8080:8080 rancher/server
Step4: ϗετΛొ ←ΫϦοΫ
Step4: ϗετΛొ CustomΛબΜͰը໘ͷखॱʹ ԊͬͯΧελϚΠζ
Step5: Χλϩάػೳͬͯ WordpressσϓϩΠ
Step5: Χλϩάػೳͬͯ WordpressσϓϩΠ
Step4: Rancher্Ͱ࡞ۀ
Step4: Rancher্Ͱ࡞ۀ
Step5: ʂ
ࠓޙͷ՝ • ຊ൪ڥͱผڥͰRancherΛىಈ͍ͨ͠ • ίϯςφΛεέʔϧΞτͯ͠Έ͍ͨ • Kubernetesͷษڧ • Rancher2.0Λ৮ͬͯΈΔ
ڭ͍͑ͯͩ͘͞ • ECSͱRancherͷॅΈ͚͕·ͩΑ͘Θ͔ͬͯ ͍ͳ͍ɻɻɻʢڝ߹ʁʣ
͓ੈʹͳͬͨهࣄ • AWSʹWEBΞϓϦͷ࠷খߏڥΛ࡞Δ (https://qiita.com/okoppe8/items/ dc1de147a36797442e4c) •