commit | c0aba192aa47f909e18ca973f2723bb5ac3d8f69 | [log] [tgz] |
---|---|---|
author | Denis Egorenko <degorenko@mirantis.com> | Wed Jan 23 18:03:53 2019 +0400 |
committer | Denis Egorenko <degorenko@mirantis.com> | Fri Jan 25 13:07:43 2019 +0400 |
tree | 6fc1a34caa184ec735568ee641901b0ac97a92ee | |
parent | ebe18919fcea4da7eab0f022acb04a390a23d533 [diff] |
Update build-image-mirror pipeline * add ability to save image to few backends in the same time; * update working with OS env; Change-Id: Ic42d1a33712db1b6d566073bb1368d5580df29c3 Related-Prod: PROD-26605 (PROD:26605)
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.