Permalink
Browse files

From now on, we will deploy html5lib onto /opt/kaltura/apps rather th…

…an to NFS for better performance.
  • Loading branch information...
jessp01 committed Dec 24, 2018
1 parent 0c72378 commit 6c096afbb11870d75363a3a99b9ce173cad16ae2
@@ -0,0 +1,26 @@
Alias /hosted_pages "@BASE_DIR@/apps/hosted_pages/web"
<Directory "@BASE_DIR@/apps/hosted_pages/web">
DirectoryIndex index.php
Options Indexes FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>

Alias /apps "@BASE_DIR@/apps"
Alias /kea "@BASE_DIR@/apps/kea"
Alias /html5 "@BASE_DIR@/apps/html5"
<Directory "@BASE_DIR@/apps">
DirectoryIndex index.php
Options -Indexes +FollowSymLinks +Includes
AllowOverride None
Order allow,deny
Allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>

@@ -11,7 +11,7 @@
Summary: Kaltura Open Source Video Platform
Name: kaltura-base
Version: 14.11.0
Release: 7
Release: 8
License: AGPLv3+
Group: Server/Platform
Source0: https://github.com/kaltura/server/archive/%{codename}-%{version}.zip
@@ -37,6 +37,7 @@ Source36: start_page_survey.png
Source37: start_page_newsletter.png
Source38: start_page-landing-page.css
Source39: kmcngAction.class.php
Source40: apps.conf.template

URL: https://github.com/kaltura/server/tree/%{codename}-%{version}
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -143,6 +144,8 @@ cp %{SOURCE16} $RPM_BUILD_ROOT%{confdir}/monit/monit.avail/
rm $RPM_BUILD_ROOT%{confdir}/monit/monit.d/*template*
cp %{SOURCE25} $RPM_BUILD_ROOT%{confdir}/logrotate/
cp %{SOURCE26} $RPM_BUILD_ROOT%{confdir}/logrotate/
# temp patch that should be removed when https://github.com/kaltura/server/pull/7957/files is merged
cp %{SOURCE40} $RPM_BUILD_ROOT%{confdir}/apache/conf.d


# David Bezemer's Admin console and monit patches:
@@ -6,14 +6,14 @@
Summary: Kaltura Open Source Video Platform - frontend server
Name: kaltura-front
Version: 14.11.0
Release: 1
Release: 2
License: AGPLv3+
Group: Server/Platform
Source3: zz-%{name}.ini

URL: http://kaltura.org
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: kaltura-mediainfo, httpd, php, curl, kaltura-base, kaltura-ffmpeg, ImageMagick, memcached, php-pecl-memcache, php-mysqli, php-pdo_mysql, php-pecl-apc, php-mcrypt, kaltura-segmenter, mod_ssl,kaltura-sshpass, openssl,memcached, kaltura-html5-studio, kaltura-kmcng
Requires: kaltura-mediainfo, httpd, php, curl, kaltura-base, kaltura-ffmpeg, ImageMagick, memcached, php-pecl-memcache, php-mysqli, php-pdo_mysql, php-pecl-apc, php-mcrypt, kaltura-segmenter, mod_ssl,kaltura-sshpass, openssl,memcached, kaltura-html5-studio, kaltura-html5lib, kaltura-kmcng
#php-pecl-zendopcache
Requires(post): chkconfig
Requires(preun): chkconfig
@@ -102,6 +102,9 @@ rm -rf %{buildroot}
%config %{_sysconfdir}/php.d/zz-%{name}.ini

%changelog
* Mon Dec 24 2018 jess.portnoy@kaltura.com <Jess Portnoy> - 14.11.0-2
- html5lib is now deployed onto /opt/kaltura/apps rather than to NFS for better performance.

* Tue Dec 18 2018 jess.portnoy@kaltura.com <Jess Portnoy> - 14.11.0-1
- Ver Bounce to 14.11.0

@@ -1,9 +1,10 @@
%define prefix /opt/kaltura
%define html5lib_base %{prefix}/apps/html5/html5lib

Summary: Kaltura Open Source Video Platform
Name: kaltura-html5lib
Version: v2.73.2
Release: 1
Release: 2
Epoch: 0
License: AGPLv3+
Group: Server/Platform
@@ -51,13 +52,16 @@ tar zxf %{SOURCE9} -C %{_builddir}/
tar zxf %{SOURCE10} -C %{_builddir}/

%install
mkdir -p $RPM_BUILD_ROOT%{prefix}/web/html5/html5lib
mkdir -p $RPM_BUILD_ROOT%{html5lib_base}
for i in v2.14 v2.37 v2.37.1 v2.38.3 v2.42 v2.44 v2.45 v2.45.1 v2.46 %{version};do
rm -rf %{_builddir}/%{name}-$i/modules/Widevine
cp -r %{_builddir}/%{name}-$i $RPM_BUILD_ROOT%{prefix}/web/html5/html5lib/$i
cp %{SOURCE1} $RPM_BUILD_ROOT%{prefix}/web/html5/html5lib/$i/
ln -sf %{prefix}/app/configurations/html5.php $RPM_BUILD_ROOT%{prefix}/web/html5/html5lib/$i/LocalSettings.php
mkdir $RPM_BUILD_ROOT%{prefix}/web/html5/html5lib/$i/cache
if [ -r %{_builddir}/%{name}-$i/modules/KalturaSupport/UiConfResult.php ];then
sed -i '/^\s*"kAnalony"=>array(),\s*$/d' %{_builddir}/%{name}-$i/modules/KalturaSupport/UiConfResult.php
fi
cp -r %{_builddir}/%{name}-$i $RPM_BUILD_ROOT%{html5lib_base}/$i
cp %{SOURCE1} $RPM_BUILD_ROOT%{html5lib_base}/$i/
ln -sf %{prefix}/app/configurations/html5.php $RPM_BUILD_ROOT%{html5lib_base}/$i/LocalSettings.php
mkdir $RPM_BUILD_ROOT%{html5lib_base}/$i/cache
done

%clean
@@ -70,18 +74,22 @@ if [ "$1" = 2 ];then
echo 'update ui_conf set html5_url = "/html5/html5lib/%{version}/mwEmbedLoader.php" where html5_url like "%html5lib/v2.%mwEmbedLoader.php"'|mysql -h$DB1_HOST -u $SUPER_USER -p$SUPER_USER_PASSWD -P$DB1_PORT $DB1_NAME
fi
else
find %{prefix}/web/html5/html5lib -type d -name cache -exec chown -R 48 {} \;
find %{html5lib_base} -type d -name cache -exec chown -R 48 {} \;
fi

%postun

%files
%defattr(-, root, root, 0755)
%doc COPYING README.markdown
%{prefix}/web/html5/html5lib
%config %{prefix}/web/html5/html5lib/%{version}/LocalSettings.KalturaPlatform.php
%{html5lib_base}
%config %{html5lib_base}/%{version}/LocalSettings.KalturaPlatform.php

%changelog
* Mon Dec 24 2018 jess.portnoy@kaltura.com <Jess Portnoy> - v2.73.2-2
- Deploy onto /opt/kaltura/apps rather than to NFS for better performance
- Disable the kAnalony plugin

* Mon Dec 17 2018 jess.portnoy@kaltura.com <Jess Portnoy> - v2.73.2-1
- FEC-8755 - Player V2 - all test pages loaded muted, even when autoplay and automute = false
- Full screen is not working on chrome 71
@@ -2,7 +2,7 @@
Summary: Kaltura Open Source Video Platform
Name: kaltura-postinst
Version: 1.0.33
Release: 52
Release: 53
License: AGPLv3+
Group: Server/Platform
Source0: %{name}-%{version}.tar.gz
@@ -82,6 +82,9 @@ find %{_sysconfdir}/logrotate.d -type l -name "kaltura_*" -exec rm {} \;
%config %{prefix}/app/configurations/*

%changelog
* Mon Dec 24 2018 jess.portnoy@kaltura.com <Jess Portnoy> - 1.0.33-53
- html5lib is now deployed onto /opt/kaltura/apps rather than to NFS for better performance.

* Fri Aug 31 2018 jess.portnoy@kaltura.com <Jess Portnoy> - 1.0.33-52
- Correctly handle Apache SSL config in kaltura-batch-config.sh when running in interactive mode

@@ -280,7 +280,7 @@ fi
find $BASE_DIR/app/cache/ $BASE_DIR/log -type d -exec chmod 775 {} \;
find $BASE_DIR/app/cache/ $BASE_DIR/log -type f -exec chmod 664 {} \;
chown -R kaltura.apache $BASE_DIR/app/cache/ $BASE_DIR/log
find $BASE_DIR/web/html5/html5lib -type d -name cache -exec chown apache {} \;
find $BASE_DIR/apps/html5/html5lib -type d -name cache -exec chown apache {} \;
service httpd restart
chkconfig httpd on
chkconfig memcached on
@@ -294,7 +294,7 @@ Front in Kaltura represents the machines hosting the user-facing components, inc
```
# apt-get install kaltura-postinst
# /opt/kaltura/bin/kaltura-nfs-client-config.sh <NFS host> <domain> <nobody-user> <nobody-group>
# apt-get install kaltura-front kaltura-html5-studio kaltura-clipapp
# apt-get install kaltura-front kaltura-html5lib kaltura-html5-studio kaltura-kmcng kaltura-clipapp
# /opt/kaltura/bin/kaltura-front-config.sh
```
**NOTE: you can now configure the balancer to have the node in its pull.**
@@ -255,7 +255,7 @@ Front in Kaltura represents the machines hosting the user-facing components, inc
# rpm -Uhv http://installrepo.kaltura.org/releases/kaltura-release.noarch.rpm
# yum install kaltura-postinst
# /opt/kaltura/bin/kaltura-nfs-client-config.sh <NFS host> <domain> <nobody-user> <nobody-group>
# yum install kaltura-front kaltura-html5-studio kaltura-clipapp
# yum install kaltura-front kaltura-html5lib kaltura-html5-studio kaltura-kmcng kaltura-clipapp
# /opt/kaltura/bin/kaltura-front-config.sh
```
**NOTE: you can now configure the balancer to have the node in its pull.**

0 comments on commit 6c096af

Please sign in to comment.