README.md 1.04 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
erp5-standalone RPMs
====================

CentoOS 7.4 preparation
-----------------------

Do all as root.

Install rpmbuild with:

``# yum install rpm-build``

Prepare directories:

``# mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SRPMS}``

Setup rpm:

``# echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros``

Link this directory to ~/rpmbuild/SPECS:

``# ln -s `pwd` ~/rpmbuild/SPECS``

Building
--------

Compile ERP5 with erp5-standalone script.

30 31 32
Note: You can modify `install.rc` and use different playbook, than keep in mind
to use proper script or just a playbook in above step.

33 34 35 36 37 38 39 40 41 42 43 44 45
Go to ``~/rpmbuild/SPECS``.

Build all RPMs with:

``# rpmbuild -bb *spec``

You'll find RPMs in ``~/rpmbuild/RPMS/x86_64``

Usage - instruction to user installing with RPMs
------------------------------------------------

Required machine is CentOS 7.4 with at least Netinstall.

46 47 48 49 50 51
Create tarball with:

 * `install.sh`
 * `install.rc`
 * RPMs generated
 * slapos.node RPM
52 53 54 55

Ask user to run `install.sh` as `root`.

More instructions will be provided after running this script.