Skip to Content
実践 Vagrant
book

実践 Vagrant

by Mitchell Hashimoto, Sky株式会社 玉川 竜司
February 2014
Intermediate to advanced
248 pages
4h 23m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 Vagrant
48
3 章 Vagrant 仮想マシンのプロビジョニング
プロビジョナを追加することもできます。
本章では、
Apache
をセットアップして、静的なファイルを
Vagrant
の共有フォ
ルダから配信できるようにします。前章では、同じことを実現するのに、
Python
SimpleHTTPServer
モジュールを手動で実行しました。今度は、手動でコマンドを
実行しなければならないのではなく、
Apache
が自動的に起動され、共有フォルダの
ファイルを提供してくれるように設定しましょう。こうすれば、この基本的な例にお
ける開発者は、ゲストマシンに
SSH
する必要すらなく、完全にホストの環境内だけ
で作業できるようになります。
サンプルとして
Apache
のインストールをしてみれば、
Vagrant
のプロビジョニン
グを推し進め、たとえば完全な
LAMP
スタックのように、もっと複雑なものも提供
できるようになるでしょう。
3.1
 自動プロビジョニングを行う理由
自動プロビジョニングは、主に
3
つのメリットを提供します。それは、利用の容
易さ、再現性、開発環境と実働環境の同一性の向上です。
今日では、あまりに多くの開発者が、手動でサーバーをセットアップし、オンライ
ンのガイドから、新しく立てたサーバーのターミナルのプロンプトへ設定を切り貼り
しています。
この方法の問題は、新しいサーバーをセットアップしなければならないときに発覚
します。同じサーバーをもう
1
つ立てようとする場合、同じガイドを追っていかな
ければなりません。実際には、サーバーはわずかに異なったものになり、その違いが ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Vagrant: Up and Running

Vagrant: Up and Running

Mitchell Hashimoto
実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

Sowmya Vajjala, Bodhisattwa Majumder, Anuj Gupta, Harshit Surana, 中山 光樹
実践 CSIRTプレイブック ―セキュリティ監視とインシデント対応の基本計画

実践 CSIRTプレイブック ―セキュリティ監視とインシデント対応の基本計画

Jeff Bollinger, Brandon Enright, Matthew Valites, 飯島 卓也, 小川 梢, 柴田 亮, 山田 正浩, 谷崎 朋子

Publisher Resources

ISBN: 9784873116655Other