Commit Graph

337 Commits

Author SHA1 Message Date
Lucas Bickel 9a6d5b0175 Restore SELinux tags after install 2017-03-13 14:10:29 +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
Robb Ebright 8fb41cabc0 adding --upgrade to pip install for pyopenssl 2017-03-11 19:15:33 +00:00
Robb Ebright 880496c20f Merge branch 'install-fix-python-ssl-workaround' of https://github.com/Robbt/libretime into Robbt-install-fix-python-ssl-workaround 2017-03-11 09:56:46 -05:00
Robb Ebright 2ae2377ee2 Modified install script to install PyOpenSSL for Ubuntu 14.04 for airtime-celery SSL fix 2017-03-10 17:13:24 -05:00
Lucas Bickel f80afc83c1 Fix default port 80 Listen case 2017-03-10 12:17:16 +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 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
Robb Ebright 86b1fcbf7c Added sample cloud_storage.conf to build dir and install script, changed production dir to symlink, added libretime ASCII art logo 2017-03-04 19:44:01 -05:00
Robb 9bac8354b6 Merge pull request #21 from radiorabe/feature/analyzer-on-travis
mostly run analyzer tests on travis
2017-03-04 19:17:23 -05:00
Robb Ebright a1c4b888c3 Added production directory during setup and used --upgrade parameter for pip install setuptools 2017-03-04 15:22:53 -05: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
Lucas Bickel b79ab33de2 Install to /usr/share/airtime/php per default
The added php subdir lets us keep the vendor and airtime_mvc in the same relative position to each other while keeping everything in /usr/share/$name.

This does not yet take care of cleaning any files left at the old locations, taking care of those would make this installer even more bloated and should be the responsability of apt packages.
2017-03-02 13:13:34 +01:00
Albert Santoni f21fcb3dcc SAAS-1011 - Fixed one mimetype problem and fixed installer 2015-08-24 16:25:09 -04:00
Duncan Sommerville dff54ac880 Add composer install to installer 2015-07-01 00:24:11 -04:00
Duncan Sommerville b4599317e9 Run build from installer; add upstart files and templating back in 2015-06-30 12:16:31 -04:00
Duncan Sommerville 4c797cf100 Update installer to work with saas branch 2015-06-23 19:02:55 -04:00
Duncan Sommerville 92ad5bde6d Add fields to airtime.example.conf for compatibility, remove /etc/init scripts to prevent duplicate processes on startup 2015-06-17 14:49:12 -04:00
Duncan Sommerville ece81c3419 Fix bug where /airtime* named vhosts could break installation 2015-06-17 13:12:47 -04:00
Duncan Sommerville 2f20729e05 Small update to wording in install help 2015-05-05 12:41:02 -04:00
Albert Santoni e618861737 Start the daemons at bootup on Debian 2015-04-07 18:36:14 -04:00
Duncan Sommerville 47f7ad2e98 Fix to upgrade path 2015-03-25 12:03:01 -04:00
Duncan Sommerville 0a3d8ea515 Merge branch '2.5.x-installer' of https://github.com/sourcefabric/Airtime into 2.5.x-installer 2015-03-18 10:12:58 -04:00
Duncan Sommerville a91656a063 Fixed string comparison issue for installer on debian 2015-03-18 10:00:07 -04:00
Albert Santoni 0eebd182dd Installer support for Ubuntu 15.04 2015-03-16 12:22:17 -04:00
Duncan Sommerville 3782817819 More install dependency fixes 2015-03-11 17:10:34 -04:00
Duncan Sommerville 405037e3ec Fixed install script 2015-03-11 14:54:38 -04:00
Duncan Sommerville c9607e9376 Added flags to specify distribution and release code 2015-03-11 14:39:41 -04:00
Duncan Sommerville 6ea169092b Pulls locales from correct directory if not installing to /usr/share 2015-02-24 10:41:10 -05:00
Albert Santoni bce2bb931b Added Debian Jessie support 2015-02-13 21:22:39 -05:00
Albert Santoni bbcd4fbe2e Tons of bugfixes for the installer on Debian
* Still need to get pypo working with sysvinit
* Still need to fix this logger.cfg silliness with pypo and
  media_monitor
2015-02-13 11:32:07 -05:00
Albert Santoni d46f4a52eb Installer tweaks and a pypo bugfix
* Moved all the remaining DEB requirements into the requirements files
* The installer should now be distro agnostic (unless you ask it to
  install third-party deps for you)
* Fixed pypo not being able to find replaygainupdater
* Tweaked a bunch of styling for the installer
2015-02-10 18:06:46 -05:00
Duncan Sommerville bc604b992e CC-5986 - Fixed unit tests, removed unnecessary code from service execution files 2015-01-28 13:19:50 -05:00
Duncan Sommerville 875a9dfd8b CC-5990, CC-5991 - Python cleanup, removed need for /usr/lib/airtime 2015-01-27 18:43:36 -05:00
Duncan Sommerville 9e75c2a479 Stopped adding apt.sourcefabric to sources in installer for compatibility with Ubuntu Saucy 2015-01-26 09:57:31 -05:00
Duncan Sommerville ca9724ec5f Fixed small issue where doing an in-place install over an existing 2.5.1 install would fail 2015-01-21 10:50:58 -05:00
Duncan Sommerville 7034c8e00d Initial fix for apache 2.4 vhost file 2015-01-20 17:31:59 -05:00
Duncan Sommerville c5a60d2f09 Last updates before 2.5.2 RC, mainly small fixes for Ubuntu Precise 2015-01-19 15:05:13 -05:00
Duncan Sommerville c22f2cd5f0 Clean up readability of installer 2015-01-16 17:20:50 -05:00
Duncan Sommerville 2f0b3d423c Small fix for users installing over an old version of airtime 2015-01-16 10:54:30 -05:00
Duncan Sommerville 75306936c0 Workaround for comment character conflict between python ConfigObj and PHP 2015-01-16 10:22:43 -05:00
Duncan Sommerville 791466b023 Fixes for code review https://github.com/sourcefabric/Airtime/pull/84 2015-01-15 16:33:33 -05:00
Duncan Sommerville 36c5d22e25 Made the process of switching from an old (pre-2.5.2) install to the new version smoother 2015-01-15 13:48:40 -05:00
Duncan Sommerville 19a1817159 Fix a bad reversion in the airtime-playout binary 2015-01-15 10:12:52 -05:00
Duncan Sommerville b338c5cf0d Fixed code for setting up user's web root 2015-01-14 20:15:47 -05:00
Duncan Sommerville 3452e13f5e Added locale generation to the installer 2015-01-14 19:37:22 -05:00
Duncan Sommerville f40d88b192 Updated installer to better accommodate running over existing installs 2015-01-14 16:53:19 -05:00
Duncan Sommerville f7c1b6f755 Updated override process for existing airtime installs 2015-01-14 16:27:45 -05:00
Duncan Sommerville df2576e5a0 Updated installer to better accommodate running over existing installs 2015-01-14 16:11:49 -05:00