Files
ironic-python-agent-builder/dib/build.sh
Nisha Brahmankar b29326a499 Copies the "ironic-agent" element from DIB
Copies "ironic-agent" element from DIB and addition
of a new bash script to build the image using DIB.

Change-Id: If392f793ed1b5d902b541fe89299648fae16e427
Task: 30072
Story: 2005114
2019-08-01 23:23:37 +05:30

11 lines
407 B
Bash
Executable File

#!/bin/bash
#The path for location of ironic-python-agent-ramdisk in ironic-python-image-builder
#is set using environment variable.
export ELEMENTS_PATH=${ELEMENTS_PATH:-`.`}
#The command to build image using disk-image-builder.
#Run the command to build the image giving the argument(OS name)
#For example: ./build.sh ubuntu
disk-image-create -o ironic-python-agent.qcow ironic-python-agent-ramdisk $@