Some steps to do to release a new version of kubevmm.
-
(First time only) Install dependencies (rhel7):
sudo yum install epel-release -y sudo yum install virt-manager python2-devel python2-pip libvirt-devel gcc gcc-c++ glib-devel glibc-devel libvirt virt-install -y sudo pip install --upgrade pip sudo pip install kubernetes libvirt-python xmljson xmltodict watchdog pyyaml pyinstaller
-
Check out this repo. Seriously - check it out. Nice.
cd $HOME git clone <this_repo_url>
- Release a new version and push new images to aliyun repository.
bash $HOME/kubevmm/executor/release-version.sh <new version>
-
Install
rpmdevtools
.sudo yum install rpmdevtools
-
Install
pyinstaller
.sudo pip install pyinstaller
-
Set up your
rpmbuild
directory tree.rpmdev-setuptree
-
Execute
pyinstaller
to buildSOURCES
.cd $HOME/kubevmm/executor pyinstaller -F kubevmm_adm.py -n kubevmm-adm pyinstaller -F vmm.py
-
Link the spec file and sources.
ln -s $HOME/kubevmm/executor/SPECS/kubevmm.spec $HOME/rpmbuild/SPECS/ find $HOME/kubevmm/executor/dist -type f -exec ln -s {} $HOME/rpmbuild/SOURCES/ \;
-
Build the RPM.
rpmbuild -ba $HOME/rpmbuild/SPECS/kubevmm.spec
The version number is hardcoded into the SPEC, however should you so choose, it can be set explicitly by passing an argument to
rpmbuild
directly:rpmbuild -ba $HOME/rpmbuild/SPECS/kubevmm.spec --define "_version v0.9.0"
RPMs:
- kubevmm
Some steps to do to install and run kubevmm services.
-
Install
kubevmm
rpm.rpm -Uvh --force <kubevmm-version.rpm>
-
Verify
kubevmm
rpm.There are two commands:
kubevmm-adm
andvmm
kubevmm-adm --version vmm
- Run services.
kubevmm-adm service update --online
- Check services status.
kubevmm-adm service status