Page MenuHomePhabricator

Add RHEL/Centos 6 init and rpm spec file
AbandonedPublic

Authored by vinzent on Sep 17 2014, 9:06 PM.

Details

Summary

Provide an easy way to build phabricator/libphutil/arcanist rpm's to deploy
with a yum repo.

The rpm builds checking out the git repos. Version of the package is "0" and
the release contains a datetime (YearMonthDayHourMinute, UTC). Latest git rev
is saved to /opt/phacility/GIT-REVS

The RPM creates a daemon user (phabricator), log (/var/log/phabricator), data
directories (/var/lib/phabricator/{files|repo}) and a init script which manages
phd. Some default-settings are set if phabricator/config/local/local.json does
not exist.

Apache HTTPD and "phabricator/bin/storage upgrade" still have to be
configured/called manually.

The packages install the applications to /opt/phacility/{phabricator|libphutil|arcanist}.
Arcanist can be installed without phabricator webapp.

Build RPM with: rpmbuild -bb resources/rhel/phabricator.spec

TODO: start/stop service on upgrade, call "storage upgrade" on rpm upgrades

Test Plan

build rpm, install rpm, uninstall rpm, upgrade rpm, start/stop/restart service

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 2563
Build 2567: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

vinzent updated this revision to Diff 25251.Sep 17 2014, 9:06 PM
vinzent retitled this revision from to Add RHEL/Centos 6 init and rpm spec file.
vinzent updated this object.
vinzent edited the test plan for this revision. (Show Details)
vinzent added a reviewer: Phabricator.

This is unlikely to be accepted; see T4200 for more information.

epriestley requested changes to this revision.Sep 18 2014, 12:41 AM
epriestley added a reviewer: epriestley.

Yep, @hach-que is correct. We aren't interested in OS-specific install scripts in the upstream at this time: we're spread too thin to maintain them for the many different OS and infrastructure flavors users are interested in.

If you want to publish this somewhere like GitHub, feel free to add a link to the Wiki here:

https://secure.phabricator.com/w/community_resources/

This revision now requires changes to proceed.Sep 18 2014, 12:41 AM
vinzent abandoned this revision.Sep 18 2014, 7:36 AM

Yep, @hach-que is correct. We aren't interested in OS-specific install scripts in the upstream at this time: we're spread too thin to maintain them for the many different OS and infrastructure flavors users are interested in.

If you want to publish this somewhere like GitHub, feel free to add a link to the Wiki here:

https://secure.phabricator.com/w/community_resources/

i've pushed the change to https://github.com/vinzent/phabricator.git and updated the https://secure.phabricator.com/w/community_resources/ page