parent
18ce6824e3
commit
fa5db502ed
|
@ -58,31 +58,3 @@ jobs:
|
||||||
composer install --no-progress --dev
|
composer install --no-progress --dev
|
||||||
cd airtime_mvc/tests
|
cd airtime_mvc/tests
|
||||||
php ../../vendor/bin/phpunit
|
php ../../vendor/bin/phpunit
|
||||||
test-xenial-php:
|
|
||||||
runs-on: ubuntu-16.04
|
|
||||||
env:
|
|
||||||
ENVIRONMENT: testing
|
|
||||||
LIBRETIME_LOG_DIR: /tmp/log/libretime
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup PostgreSQL
|
|
||||||
run: |
|
|
||||||
sudo systemctl start postgresql.service
|
|
||||||
pg_isready
|
|
||||||
sudo -u postgres psql -c 'CREATE DATABASE libretime;'
|
|
||||||
sudo -u postgres psql -c "CREATE USER libretime WITH PASSWORD 'libretime';"
|
|
||||||
sudo -u postgres psql -c 'GRANT CONNECT ON DATABASE libretime TO libretime;'
|
|
||||||
sudo -u postgres psql -c 'ALTER USER libretime CREATEDB;'
|
|
||||||
- name: Setup PHP with specific version
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: "7.0"
|
|
||||||
- name: Install prerequisites
|
|
||||||
run: sudo -E ./.github/scripts/install-xenial.sh
|
|
||||||
- name: Run PHP tests
|
|
||||||
run: |
|
|
||||||
echo "::group::Install PHP dependencies"
|
|
||||||
composer install --no-progress --dev
|
|
||||||
echo "::endgroup::"
|
|
||||||
cd airtime_mvc/tests
|
|
||||||
php ../../vendor/bin/phpunit
|
|
||||||
|
|
|
@ -48,10 +48,6 @@ Vagrant.configure("2") do |config|
|
||||||
os.vm.box = "bento/ubuntu-18.04"
|
os.vm.box = "bento/ubuntu-18.04"
|
||||||
provision_libretime(os, "debian.sh", installer_args)
|
provision_libretime(os, "debian.sh", installer_args)
|
||||||
end
|
end
|
||||||
config.vm.define "ubuntu-xenial" do |os|
|
|
||||||
os.vm.box = "bento/ubuntu-16.04"
|
|
||||||
provision_libretime(os, "debian.sh", installer_args)
|
|
||||||
end
|
|
||||||
config.vm.define "debian-buster" do |os|
|
config.vm.define "debian-buster" do |os|
|
||||||
os.vm.box = "bento/debian-10"
|
os.vm.box = "bento/debian-10"
|
||||||
provision_libretime(os, "debian.sh", installer_args)
|
provision_libretime(os, "debian.sh", installer_args)
|
||||||
|
|
|
@ -34,8 +34,8 @@ This is fixed by stopping virtualbox and re-creating the vagrant box:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo systemctl stop virtualbox
|
sudo systemctl stop virtualbox
|
||||||
vagrant destroy ubuntu-xenial
|
vagrant destroy ubuntu-bionic
|
||||||
vagrant up ubuntu-xenial --provider=libvirt
|
vagrant up ubuntu-bionic --provider=libvirt
|
||||||
```
|
```
|
||||||
|
|
||||||
### Debian and Ubuntu
|
### Debian and Ubuntu
|
||||||
|
@ -46,9 +46,9 @@ sudo usermod -aG libvirt $USER
|
||||||
|
|
||||||
# Reboot
|
# Reboot
|
||||||
|
|
||||||
vagrant box add bento/ubuntu-16.04 --provider=virtualbox
|
vagrant box add bento/ubuntu-18.04 --provider=virtualbox
|
||||||
vagrant mutate bento/ubuntu-16.04 libvirt
|
vagrant mutate bento/ubuntu-18.04 libvirt
|
||||||
vagrant up ubuntu-xenial --provider=libvirt
|
vagrant up ubuntu-bionic --provider=libvirt
|
||||||
```
|
```
|
||||||
|
|
||||||
### Other Distributions
|
### Other Distributions
|
||||||
|
@ -62,9 +62,9 @@ sudo usermod -a -G libvirt $USER
|
||||||
# Reboot
|
# Reboot
|
||||||
|
|
||||||
vagrant plugin install vagrant-mutate
|
vagrant plugin install vagrant-mutate
|
||||||
vagrant box fetch bento/ubuntu-16.04
|
vagrant box fetch bento/ubuntu-18.04
|
||||||
vagrant mutate bento/ubuntu-16.04 libvirt
|
vagrant mutate bento/ubuntu-18.04 libvirt
|
||||||
vagrant up ubuntu-xenial --provider=libvirt
|
vagrant up ubuntu-bionic --provider=libvirt
|
||||||
```
|
```
|
||||||
|
|
||||||
## Starting LibreTime Vagrant
|
## Starting LibreTime Vagrant
|
||||||
|
@ -76,26 +76,25 @@ change the default provider if you have multiple installed. This can be done by
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/libretime/libretime.git
|
git clone https://github.com/libretime/libretime.git
|
||||||
cd libretime
|
cd libretime
|
||||||
vagrant up ubuntu-xenial
|
vagrant up ubuntu-bionic
|
||||||
```
|
```
|
||||||
|
|
||||||
If everything works out, you will find LibreTime on [port 8080](http://localhost:8080)
|
If everything works out, you will find LibreTime on [port 8080](http://localhost:8080)
|
||||||
and Icecast on [port 8000](http://localhost:8000).
|
and Icecast on [port 8000](http://localhost:8000).
|
||||||
|
|
||||||
Once you reach the web setup GUI you can click through it using the default values. To
|
Once you reach the web setup GUI you can click through it using the default values. To
|
||||||
connect to the vagrant machine you can run `vagrant ssh ubuntu-xenial` in the libretime
|
connect to the vagrant machine you can run `vagrant ssh ubuntu-bionic` in the libretime
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
## Alternative OS installations
|
## Alternative OS installations
|
||||||
|
|
||||||
With the above instructions LibreTime is installed on Ubuntu Xenial Xerus. The Vagrant setup
|
With the above instructions LibreTime is installed on Ubuntu Bionic. The Vagrant setup
|
||||||
offers the option to choose a different operation system according to you needs.
|
offers the option to choose a different operation system according to you needs.
|
||||||
|
|
||||||
| OS | Command | Comment |
|
| OS | Command | Comment |
|
||||||
| ------------ | -------------------------- | ----------------------------------------------------------- |
|
| ------------ | -------------------------- | ----------------------------------------------------------- |
|
||||||
| Debian 10 | `vagrant up debian-buster` | Install on Debian Buster. |
|
| Debian 10 | `vagrant up debian-buster` | Install on Debian Buster. |
|
||||||
| Ubuntu 18.04 | `vagrant up ubuntu-bionic` | Install on Ubuntu Bionic Beaver. |
|
| Ubuntu 18.04 | `vagrant up ubuntu-bionic` | Install on Ubuntu Bionic Beaver. |
|
||||||
| Ubuntu 16.04 | `vagrant up ubuntu-xenial` | Install on Ubuntu Xenial Xerus. |
|
|
||||||
| CentOS | `vagrant up centos` | CentOS 8 with native systemd support and activated SELinux. |
|
| CentOS | `vagrant up centos` | CentOS 8 with native systemd support and activated SELinux. |
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
13
install
13
install
|
@ -625,7 +625,6 @@ is_debian_dist=false
|
||||||
is_debian_buster=false
|
is_debian_buster=false
|
||||||
is_ubuntu_dist=false
|
is_ubuntu_dist=false
|
||||||
is_ubuntu_bionic=false
|
is_ubuntu_bionic=false
|
||||||
is_ubuntu_xenial=false
|
|
||||||
is_centos_dist=false
|
is_centos_dist=false
|
||||||
is_centos_7=false
|
is_centos_7=false
|
||||||
is_centos_8=false
|
is_centos_8=false
|
||||||
|
@ -641,13 +640,8 @@ case "${dist}-${code}" in
|
||||||
is_ubuntu_bionic=true
|
is_ubuntu_bionic=true
|
||||||
;;
|
;;
|
||||||
ubuntu-16.04|ubuntu-xenial|ubuntu-xenial_docker_minimal)
|
ubuntu-16.04|ubuntu-xenial|ubuntu-xenial_docker_minimal)
|
||||||
code="xenial"
|
echo -e "ERROR: Ubuntu Xenial is archived and does not receive any security or other updates since 2021-04-01." >&2
|
||||||
is_ubuntu_dist=true
|
echo -e "The LibreTime installer dropped support for installing LibreTime on Xenial in 3.0.0-alpha.10." >&2
|
||||||
is_ubuntu_xenial=true
|
|
||||||
;;
|
|
||||||
ubuntu-14.04|ubuntu-trusty)
|
|
||||||
echo -e "ERROR: Ubuntu Trusty is archived and does not receive any security or other updates since 2019-04-17." >&2
|
|
||||||
echo -e "The LibreTime installer dropped support for installing LibreTime on Trusty in 3.0.0-alpha.8." >&2
|
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
debian-9|debian-stretch)
|
debian-9|debian-stretch)
|
||||||
|
@ -1076,8 +1070,6 @@ if $is_debian_buster; then
|
||||||
loudCmd "a2enmod rewrite php7.3 proxy proxy_http"
|
loudCmd "a2enmod rewrite php7.3 proxy proxy_http"
|
||||||
elif $is_ubuntu_bionic; then
|
elif $is_ubuntu_bionic; then
|
||||||
loudCmd "a2enmod rewrite php7.2 proxy proxy_http"
|
loudCmd "a2enmod rewrite php7.2 proxy proxy_http"
|
||||||
elif $is_ubuntu_xenial; then
|
|
||||||
loudCmd "a2enmod rewrite php7.0 proxy proxy_http"
|
|
||||||
elif $is_centos_dist; then
|
elif $is_centos_dist; then
|
||||||
verbose "TODO: enable Apache modules mod_rewrite, mod_php, mod_proxy and mod_proxy_http manually"
|
verbose "TODO: enable Apache modules mod_rewrite, mod_php, mod_proxy and mod_proxy_http manually"
|
||||||
else
|
else
|
||||||
|
@ -1227,7 +1219,6 @@ if $is_centos_dist; then
|
||||||
else
|
else
|
||||||
# not on centos
|
# not on centos
|
||||||
ip_device="eth0"
|
ip_device="eth0"
|
||||||
$is_ubuntu_xenial && ip_device="enp0s8"
|
|
||||||
IP=$(ifconfig ${ip_device} 2>/dev/null |awk -F'[ :]+' '/inet addr:/ {print $4}')
|
IP=$(ifconfig ${ip_device} 2>/dev/null |awk -F'[ :]+' '/inet addr:/ {print $4}')
|
||||||
fi
|
fi
|
||||||
verbose "...Done"
|
verbose "...Done"
|
||||||
|
|
|
@ -1,80 +0,0 @@
|
||||||
apache2
|
|
||||||
build-essential
|
|
||||||
coreutils
|
|
||||||
curl
|
|
||||||
ecasound
|
|
||||||
flac
|
|
||||||
gcc
|
|
||||||
gir1.2-gtk-3.0
|
|
||||||
gstreamer1.0-plugins-bad
|
|
||||||
gstreamer1.0-plugins-good
|
|
||||||
gstreamer1.0-plugins-ugly
|
|
||||||
icecast2
|
|
||||||
lame
|
|
||||||
libao-ocaml
|
|
||||||
libapache2-mod-php7.0
|
|
||||||
libcamomile-ocaml-data
|
|
||||||
libcairo2-dev
|
|
||||||
libfaad2
|
|
||||||
libffi-dev
|
|
||||||
libglib2.0-dev
|
|
||||||
libgirepository1.0-dev
|
|
||||||
libmad-ocaml
|
|
||||||
libopus0
|
|
||||||
libportaudio2
|
|
||||||
libpulse0
|
|
||||||
libpq-dev
|
|
||||||
libsamplerate0
|
|
||||||
libsoundtouch-ocaml
|
|
||||||
libssl-dev
|
|
||||||
libtaglib-ocaml
|
|
||||||
liquidsoap
|
|
||||||
liquidsoap-plugin-alsa
|
|
||||||
liquidsoap-plugin-ao
|
|
||||||
liquidsoap-plugin-faad
|
|
||||||
liquidsoap-plugin-flac
|
|
||||||
liquidsoap-plugin-icecast
|
|
||||||
liquidsoap-plugin-lame
|
|
||||||
liquidsoap-plugin-mad
|
|
||||||
liquidsoap-plugin-ogg
|
|
||||||
liquidsoap-plugin-portaudio
|
|
||||||
liquidsoap-plugin-pulseaudio
|
|
||||||
liquidsoap-plugin-taglib
|
|
||||||
liquidsoap-plugin-voaacenc
|
|
||||||
liquidsoap-plugin-vorbis
|
|
||||||
lsb-release
|
|
||||||
lsof
|
|
||||||
mpg123
|
|
||||||
patch
|
|
||||||
php7.0
|
|
||||||
php7.0-curl
|
|
||||||
php7.0-gd
|
|
||||||
php7.0-pgsql
|
|
||||||
php-apcu
|
|
||||||
php-bcmath
|
|
||||||
php-mbstring
|
|
||||||
php-pear
|
|
||||||
pkg-config
|
|
||||||
postgresql
|
|
||||||
postgresql-client
|
|
||||||
pwgen
|
|
||||||
python3
|
|
||||||
python3-dev
|
|
||||||
python3-gi
|
|
||||||
python3-gi-cairo
|
|
||||||
python3-gst-1.0
|
|
||||||
python3-pika
|
|
||||||
python3-pip
|
|
||||||
python3-virtualenv
|
|
||||||
python3-cairo
|
|
||||||
rabbitmq-server
|
|
||||||
silan
|
|
||||||
sysvinit-utils
|
|
||||||
unzip
|
|
||||||
uwsgi
|
|
||||||
uwsgi-plugin-python3
|
|
||||||
vorbisgain
|
|
||||||
vorbis-tools
|
|
||||||
vorbis-tools
|
|
||||||
xmlstarlet
|
|
||||||
zip
|
|
|
@ -1,69 +0,0 @@
|
||||||
apache2
|
|
||||||
build-essential
|
|
||||||
coreutils
|
|
||||||
curl
|
|
||||||
ecasound
|
|
||||||
flac
|
|
||||||
gstreamer1.0-plugins-bad
|
|
||||||
gstreamer1.0-plugins-good
|
|
||||||
gstreamer1.0-plugins-ugly
|
|
||||||
lame
|
|
||||||
libao-ocaml
|
|
||||||
libapache2-mod-php7.0
|
|
||||||
libcamomile-ocaml-data
|
|
||||||
libfaad2
|
|
||||||
libffi-dev
|
|
||||||
libmad-ocaml
|
|
||||||
libopus0
|
|
||||||
libportaudio2
|
|
||||||
libpulse0
|
|
||||||
libpq-dev
|
|
||||||
libsamplerate0
|
|
||||||
libsoundtouch-ocaml
|
|
||||||
libssl-dev
|
|
||||||
libtaglib-ocaml
|
|
||||||
liquidsoap
|
|
||||||
liquidsoap-plugin-alsa
|
|
||||||
liquidsoap-plugin-ao
|
|
||||||
liquidsoap-plugin-faad
|
|
||||||
liquidsoap-plugin-flac
|
|
||||||
liquidsoap-plugin-icecast
|
|
||||||
liquidsoap-plugin-lame
|
|
||||||
liquidsoap-plugin-mad
|
|
||||||
liquidsoap-plugin-ogg
|
|
||||||
liquidsoap-plugin-portaudio
|
|
||||||
liquidsoap-plugin-pulseaudio
|
|
||||||
liquidsoap-plugin-taglib
|
|
||||||
liquidsoap-plugin-voaacenc
|
|
||||||
liquidsoap-plugin-vorbis
|
|
||||||
lsb-release
|
|
||||||
lsof
|
|
||||||
mpg123
|
|
||||||
patch
|
|
||||||
php7.0
|
|
||||||
php7.0-curl
|
|
||||||
php7.0-gd
|
|
||||||
php7.0-pgsql
|
|
||||||
php-apcu
|
|
||||||
php-bcmath
|
|
||||||
php-mbstring
|
|
||||||
php-pear
|
|
||||||
postgresql-client
|
|
||||||
pwgen
|
|
||||||
python3
|
|
||||||
python3-dev
|
|
||||||
python3-gst-1.0
|
|
||||||
python3-pika
|
|
||||||
python3-pip
|
|
||||||
python3-virtualenv
|
|
||||||
python3-cairo
|
|
||||||
silan
|
|
||||||
sysvinit-utils
|
|
||||||
unzip
|
|
||||||
vorbisgain
|
|
||||||
vorbis-tools
|
|
||||||
vorbis-tools
|
|
||||||
xmlstarlet
|
|
||||||
uwsgi
|
|
||||||
uwsgi-plugin-python3
|
|
||||||
zip
|
|
Loading…
Reference in New Issue