commit | 1726e80c8ab2d35b0714767255d3b21c1944f436 | [log] [tgz] |
---|---|---|
author | azvyagintsev <azvyagintsev@mirantis.com> | Fri Jun 15 16:55:44 2018 +0300 |
committer | azvyagintsev <azvyagintsev@mirantis.com> | Fri Jun 15 17:02:04 2018 +0300 |
tree | 8d90536a7d56e928ed3d76e0f63016eac8994d9a | |
parent | 0adfe685dc6a5ff3b594b4b5a69d08814d0fca5c [diff] |
Enable zerofree script * Warning: - mirror-image - it will require ~120Gb - day01 - it will require ~55Gb - ubuntu-16.04 - it will require ~10Gb from backend build system. * Those option decrease size, but significantly increases build time Change-Id: Ib7ac5b0c4297e75c79d7d514a07b07104959145d
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.