-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_nightly_box.sh
executable file
·11 lines (11 loc) · 1.19 KB
/
build_nightly_box.sh
1
2
3
4
5
6
7
8
9
10
11
PACKER_FILE=cloudify-packer.json
cp ${PACKER_FILE}{,.bak}
sed -i "s|{{ components_package_url }}|http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.0.0/nightly_6/cloudify-components_3.0.0-ga-b6_amd64.deb|g" ${PACKER_FILE}
sed -i "s|{{ core_package_url }}|http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.0.0/nightly_6/cloudify-core_3.0.0-ga-b6_amd64.deb|g" ${PACKER_FILE}
sed -i "s|{{ ui_package_url }}|http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.0.0/nightly_6/cloudify-ui_3.0.0-ga-b6_amd64.deb|g" ${PACKER_FILE}
sed -i "s|{{ ubuntu_agent_url }}|http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.0.0/nightly_6/cloudify-ubuntu-agent_3.0.0-ga-b6_amd64.deb|g" ${PACKER_FILE}
sed -i "s|{{ centos_agent_url }}|http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.0.0/nightly_6/cloudify-centos-agent_3.0.0-ga-b6_amd64.deb|g" ${PACKER_FILE}
sed -i "s|{{ windows_agent_url }}|http://gigaspaces-repository-eu.s3.amazonaws.com/org/cloudify3/3.0.0/nightly_6/cloudify-windows-agent_3.0.0-ga-b6_amd64.deb|g" ${PACKER_FILE}
sed -i "s|{{ release }}|3.0.0|g" ${PACKER_FILE}
packer build -only=virtualbox-ovf -force ${PACKER_FILE}
mv ${PACKER_FILE}{.bak,}