【安裝軟體環境】
依照 William Yeh 的說明 在 Windows 上安裝 Vagrant 軟體。
安裝過程沒遇到什麼問題,20 分鐘順利完成。
- VirtualBox
- Vagrant_1.9.1
- Git-2.11.0-64-bit ( 含有純命令列的 ssh 程式 )
還另外裝了 Cmder ( 具有 Linux 溫度的 Windows 命令提示字元工具 )。
【使用 Vagrant 下載 FOLIO Demo System】
依照 wayne 的 說明 順利完成,比想像的簡單很多,
輸入兩行指令,等下載完成就好了 ( 948 MB )。
- 開啟命令提示字元
- 建立一個工作目錄:mkdir foliodemo
- 進入這個工作目錄:cd foliodemo
- 輸入指令讓 Vagrant 下載設定檔:vagrant init folio/folio-demo
D:\_trialSystem $ mkdir foliodemo D:\_trialSystem $ cd foliodemo D:\_trialSystem\foliodemo $ vagrant init folio/folio-demo A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. D:\_trialSystem\foliodemo $ _
- 輸入指令讓 Vagrant 下載 folio-demo 並啟動:vagrant up
D:\_trialSystem\foliodemo $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'folio/folio-demo'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'folio/folio-demo' is up to date... ==> default: Setting the name of the VM: foliodemo_default_1483069470975_32274 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 9130 (guest) => 9130 (host) (adapter 1) default: 3000 (guest) => 3000 (host) (adapter 1) default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: No guest additions were detected on the base box for this VM! Guest default: additions are required for forwarded ports, shared folders, host only default: networking, and more. If SSH fails on this machine, please install default: the guest additions and repackage the box to continue. default: default: This is not an error message; everything may continue to work properly, default: in which case you may ignore this message. D:\_trialSystem\foliodemo $ _
- 在 VirtualBox 就可以看到 foliodemo 這台機器了。