diff options
author | Dan Radez <dradez@redhat.com> | 2016-04-15 12:11:43 -0400 |
---|---|---|
committer | Dan Radez <dradez@redhat.com> | 2016-04-20 19:07:29 +0000 |
commit | 5f6676a3e408e45aed62947b35106a40a5a93626 (patch) | |
tree | d8d1b29ef7fbb8169291deaffbda24c12009eacd /build/overcloud-onos.sh | |
parent | a412ab4c4a4835bb4a9f4bf0f2ef8c7e965f1aaf (diff) |
updating ONOS build
- the ONOS build required the stable-images dir
- also removing other stable-images references
Change-Id: Ib51e4278ac80d7900064469f6d3c3a3532296270
Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'build/overcloud-onos.sh')
-rwxr-xr-x | build/overcloud-onos.sh | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/build/overcloud-onos.sh b/build/overcloud-onos.sh index 88f0b166..070365d7 100755 --- a/build/overcloud-onos.sh +++ b/build/overcloud-onos.sh @@ -18,23 +18,22 @@ cp -f overcloud-full.qcow2 overcloud-full-onos_build.qcow2 ##### Adding ONOS to overcloud ##### ####################################### -# upload the onos puppet module +# get the onos files rm -rf puppet-onos git clone https://github.com/bobzhouHW/puppet-onos.git -pushd puppet-onos > /dev/null +populate_cache "$onos_release_uri/$onos_release_file" # download jdk, onos and maven dependancy packages. -pushd files -for i in jdk-8u51-linux-x64.tar.gz onos-1.3.0.tar.gz repository.tar; do - populate_cache ${onos_artifacts_uri}/$i - get_cached_file $i -done -popd > /dev/null +#for i in jdk-8u51-linux-x64.tar.gz onos-1.3.0.tar.gz repository.tar; do -popd > /dev/null tar --xform="s:puppet-onos/:onos/:" -czf puppet-onos.tar.gz puppet-onos -LIBGUESTFS_BACKEND=direct virt-customize --upload puppet-onos.tar.gz:/etc/puppet/modules/ \ - --run-command "cd /etc/puppet/modules/ && tar xzf puppet-onos.tar.gz" -a overcloud-full-onos_build.qcow2 +LIBGUESTFS_BACKEND=direct virt-customize --install "java-1.8.0-openjdk" \ + --upload puppet-onos.tar.gz:/etc/puppet/modules/ \ + --run-command "cd /etc/puppet/modules/ && tar xzf puppet-onos.tar.gz" \ + --upload $CACHE_DIR/$onos_release_file:/opt \ + --run-command "cd /opt && tar xzf $onos_release_file" \ + -a overcloud-full-onos_build.qcow2 + mv overcloud-full-onos_build.qcow2 overcloud-full-onos.qcow2 popd > /dev/null |