tacker/tools/vnfc/build_image.sh
caoyuan 1ebb081e8f Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I6c273be62735d46221130a1da4d3672fdea77e01
2019-04-26 18:07:57 +08:00

27 lines
678 B
Bash
Executable File

#!/bin/bash
VNFC_IMAGE=/tmp/tacker_vnfc_images
rm -rf $VNFC_IMAGE
mkdir $VNFC_IMAGE
pip install diskimage-builder
pip install dib-utils
CURRENT_DIR=`pwd`
cd $VNFC_IMAGE
git clone https://opendev.org/openstack/tripleo-image-elements.git
git clone https://opendev.org/openstack/heat-templates.git
export ELEMENTS_PATH=tripleo-image-elements/elements:heat-templates/hot/software-config/elements
disk-image-create vm \
fedora selinux-permissive \
os-collect-config \
os-refresh-config \
os-apply-config \
heat-config \
heat-config-ansible \
heat-config-cfn-init \
heat-config-puppet \
heat-config-salt \
heat-config-script \
-o fedora-software-config.qcow2