commit | c46e7c0065fa5b240f96ad01d24fe4001de923ab | [log] [tgz] |
---|---|---|
author | Ivan Berezovskiy <iberezovskiy@mirantis.com> | Mon Oct 29 18:22:09 2018 +0400 |
committer | Ivan Berezovskiy <iberezovskiy@mirantis.com> | Tue Nov 06 15:59:28 2018 +0400 |
tree | a4cab32f515ea4b74294a6c7ef2e3557a55b106e | |
parent | 9e0e68b8582aa3df64c15f1c0dea96442ade132c [diff] |
Add templates to build TryMCP image Author: Pavel Cizinsky, pcizinsky@mirantis.com Change-Id: I35a667c667a1b68f178e5a7b4201400827a17235
Packer templates are used to:
PACKER_URL="https://dl.bintray.com/mitchellh/packer/packer_0.8.2_linux_amd64.zip" PACKER_ZIP=$(basename ${PACKER_URL}) PACKER_ZIP_MD5="bc37abe5e183a11bd8c1b2efc385059b" mkdir -p ~/bin/packer cd ~/bin/packer export PATH="${PATH}:~/bin/packer" wget -O ${PACKER_ZIP} ${PACKER_URL} echo "${PACKER_ZIP_MD5} ${PACKER_ZIP}" >> md5sum md5sum -c --status md5sum unzip ${PACKER_ZIP}
Enter build directory by selecting OS type and version. You should see file template.json.
Start building some images:
packer build -only=virtualbox-iso template.json
Directory http/ contains OS installer config files (preseed/kickstart/..)
Directory scripts/ contains set of scripts for provision after image build.