Skip to Content
持續交付|使用Java
book

持續交付|使用Java

by Daniel Bryant, Abraham Marín-Pérez
July 2019
Intermediate to advanced
480 pages
9h 35m
Chinese
GoTop Information, Inc.
Content preview from 持續交付|使用Java
包裝 app 來部署 |
145
Packer 為多雲端建立機器映像
Packer
https://www.packer.io/
)是 HashiCorp 提供的開放原始碼工具,可以用單一來源
組態為多個平台建立完全相同的機器映像。Packer 的體積小、使用命令列,可在每一種
主流作業系統上運行,而且性能優異,可以平行地為多個平台建立機器映像。Packer
以使用 shell 腳本或 AnsibleChefPuppet 等組態管理工具來提供映像。Packer 將機器
映像定義成單一靜態單元,裡面有預先設置的作業系統,以及安裝好的軟體,可用來快
速建立新的運行機器。機器映像會幫每一個平台格式化變動,例子包括 EC2 AMI
VMware VMDK/VMX 檔案,以及 VirtualBox OVF 匯出。
Packer 保持開發 / 生產的一致
Packer 可讓開發、預備與生產環境盡量相似,這絕對是一件好事,可讓你更相
信在開發與預備環境執行的測試,足以傳達在生產環境中的行為。
Packer 有一種實用的功能:它可以同時為多個平台產生映像。所以如果你在生
產環境使用 AWS,在開發環境使用 VirtualBox(或許還有 Vagrant),可以用
Packer 以同一個模板生成 AMI VBox 機器。如果你在持續交付管道中使用
它,就有一個優秀的系統,從開發到生產都有一致的工作環境。
你可以用多數的作業系統安裝程式來安裝 Packer,或參考 Install Packer ...
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

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
精通機器學習|使用Python

精通機器學習|使用Python

Sarah Guido, Andreas C. Mueller
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9789865021740