diff options
author | davidjchou <david.j.chou@intel.com> | 2016-06-14 08:04:29 -0700 |
---|---|---|
committer | davidjchou <david.j.chou@intel.com> | 2016-06-20 10:43:56 -0700 |
commit | c715b6029fd5b4eaf323f5efde4ec5db5ba0a9b4 (patch) | |
tree | 65c983f09e458ad199d8ff5bff3233e3110b9cb4 /fuel-plugin/pre_build_hook | |
parent | d746fed82003b740680434c09655d7d5e7108994 (diff) |
Rebase fuel-plugin for kvmfornfv to fuel 9.0
1. Uplifit fuel-plugin for kvmfornfv to fuel 9.0 due to that fuel 9.0 will be the
deployment tool of OPNFV Colorado release.
2. Fixed quirk for kernel.
3. Added all tools and libs for building OVS module.
4. Allow KVM developer to build fuel-plugin-kvm after they modify the kerenl
code without commiting their change into the repo first. So, they can test
their code change by fuel-plugin-kvm till they satisfy with their change,
then commit to the repo.
5. The final code built into OPNFV fuel iso will depend on the commit ID for
kvmfornfv speicifed in fuel for OPNFV source tree.
Change-Id: Iaf9ff49c69df374d0757884cfdac4cccee3eebe4
Signed-off-by: davidjchou <david.j.chou@intel.com>
Diffstat (limited to 'fuel-plugin/pre_build_hook')
-rwxr-xr-x | fuel-plugin/pre_build_hook | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fuel-plugin/pre_build_hook b/fuel-plugin/pre_build_hook index 0dfc36cbc..a3c883283 100755 --- a/fuel-plugin/pre_build_hook +++ b/fuel-plugin/pre_build_hook @@ -8,10 +8,14 @@ DIR="$(dirname `readlink -f $0`)" function build_pkg { case $1 in ubuntu) + rm -rf repositories/ubuntu; mkdir -p repositories/ubuntu sudo docker build -t kvm . - container_id=`sudo docker run -d kvm` - sudo docker cp $container_id:/linux-headers-4.4.6-rt14nfv_1.0.OPNFV_amd64.deb ${DIR}/repositories/ubuntu/ - sudo docker cp $container_id:/linux-image-4.4.6-rt14nfv_1.0.OPNFV_amd64.deb ${DIR}/repositories/ubuntu/ + + # run /kvmfornfv/fuel-plugin/build_kvm.sh in docker + sudo docker run -v ${DIR}/..:/kvmfornfv -t kvm /kvmfornfv/fuel-plugin/build_kvm.sh + # debug in console by the following command + # sudo docker run -v /kvmfornfv:/kvmfornfv -ti kvm /bin/bash + cp ${DIR}/../*.deb repositories/ubuntu ;; *) echo "Not supported system"; exit 1;; esac |