JviBuilder will help you create debian packages from tar.gz source files.
This app was created to be used with Jenkins (https://jenkins-ci.org/) so, for that reason it takes a tar.gz source file from a specified URL. At the moment it does not support creating packages from local files.
You need the following packages:
$ apt-get install python-pip dh-make fakeroot mongodb git
$ pip install daemon-runner pymongo PyYAML
$ git clone https://github.com/juanviola/jvi-builder.git
After installing, You'll need to start the jvibuilder daemon. So, enter to the jvi-builder directory and run the following.
$ ./jvibuilder.py start
You can check the logs in the jvi-builder/log directory to see if everythig is working as expected.
$ mongo
use jvi
db.packages.insert({
'description': 'this is a testing package',
'type': 'web',
'version': 1,
'release': 0,
'name': 'my-appname',
'opts': 'environment=prodcution package_installation_path=/tmp/my-appname',
'url': 'http://localhost/my-appname-source.tar.gz
'building': 0
});
- name -- Package name, ie: my-app-name will create the package my-app-name_1.0_i386.deb
- type -- The type will be the directory where it will look for the makefile to be run. ie: We will use the type=web so, the makefile to be used will be the one under jvibuilder/makefiles/web/Makefile
- version -- Version
- release -- Release
- opts [package_installation_path] -- Path to where this package has to be installed after the Debian dpkg was run
- url -- url to download the source package, ie: http://my.jenkins-server.com/my-appname-source.tar.gz
- building -- this field is required and the value allways is 0 (zero)
- description -- This is my application description
Version: 1.0
- Create Debian/Ubuntu files from local "tar.gz" files
- Create an API
- Create a web interface to see packages status