No that's great that you linked to it :) I just felt like taking the opportunity to mention RBCommons ;)
Anything to help get people set up is helpful. On machines that RB supports well, it's easy, but yeah, Windows and other Linux distros can be a real pain. Christian -- Christian Hammond - [email protected] Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Sep 12, 2011 at 2:51 PM, Stephen Gallagher < [email protected]> wrote: > Oh, absolutely! OpenShift Express doesn't come with application support > (and very limited platform support in the free version). > > I'm not trying to compete with rbcommons! > > Mostly I thought it might prove interesting to those admins having setup > troubles (especially on Windows) > > On Sep 12, 2011 4:39 PM, "Christian Hammond" <[email protected]> wrote: > > > > Hey Stephen, > > > > Looks like an interesting project. I'll have to look into it more. > > > > However, I wouldn't be doing my job if I didn't say that the absolute > easiest way to get Review Board, with full support from us, is to use our > new hosting service, RBCommons (http://www.rbcommons.com) ;) > > > > Christian > > > > > > > > On Mon, Sep 12, 2011 at 1:24 PM, Stephen Gallagher <[email protected]> > wrote: > >> > >> I don't know how many users on this list are familiar with OpenShift. > >> This is a Red Hat-sponsored cloud service providing virtual > >> applications. > >> > >> One of the popular applications selected for use as a demonstration of > >> the power of OpenShift was ReviewBoard. I'd like to describe for you > >> what I now believe to be the easiest way to get a ReviewBoard 1.6.1 > >> server up and running with zero hardware investment. Oh, and did I > >> mention that OpenShift Express is free (up to 10,000 files and 256MB of > >> data). > >> > >> There are two caveats here: > >> 1) The 10,000 file limit seems to be preventing upgrades of Django > >> itself (which contains about 7,000 files). So when trying to unpack an > >> upgrade of Django, it fails. I've spoken to the OpenShift developers and > >> they're probably going to increase this limit for Django apps, but I > >> don't have a firm timeline on that. > >> > >> 2) You need to bring your own SMTP server if you want email updates. > >> Because the OpenShift servers exist in public clouds (I believe - but > >> I'm not certain - it's Amazon's cloud) many email systems will deny > >> email originating from cloud IPs. So you will need to set up an STMP > >> server in a trusted network in order for your emails to reach their > >> destinations. > >> > >> > >> The Really Really Easy Way: > >> https://github.com/lmacken/openshift-quickstarter > >> > >> 1) Create an account at http://openshift.redhat.com/ > >> 2) Install the client binaries (see instructions when creating account) > >> 3) Download the openshift-quickstarter script from > >> https://github.com/lmacken/openshift-quickstarter > >> 4) ./openshift-quickstarter LOGIN DOMAIN APPNAME reviewboard > >> > >> LOGIN: Your OpenShift username > >> DOMAIN: Your OpenShift domain > >> APPNAME: The name of your application > >> > >> > >> > >> The more detailed way (explicitly perform the steps provided by the > >> above script) > >> > >> The original text of this guide (as well as any updates) is available at > >> https://github.com/openshift/reviewboard-example/blob/master/README > >> > >> OpenShift - ReviewBoard > >> ===================== > >> 1) Create an account at http://openshift.redhat.com/ > >> This repository is designed to be used with > http://openshift.redhat.com/ > >> applications. To use, just follow the quickstart below. > >> > >> > >> Quickstart > >> ========== > >> > >> 1) Create an account at http://openshift.redhat.com/ > >> 2) Create a wsgi-3.2 application and attach mysql to it: > >> $ rhc-create-app -a reviewboard -t wsgi-3.2 > >> $ rhc-ctl-app -a reviewboard -e add-mysql-5.1 > >> 3) Add this upstream reviewboard repo > >> $ cd reviewboard > >> $ git remote add upstream -m master > >> git://github.com/openshift/reviewboard-example.git > >> $ git pull -s recursive -X theirs upstream master > >> 4) Then push the repo upstream > >> $ git push > >> 5) That's it, you can now checkout your application at: > >> http://reviewboard-$yourlogin.rhcloud.com > >> 6) Default Admin Username: Admin > >> Default Password: OpenShiftAdmin > >> > >> Updates > >> ======= > >> > >> In order to update or upgrade to the latest reviewboard, you'll need to > >> re-pull > >> and re-push. > >> > >> 1) Pull from upstream: > >> $ cd reviewboard/ > >> $ git pull -s recursive -X theirs upstream master > >> 2) Push the new changes upstream > >> $ git push > >> > >> Note: When new releases are pushed from the reviewboard dev team, your > >> app will > >> automatically download them on your next git push. > >> > >> > >> Repo layout > >> =========== > >> wsgi/ - Externally exposed wsgi code goes > >> libs/ - Additional libraries > >> data/ - For not-externally exposed wsgi code > >> setup.py - Standard setup.py, specify deps here > >> ../data - For persistent data (also env var: OPENSHIFT_DATA_DIR) > >> .openshift/action_hooks/build - Script that gets run every push, just > >> prior to > >> starting your app > >> > >> > >> Environment Variables > >> ===================== > >> > >> OpenShift Express provides several environment variables to reference > >> for ease > >> of use. The following list are some common variables but far from > >> exhaustive: > >> > >> os.environ['OPENSHIFT_APP_NAME'] - Application name > >> os.environ['OPENSHIFT_APP_DIR'] - Application dir > >> os.environ['OPENSHIFT_DATA_DIR'] - For persistent storage (between > >> pushes) > >> os.environ['OPENSHIFT_TMP_DIR'] - Temp storage (unmodified files > >> deleted after 10 days) > >> > >> When embedding a database using rhc-ctl-app, you can reference > >> environment > >> variables for username, host and password: > >> > >> os.environ['OPENSHIFT_DB_HOST'] - DB host > >> os.environ['OPENSHIFT_DB_PORT'] - DB Port > >> os.environ['OPENSHIFT_DB_USERNAME'] - DB Username > >> os.environ['OPENSHIFT_DB_PASSWORD'] - DB Password > >> > >> To get a full list of environment variables, simply add a line in your > >> .openshift/action_hooks/build script that says "export" and push. > >> > >> > >> Notes about layout > >> ================== > >> Please leave wsgi, libs and data directories but feel free to create > >> additional > >> directories if needed. > >> > >> Note: Every time you push, everything in your remote repo dir gets > >> recreated > >> please store long term items (like an sqlite database) in ../data which > >> will > >> persist between pushes of your repo. > >> > >> > >> Notes about setup.py > >> ==================== > >> > >> Adding deps to the install_requires will have the openshift server > >> actually > >> install those deps at git push time. > >> > > > > > > -- > > Christian Hammond - [email protected] > > Review Board - http://www.reviewboard.org > > VMware, Inc. - http://www.vmware.com > > > > -- > > Want to help the Review Board project? Donate today at > http://www.reviewboard.org/donate/ > > Happy user? Let us know at http://www.reviewboard.org/users/ > > -~----------~----~----~----~------~----~------~--~--- > > To unsubscribe from this group, send email to > [email protected] > > For more options, visit this group at > http://groups.google.com/group/reviewboard?hl=en > > -- > Want to help the Review Board project? Donate today at > http://www.reviewboard.org/donate/ > Happy user? Let us know at http://www.reviewboard.org/users/ > -~----------~----~----~----~------~----~------~--~--- > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/reviewboard?hl=en -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
