Commit Graph

41 Commits

Author SHA1 Message Date
Lucas Bickel f3e8e8cb00 Run dos2unix on all markdown files in docs/ 2017-05-16 13:39:17 +02:00
Lucas Bickel a48bdb8461 Add info on system restart/reboot 2017-04-25 20:32:38 +02:00
Lucas Bickel 0f831c6e0b Update faq entry 2017-04-25 20:14:03 +02:00
Lucas Bickel b2f8a57332 Refactor upgrade docs
* [x] explain semver since this upgrade cases are when this applies
* [x] links to different parts of manual
* [x] move backup section to the top
* [x] add "real" git pull example
* [x] rename install script to plain ./install
* [x] remove very old monit upgrade help
2017-04-25 20:09:14 +02:00
Bill Burton 450a92384f Switch Vagrantfile to use bento boxes for Debian #170 2017-04-19 14:42:12 -04:00
Lucas Bickel e34d87a1da Update vagrant docs for new ubuntu boxes 2017-04-16 01:33:41 +02:00
Lucas Bickel aa5bc06d74 FreeIPA Auth Adaptor for LibreTime
Allow delegating user authentication to FreeIPA rather than having it be checked against the database.
2017-03-31 14:16:31 +02:00
Robb 674f17213f Update testing.md 2017-03-23 18:44:17 -04:00
Lucas Bickel d028681d52 Add docs linked from help page
I linked these docs form the help page pointing to a 404 and this takes care of adding some rather bare content so we have something up and running for a release.
2017-03-15 12:16:48 +01:00
Lucas Bickel c29285ae48 Vagrant Debian support (and experimental CentOS)
This changes the Vagrant setup to support multiple installations as multiple
boxes. In addition to Ubuntu Vagrant can now be used to install on Debian
as well as on CentOS.

I took the chance to clean up the .deb install a bit and backported analyzer
and celery to SysV proper so it runs there. Some of the distro specfics were
moved to the install script from the python setup scripts to acheive this.

For the CentOS support I added a rather involved OS prepare script. In the
long term this will be added to the preparing-the-server docs we already have.

I had to switch the default port to http-alt (8080). On CentOS 9080 is registered
for ocsp and getting it to work for apache without hacking SELinux is hard. I
think 8080 is the RFC way to go anyhow. If anyone want to override this it
should be rather easy using the --web-port arg and by hacking Vagrantfile.

The PyOpenSSL code has been refactored for all the distros that the Vagrantfile
now supports.

As far as my checks go, I tried this code with all the distros, uploaded a track
and downloaded a unicode and a ssl podcast and was able to listen to them
in each case.

In the experimental CentOS case, the UI is not up to spec since services
need to get scheduled through systemctl and the status overview (ie. on the /?config page)
do not work properly. They need to be as follows:

```
sudo systemctl start airtime-playout
sudo systemctl start airtime-liquidsoap
sudo systemctl start airtime_analyzer.service
sudo systemctl start airtime-celery.service
```
2017-03-12 13:42:22 +01:00
Lucas Bickel 8ddc5867ac Add missing file
This was missing from d852db439e.
2017-03-10 12:32:45 +01:00
Lucas Bickel d852db439e Add more vagrant docs
Complete with links to the usual tooling needed, some info on vagrant ssh and a small troubleshooting section.
2017-03-10 12:31:19 +01:00
Lucas Bickel 7b3275b449 Merge branch 'master' into feature/vagrant-install 2017-03-10 09:38:36 +01:00
Lucas Bickel 70e6135e93 Restore full disk usage not based on quota
This is mostly a restore of how this used to be implemented.
2017-03-08 15:56:43 +01:00
Lucas Bickel b15abbd82f Settings menu rename in docs
[ci skip]
2017-03-08 15:17:50 +01:00
Lucas Bickel b8a56825ad Update docs to match new systemstatus 2017-03-08 14:59:23 +01:00
Lucas Bickel 2350650e26 Enable icecast autoinstall
And fix docs :)
2017-03-07 15:36:18 +01:00
Lucas Bickel bd2f96acf2 Switch LibreTime port to 9080 in vagrant
Also expose icecast and make the airtime port generally configurable from the installer.

To aid in debugging and support the -v (verbose) argument was added to the call.
2017-03-07 13:26:52 +01:00
Lucas Bickel 354f449b82 Update docs to reflect we need more RAM in 2017 2017-03-07 12:20:09 +01:00
Lucas Bickel 4185a8674d Merge branch 'master' into feature/vagrant-install 2017-03-07 12:19:09 +01:00
Robb 830ce4beaa Merge pull request #36 from radiorabe/feature/merge-manual
Merge Airtime manuals from Booktime.pro
2017-03-06 18:33:16 -05:00
Lucas Bickel 8ed1dce4b1 Install airtime in vagrant env
Uses the old installer to get LibreTime installed quick and dirty on vagrant.

It uses the `install -fIap` command that does a local install and points the apache config
directly to the local working copy mounted in /vagrant.

While we don't have fancy autoloading for libretime like the docs do, this way
it's already easy to work against a local branch.

I'm not sure if the `-I` arg to the installer also covers the python parts of libretime.
2017-03-06 12:05:22 +01:00
Lucas Bickel d1edac4ff1 Add "or terrestrial" in 1. sentence 2017-03-05 14:18:41 +01:00
Lucas Bickel c8e9356b2e Replace original docs README.txt
We need something that points back to the code now.
2017-03-05 13:46:47 +01:00
Lucas Bickel b96c13ad16 Add warning to top of install related docs 2017-03-05 13:30:11 +01:00
Lucas Bickel 187afcb206 Add converted 2.5.x manual on top of pro manual
I tried to only merge what makes sense for us, there is still quite some cleanup needed, this commit tries to preserve the 2.5 manual as much as possible while still keeping the rare new stuff from pro.
2017-03-05 13:17:49 +01:00
Lucas Bickel 7f02761e8d Basic pandocs conversion of Airtime.pro manual
This is what is currently on http://sourcefabric.booktype.pro/airtime-pro-for-broadcasters and was converted to markdown with an extremely hacky script and some flintstoning.
2017-03-05 01:22:11 +01:00
Lucas Bickel 188c127057 Merge branch 'master' into feature/analyzer-on-travis
# Conflicts:
#	.travis.yml
2017-03-04 16:35:11 +01:00
Lucas Bickel fba5ce1ce5 Make examples copy/paste friendly 2017-03-04 15:30:05 +01:00
Lucas Bickel 8cc262ae11 Remove background-color completely
We can revisit this but I want to merge this ASAP since it's just too nice to wait.
2017-03-04 15:27:21 +01:00
Lucas Bickel fba9a13214 Add testing.md to docs 2017-03-04 15:17:26 +01:00
Lucas Bickel 4f9a9e651e Merge branch 'master' into feature/mkdocs 2017-03-04 14:20:48 +01:00
Lucas Bickel 9b3d0c90da mostly run analyzer tests on travis
* [x] regonfigured the build matrix with more php jobs and a separate python job (we can add more python jobs later)
* [x] run tests on travis' trusty beta container (it's closer to what we need anyway)
* [x] install packages needed for analyzer tests in build env
* [x] added docs on how to run nosetests locally
* [x] don't run initctl in analyzer setup so setup can also be used on travis (and add it to the install script directly)
* [x] ignore replaygain checks on travis (it has proven quite impossible to get the needed python-gi module to work in the provided virtualenv)

I tried a lot of solutions to get the replaygain checks to run. I needed to decide that this has gone far enough, maybe someone who is more of a pythonista than me can take a crack at it and get it solved. Even without running those tests on CI/CD there are still plenty others.

This PR only has parts of what are needed for getting python tests running on travis as per #15. I only took a quick shot at anything not analyzer and figured I would not be able to "fix" them without digging a bit deeper (ie. also getting rid of std_err_override).
2017-03-03 20:38:27 +01:00
Christopher Gervais 203716ea50 Clarify some docs and improve code highlighting. 2017-03-03 13:28:36 -05:00
Christopher Gervais 91c581e678 Add basic Mkdocs config and initial docs. 2017-03-03 09:43:14 -05:00
Lucas Bickel 844e93576c Update install docs with ubuntu example
This is the way around having to set a password on ubuntu.
2017-03-02 13:34:37 +01:00
Lucas Bickel 0d2e8b3b3e Update testing docs
Add the -h localhost to psql command since ubuntu seems to prefer that.
2017-02-28 12:26:57 +01:00
Lucas Bickel 625f92fe44 Vendorize ZF1, fix PHPUnit and configure travis
This a a rather large commit due to the nature of the stuff it is touching. To get PHPUnit up and running again I had to update some deps and I did so by vendorizing them. The vendorizing of zf1 makes sense since distros are already considering to drop it from their repos.

* [x] install vendorized zf1 with composer
* [x] load composer autoloader before zf1
* [x] Implement headAction for all Zend_Rest_Controller based controllers
* [x] switch to yml dataset to get around string only limitations of xml sets (also removed warning in readme)
* [x] use year 2044 as hardcoded date for tests since it is in the future and has the same days like previously used 2016
* [x] make tests easier to run when accessing phpunit directly
* [x] clean up test helper to always use airtime.conf
* [x] switch test dbname to libretime_test
* [x] test db username password switched to libretime/libretime
* [x] install phpunit with composer in a clear version (make tests easier to reproduce on other platforms)
* [x] remove local libs from airtime repo (most of airtime_mvc/library was not needed of in vendor already)
* [x] configure composer autoloading and use it (also removed requires that are not needed anymore)
* [x] add LibreTime prefix for FileNotFoundException (phing had a similar class and these are all pre-namespace style)
* [x] add .travis.yml file
* [x] make etc and logdir configurable with LIBRETIME_CONF_DIR and LIBRETIME_LOG_DIR env (so travis can change it)
* [x] slight cleanup in config for travis not to fail
* [x] add cloud_storage.conf for during test runs
* [x] rewrite mvc testing docs and move them to docs/ folder
* [x] don't use `static::class` in a class that does not have a parent class, use `__CLASS__` instead.
* [x] don't use `<ClassName>::class`, since we already know what class we want `"<ClassName>"` ist just fine.
* [x] fix "can't use method in write context" errors on 5.4 (also helps the optimizer)
* [x] add build status badge on main README.md

Fixes https://github.com/LibreTime/libretime/issues/4

The PHP parts of https://github.com/LibreTime/libretime/pull/10 get obsoleted by this change and it will need rebasing.

This also contains https://github.com/LibreTime/libretime/pull/8, the late static binding compat code was broken for no reason and until CentOS drops php 5.4 there is no reason I'm aware of not to support it. I inlined #8 since the test would be failing on php 5.4 without the change.

If you want to run tests you need to run `composer install` in the root directory and then `cd airtime_mvc/tests && ../../vendor/bin/phpunit`. For the tests to run the user `libretime` needs to be allowed to create the `libretime_test` database. See `docs/TESTING.md` for more info on getting set up.
2017-02-27 17:59:01 +01:00
Paul Baranowski 169c4ec214 Minor fixes for the name change Campcaster -> Airtime. 2011-01-07 17:17:23 -05:00
mkonecny dcec6bf4b1 -changed references from campcaster to airtime in pypo/ directory 2011-01-05 12:31:49 -05:00
naomiaro 7ef0c18b26 adding zend project folders into old campcaster. 2010-12-07 14:19:27 -05:00