Submit Search
Upload
Pasonatech docker hands on
•
Download as PPTX, PDF
•
0 likes
•
119 views
S
ssuser3a4b8c
Follow
なにわTECH道イベント『Dockerやるよ!開発環境構築までハンズオン!』で使用した資料です。
Read less
Read more
Technology
Report
Report
1 of 36
Download now
Recommended
Reiwa1years
Reiwa1years
ssuser3a4b8c
Pasonatech docker hands on
Pasonatech docker hands on
ssuser3a4b8c
Shirai
Shirai
ssuser3a4b8c
C base design methodology with s dx and xilinx ml
C base design methodology with s dx and xilinx ml
ssuser3a4b8c
Soft neuro
Soft neuro
ssuser3a4b8c
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
Recommended
Reiwa1years
Reiwa1years
ssuser3a4b8c
Pasonatech docker hands on
Pasonatech docker hands on
ssuser3a4b8c
Shirai
Shirai
ssuser3a4b8c
C base design methodology with s dx and xilinx ml
C base design methodology with s dx and xilinx ml
ssuser3a4b8c
Soft neuro
Soft neuro
ssuser3a4b8c
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
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
Yuki Kikuchi
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
sugiuralab
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
博三 太田
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
UEHARA, Tetsutaro
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
Hiroshi Tomioka
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
FumieNakayama
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
FumieNakayama
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
akihisamiyanaga1
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
More Related Content
Recently uploaded
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
Yuki Kikuchi
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
sugiuralab
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
博三 太田
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
UEHARA, Tetsutaro
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
Hiroshi Tomioka
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
FumieNakayama
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
FumieNakayama
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
akihisamiyanaga1
Recently uploaded
(8)
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
Featured
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
Featured
(20)
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
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
Pasonatech docker hands on
1.
事前のお願 い事項 dockerがインストールされている VSCodeがインストールされている 事前共有ファイルがダウンロードされている (直前ですみません) Tokenをどこかにメモしてください。 (準備不足ですみません) 7bc149733170fc63d620f25558a0 af678eb3b426
2.
Docker(開発環境構築) 石田雄亮
3.
agenda ・はじめに ・自己紹介 ・目的とゴール ・事前に頂いた質問おさらい ・Dockerの概要(コンテナ型VMとは、データ永続化) ・やることの概要 ・事前情報 ・環境構築してみる ・docker-composeとは ・イメージのインポート ・docker-composeでコンテナの一斉立ち上げ ・gitでソースのclone ・ソースのザックり説明 ・実行してみる 〜環境構築完了〜 〜開発編〜 ・ちょっと修正してみる
4.
はじめに • 今回のイベントでの資料・発言は、所属企業(日本IBMサービス株式会 社)代表としてのものでは決してありません。 • 私個人の見解を述べるものでありますので、その点よろしくお願いいたし ます。 •
Ishida Alright received です。 • 初めての講習の為、不手際もあるかと思いますが、ご了承ください。
5.
agenda ・はじめに ・自己紹介 ・目的とゴール ・事前に頂いた質問おさらい ・Dockerの概要(コンテナ型VMとは、データ永続化) ・やることの概要 ・事前情報 ・環境構築してみる ・docker-composeとは ・イメージのインポート ・docker-composeでコンテナの一斉立ち上げ ・gitでソースのclone ・ソースのザックり説明 ・実行してみる 〜環境構築完了〜 〜開発編〜 ・ちょっと修正してみる
6.
今回の目的 とゴール 目的 dockerを使用することで、開発環境構築 が簡単にできる事を体感して頂く ゴール あらかじめ用意された手順で、 開発環境が整う
7.
頂いた質問 (一部編集) windowsやlinuxでの注意点 開発環境で動かしたアプリをどのように本番環境 (クラウド)へ持っていくのかを解説してほしい。 コンテナ間の通信について dockerを要素として使っているフレームワークを 使用するときのいろんなTIPS 1からコンテナの活用までわかるとありがたいです
8.
agenda ・はじめに ・自己紹介 ・目的とゴール ・事前に頂いた質問おさらい ・Dockerの概要(コンテナ型VMとは、データ永続化) ・やることの概要 ・事前情報 ・環境構築してみる ・docker-composeとは ・イメージのインポート ・docker-composeでコンテナの一斉立ち上げ ・gitでソースのclone ・ソースのザックり説明 ・実行してみる 〜環境構築完了〜 〜開発編〜 ・ちょっと修正してみる
9.
Docker概要 • OS仮想化の技術 • ホストOS上で動かすコンテナ •
イメージをもとにコンテナを作 成する • ホストOSのカーネルをコンテナ と共有することで、コンテナが 軽量に • イメージ→コンテナ→編集→イ メージが可能なので、独自の変 更をアーカイブできる ※公式サイトより図抜粋 https://www.docker.com
10.
イメージとコンテナの関係 イメージ コンテナ イメージ CentOS
CentOS ライブラリ等 CentOS ライブラリ等 コンテナ CentOS ライブラリ等 データとか イメージ CentOS ライブラリ等 データとか • イメージ:DVDのような書き込み不可メディアみたいなもの • コンテナ:PC上に展開され、書き込み可能になった状態みたいなもの コンテナ化 コンテナ化イメージ化 この状態のものをお配りします イメージ化
11.
おさらい HyperVisor型の仮想化技術よ り軽い イメージとコンテナというも の(関係)がある 作った環境(イメージ)を配 布しやすい
12.
使ってみての Dockerの メリット所感 • ネットでたくさん出てくるので、私 の経験から… • 環境構築や移行、撤去が格段に楽に •
今回の題材。 • 環境依存の問題を取り除ける • Win(7一部除く)/Mac/Linuxな ど動作端末を気にせず開発環境 が作れる • 環境を戻せる(ロールバック) • gitのrevertみたいなもの
13.
agenda ・はじめに ・自己紹介 ・目的とゴール ・事前に頂いた質問おさらい ・Dockerの概要(コンテナ型VMとは、データ永続化) ・やることの概要 ・事前情報 ・環境構築してみる ・docker-composeとは ・イメージのインポート ・docker-composeでコンテナの一斉立ち上げ ・gitでソースのclone ・ソースのザックり説明 ・実行してみる 〜環境構築完了〜 〜開発編〜 ・ちょっと修正してみる
14.
今回やること • 環境構築してから、DBの商品と価格を表示(json)するWEBサービスを 作ろう • 前提 •
あなたは「途中から開発に参加するエンジニア」です。 • なのでプログラム自体は作ってあります。 • まずは一度通して実践し、のちにスクリプトの中身を説明します
15.
仕組み • SPA(Single Page
Application)を意識 • WebサーバーとDBの最小構成 • (アプリの開発環境+DB+DBのストレージ)の構成 • すでにデータ入りのイメージを使用 • コンテナ間通信と、HostOSのポート共有を併用 • DBのイメージにデータを内包するのではなく、データのみ別 コンテナで管理(絵で説明します)
16.
アーキテクチャ HW OS Docker pt_db_storagept_dbpt_app ディレクトリの共有 docker network で通信 クライアント httpで通信 OSのポート5000番を共有 ポート5000番
17.
アーキテクチャ HW OS Docker pt_db_storagept_dbpt_app ディレクトリの共有 docker network で通信 クライアント httpで通信 OSのポート5000番を共有 ポート5000番 ※赤丸はのちにdocker-composeで説明します
18.
agenda ・はじめに ・自己紹介 ・目的とゴール ・事前に頂いた質問おさらい ・Dockerの概要(コンテナ型VMとは、データ永続化) ・やることの概要 ・事前情報 ・環境構築してみる ・docker-composeとは ・イメージのインポート ・docker-composeでコンテナの一斉立ち上げ ・gitでソースのclone ・ソースのザックり説明 ・実行してみる 〜環境構築完了〜 〜開発編〜 ・ちょっと修正してみる
19.
事前情報 作業ディレクトリ ~/pt/ (ホームディレクトリにpt ディレクトリを作成してくだ さい) 使うコマンド power pointを参照ください ディレクトリ・ファイ ル構成
20.
agenda ・はじめに ・自己紹介 ・目的とゴール ・事前に頂いた質問おさらい ・Dockerの概要(コンテナ型VMとは、データ永続化) ・やることの概要 ・事前情報 ・環境構築してみる ・イメージのインポート ・docker-composeとは ・docker-composeでコンテナの一斉立ち上げ ・gitでソースのclone ・ソースのザックり説明 ・実行してみる 〜環境構築完了〜 〜開発編〜 ・ちょっと修正してみる
21.
手順 環境構築編 事前に必要なライブラリやテーブル、テストデータを入れたイメー ジを用意(今回はやってあります) イメージを開発マシンにインポート docker-composeを使って一気に環境構築 実践編 VSCodeのRemotoを用いてGitからソースをゲット IDEを用いてソース編集 Gitにあげる 撤去編
ファイル消す
22.
事前に必要なライブラリやテーブル、テストデータを入れたイメージを用意 • 今回事前に用意した内容はこんな感じです • Linuxイメージ •
CentOS • Python3.8 • pip • Mysqlドライバ • Flask(webサーバー) • git • MySqlイメージ • MySql本体 • ストレージイメージ • MySql用テーブル • テストデータ
23.
イメージを 開発マシンに インポート • Power shellを開く •
$ cd ~/pt/lesson/images/ • $ docker laod -i pt_app.tar • $ docker laod –i pt_db.tar • $ docker laod –i pt_db_storage.tar
24.
docker-composeとは • 複数コンテナで構成されるシステムを簡単に管理できる
25.
docker- composeを 使って一気に 環境構築 • PowerShellで • $
cd ~/pt/lesson docker-compose up –d と入力 • docker ps と入力してコンテナが立ち上 がっていることを確認
26.
手順 環境構築編 事前に必要なライブラリやテーブル、テストデータを入れたイメー ジを用意(今回はやってあります) イメージを開発マシンにインポート docker-composeを使って一気に環境構築 実践編 VSCodeのRemotoを用いてGitからソースをゲット IDEを用いてソース編集 Gitにあげる 撤去編
ファイル消す
27.
VSCodeで開発する • 開発用のコンテナにアクセスする • market
place から 「Remote - Container」をインストール
28.
IDEを用いて ソース編集 • VSCodeを開く • コンテナをアタッチ •
フォルダを追加 • 編集 • テスト
29.
gitでソース のclone • userXXのXXは任意の番号 • VSCodeのRemoteのterminalで •
$ cd ~/pt/lesson/app/ • $ git clone https://USER:7bc149733170fc63d620f25558a0af6 78eb3b426@github.com/yusuke-git/pasona • $ cd pasona • $ git config --local user.name userXX • $ git config --local user.email userXX@mail.com • $ git branch userXX • $ git checkout userXX
30.
ソースの簡易説明 • VSCodeにて説明
31.
実行してみる • 実演
32.
Gitにあげる • $
git add • git commit -m “hogehoge” • $git push
33.
〜応用編〜本番環境への展開 • オンプレサーバーや仮想サーバーへの展開 • クラウドサービスへの展開
34.
〜応用編〜本番環境への展開 • オンプレサーバーや仮想サーバーへの展開 • サーバーにOSとDockerをインストール •
デプロイしたいコンテナをイメージ化し、サーバーに転送 • コンテナ化 Cloudやオンプレサーバー OS Docker
35.
〜応用編〜本番環境への展開 CloudやHardware OS Docker pt_db_storagept_dbpt_app ディレクトリの共有 docker network で通信 OSのポート5000番を共有 ポート5000番 • オンプレサーバーや仮想サーバーへの展開 •
サーバーにOSとDockerをインストール • デプロイしたいコンテナをイメージ化し、サーバーに転送 • コンテナ化
36.
〜応用編〜本番環境への展開 ECS pt_db_storagept_dbpt_app ディレクトリの共有 docker network で通信 ポート5000番 • クラウドサービスへの展開 •
イメージをECRに登録 • ECSでコンテナ化 ECS ECS ECR pt_appのイメージ pt_dbのイメージ pt_db_storage のイメージ ECS
Download now