525e4cdd51
This patch makes it possible to build the Virtualbox-compatible OVA archive withouth using vagrant, virtualbox, or vmware-specific tools. Currently the created ova archive can be imported on VirtualBox and VMWare Player, the disk image itself can be used with libvirt (qemu-kvm). It contains all the drivers that enables using it as a desktop system with shared clipboard, auto-resizing display, etc. Since the diskimage-builder method installs in chroot, there is no way to pre-install devstack by running stack.sh. The image makes a best effort including all the deb and pip packages to make the first run of stack.sh as short as possible. Change-Id: Ie1f6e44db7e0af8d072cfdf16ace1ba3f749c246
30 lines
714 B
Bash
30 lines
714 B
Bash
#!/usr/bin/env bash
|
|
|
|
apt-mark showmanual > aptmark_showmanual.orig.txt
|
|
sudo -H pip freeze > pipfreeze.orig.txt
|
|
|
|
/opt/devstack/stack.sh
|
|
|
|
|
|
apt-mark showmanual > aptmark_showmanual.after.txt
|
|
sudo -H pip freeze > pipfreeze.after.txt
|
|
|
|
# Generate packages.yaml
|
|
comm -13 aptmark_showmanual.{orig,after}.txt | sed 's/$/:/' > packages.yaml
|
|
|
|
# Generate requirements.txt
|
|
comm -13 pipfreeze.{orig,after}.txt \
|
|
| grep -v 'git+http' \
|
|
> requirements.txt
|
|
|
|
# Generate openstack_git_repos.txt
|
|
pushd /opt/stack
|
|
find . -mindepth 1 -maxdepth 1 -type d | while read -r repo; do
|
|
pushd "$repo"
|
|
git remote show origin -n \
|
|
| awk '/Fetch URL/{ print $3 }' \
|
|
>> ../openstack_git_repos.txt
|
|
popd
|
|
done
|
|
popd
|