2017-03-21 23:01:58 +01:00
|
|
|
---
|
2017-03-22 18:31:44 +01:00
|
|
|
layout: "packer"
|
|
|
|
page_title: "Installing Software with Packer"
|
|
|
|
sidebar_current: "docs-enterprise-packer-builds-installing"
|
|
|
|
description: |-
|
|
|
|
Installing software with Packer.
|
2017-03-21 23:01:58 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
# Installing Software
|
|
|
|
|
2017-03-23 19:03:36 +01:00
|
|
|
Please review the [Packer Build Environment](/docs/enterprise/packer/builds/build-environment.html)
|
2017-03-21 23:01:58 +01:00
|
|
|
specification for important information on isolation, security, and hardware
|
|
|
|
limitations before continuing.
|
|
|
|
|
|
|
|
In some cases, it may be necessary to install custom software to build your
|
|
|
|
artifact using Packer. The easiest way to install software on the Packer builder
|
|
|
|
is via the `shell-local` provisioner. This will execute commands on the host
|
|
|
|
machine running Packer.
|
|
|
|
|
|
|
|
{
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell-local",
|
|
|
|
"command": "sudo apt-get install -y customsoftware"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
Please note that nothing is persisted between Packer builds, so you will need
|
|
|
|
to install custom software on each run.
|
|
|
|
|
|
|
|
The Packer builders run the latest version of Ubuntu LTS.
|