Page MenuHomePhabricator

Add RHEL/Centos 6 init and rpm spec file
AbandonedPublic

Authored by vinzent on Sep 17 2014, 9:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 3:31 AM
Unknown Object (File)
Sun, Apr 7, 1:06 PM
Unknown Object (File)
Sat, Mar 30, 9:10 AM
Unknown Object (File)
Fri, Mar 29, 9:38 PM
Unknown Object (File)
Fri, Mar 29, 5:04 PM
Unknown Object (File)
Fri, Mar 29, 1:16 PM
Unknown Object (File)
Sun, Mar 24, 11:28 PM
Unknown Object (File)
Mar 15 2024, 7:57 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 Passed
Unit
No Test Coverage
Build Status
Buildable 2563
Build 2567: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

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 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

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