Suche senden
Hochladen
知識ないのにMAMPからdockerへ乗り換えようとしていろいろやった話
•
1 gefällt mir
•
2,668 views
K
Katsuya Yamamoto
Folgen
株式会社エニセンス(http://anysense.co.jp/) twitter(https://twitter.com/tyankatsu5)
Weniger lesen
Mehr lesen
Ingenieurwesen
Diashow-Anzeige
Melden
Teilen
Diashow-Anzeige
Melden
Teilen
1 von 20
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
Empfohlen
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
Introduction to C Programming Language
Introduction to C Programming Language
Simplilearn
Weitere ähnliche Inhalte
Empfohlen
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
Introduction to C Programming Language
Introduction to C Programming Language
Simplilearn
Empfohlen
(20)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Introduction to C Programming Language
Introduction to C Programming Language
知識ないのにMAMPからdockerへ乗り換えようとしていろいろやった話
1.
知識ないのに MAMP→dockerへ 乗り換えようと思って いろいろやった話
2.
⾃⼰紹介 名前:⼭本勝也(チャンカツ) 所属:株式会社エニセンス やってること:Webデザイナー (フロントエンドエンジニアになりたい) 苦⼿なもの:カレーライス、炭酸飲料 好きなもの:ほうれん草 twitter:@tyankatsu5
3.
今⽇話すこと 「最近よく聞くし、便利そうだし、オープンソースで無料だったら MAMPより効率化できるんじゃね??」って思って、 MAMPを使っていた⼈が今⽇のLTまでにdockerを⼀から勉強して、 どこまで効率化できたか発表します。
4.
※今⽇話さないこと※ MAMP PROとは⽐較しません →有料&⾼性能過ぎて太⼑打ちできない dockerについて詳しい内容は話しません →5分じゃ無理&知識あやふやなので危険 とても参考になった記事→プログラマのためのDocker超⼊⾨
5.
なんでdocker使おうと思った? ~きっかけ~ 運⽤のクライアントの⼤半がWPで、ローカル開発環境を作るのがとて もめんどうだった。 ⾃社サーバーにWP置いて、開発兼クライアント確認⽤環境を作って作 業していたが、限界を感じていた。 そんな時、弊社のエンジニアがdockerを導⼊しようといろいろやって いたのを⾒て、「なんか便利そう」って思った。
6.
なんでdocker使おうと思った? ~それから~ 本を読んで勉強して、ざっくりとした概念と⽤語とコマンドは分かるよ うになった。(地味にlinuxコマンドも覚えた)
7.
MAMPだとこうなる 1. 本番環境からWPの中⾝を中⾝をごっそり持ってくる 2. wp-config.phpの記述書き換え 3.
SQLファイルを本番からエクスポート(ダンプ)する 4. mampのphpのバージョンを本番環境のphpのバージョンと揃える 5. mamp起動 6. phpMyAdminでSQLファイルのインポート 7. DB内のURLをテスト環境のURLに書き換え
8.
ここ⾃動化したい 1. 本番環境からWPの中⾝を中⾝をごっそり持ってくる 2. wp-config.phpの記述書き換え 3.
SQLファイルを本番からエクスポート(ダンプ)する 4. mampのphpのバージョンを本番環境のphpのバージョンと揃える 5. mamp起動 6. phpMyAdminでSQLファイルのインポート 7. DB内のURLをテスト環境のURLに書き換え
9.
そこで!!
10.
こいつですよ!!!!
11.
⼀緒に戦ってくれたやつら • docker for
mac dockerはvirtual boxが必要だったけど、docker for mac,docker for windowsはそれが必要ない。要は必要なアプリ数が減ったというこ と • docker compose dockerは本来コマンドをつらつら書いて環境を構築していくが、yml ファイルで分かりやすく記述&管理しやすくできるもの。 • kitematic GUIでdockerが操作できるもの。コンテナとイメージの可視化が便利 • SequelPro DBを可視化するために使⽤
12.
やってみた!!! docker-compose up -d
13.
やってみた過程省略!!!
14.
結果!!!!
15.
実現したこと • wordpressのバージョン、phpのバージョン、mySQLのバージョン、プ ラグインのバージョンを指定するだけで、⾃動で環境が構築されるよう になった。 • 複数の作業環境(コンテナ)が独⽴して動いているので、mampのよう に複数の作業環境で1種類のphpのバージョンしか動かせないとかなく なった。 •
構築した環境を使いまわせる(イメージ)ので、ぶっ壊し放題! • イメージ(とymlファイル)を共有しちゃえば同じ環境をだれとでも共 有可能。 • イメージにwpファイルをぶっこめるので、ローカルにwpファイル⼀式 持たなくて済む!
16.
できてないこと • SQLファイルの⾃動インポート よくわからないけどトップページが⾒れなくなる (localhost:xxxx/)。gulpでプロキシ設定すれば⼀応⾒れる。 SequelProでインポートしても成功する(phpMyAdmin使うのと同 じな気がするので無し)。
17.
思ったこと
18.
MAMPめっちゃ便利!!
19.
docker勉強コスト⾼すぎ!!!
20.
- fin -
Jetzt herunterladen