Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash -ex
- projdir=custom-neutron-vpnaas
- srcdir=neutron-vpnaas
- rm -rf $projdir
- mkdir -p $projdir
- cd $projdir
- git clone https://opendev.org/openstack/neutron-vpnaas.git
- cd $srcdir
- git fetch https://review.opendev.org/openstack/neutron-vpnaas refs/changes/53/765353/32 && git checkout FETCH_HEAD
- git mv neutron_vpnaas/db/migration/alembic_migrations/versions/2023.2 neutron_vpnaas/db/migration/alembic_migrations/versions/2023.1
- git commit -m mv
- python3 setup.py sdist
- projarchive=`ls $PWD/dist/neutron-vpnaas-*.tar.gz`
- cd ../..
- #python3 -m venv $projdir/venv
- . $projdir/venv/bin/activate
- #python3 -m pip install kolla
- cat > $projdir/kolla-build.conf <<EOF
- [neutron-vpnaas-agent]
- type = local
- location = $projarchive
- [neutron-base-plugin-vpnaas-agent]
- type = local
- location = $projarchive
- EOF
- kolla-build -b ubuntu --openstack-release 2023.1 --tag `date +%Y%m%d%H%M` --config-file $projdir/kolla-build.conf neutron-server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement