Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (71 sloc) 2.78 KB
YABS README FILE
Contents:
1. Summary
2. Installation
3. Uninstallation
4. Usage
5. Configuration
6. Vagrant
7. Build vagrant from scratch
----------------------------------------------------------------------
1. SUMMARY
YABS - is Yet Another Build Script. It provides a simple way to
support your own OpenSUSE RPM package repository.
What Yabs it is:
- it can generate binary RPM packages and store them to consistent
RPM repository;
- it can start your repo from scratch without extra configuration.
What Yabs it is not:
- it not provides any UI;
- it can not generate packages for platforms other than host system;
- it can not do simultaneous builds - all builds are make in
one process;
- all privileges separation must be done on OS level - there is
no things like 'Yabs users' or 'Yabs groups'.
----------------------------------------------------------------------
2. INSTALLATION
Chdir to Yabs sources dir and type:
$ sudo make install
----------------------------------------------------------------------
3. UNINSTALLATION
Chdir to Yabs sources dir and type:
$ sudo make uninstall
----------------------------------------------------------------------
4. USAGE
After installation passed, Yabs will look for new source RPM packages
in him 'incoming' directory, which locates at /var/lib/yabs/incoming.
When Yabs finds one, it begins build process in chrooted environment.
If build success, it will move binary packages generated to publish
directory (/srv/www/htdocs/RPMS by default), and source RPM to
/srv/www/htdocs/SRPMS directory. It will automatically creates
(or updates, if such exists already) RPM repository based on packages
generated.
If build fails, Yabs will move failed source RPM to special directory -
/var/lib/yabs/fail/. Any way, you can find build logs in directory
/var/lib/yabs/logs/.
If you already have Apache installed, you can point your zyppers
to http://$HOSTNAME/RPMS to use all packages generated.
----------------------------------------------------------------------
5. Vagrant usage
vagrant up
vagrant ssh
Current directory will be mount in /vagrant
Add your credential into /etc/yabs/http-auth.conf:
HTTP_USERNAME=
HTTP_PASSWORD=
Yabs can be updated:
zypper up strikead-yabs
Private zypper repos are required to have installed credentials configuration file: /etc/yabs/zypp-credentials.cat
[http://example.com/path]
username=
password=
----------------------------------------------------------------------
6. Build vagrant box from scratch
cd scratch
vagrant up
vagrant ssh
# download https://github.com/strikead/min-reqs/blob/master/zypp/repos.d/1310/strikead.repo
cp strikead.repo /etc/zypp/repos.d
zypper rm -y patterns-openSUSE-minimal_base-conflicts-13.1-13.6.1.x86_64
zypper in -y strikead-yabs
vagrant package --output suse131-yabs.box