Merge pull request #13451 from schrd/bbb-webrtc-package-size

Update bbb-webrtc-sfu packaging to include mediasoup
This commit is contained in:
Anton Georgiev 2021-10-14 09:24:21 -04:00 committed by GitHub
commit 164258274b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 3 deletions

View File

@ -1 +1 @@
git clone --branch v2.5.2 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu
git clone --branch v2.6.0-beta.5 --depth 1 https://github.com/bigbluebutton/bbb-webrtc-sfu bbb-webrtc-sfu

View File

@ -35,8 +35,8 @@ case "$1" in
# there's a problem rebuilding bufferutil
# do not abort in case npm rebuild return something different than 0
npm config set unsafe-perm true
npm rebuild || true
#npm config set unsafe-perm true
#npm rebuild || true
mkdir -p /var/log/bbb-webrtc-sfu/
touch /var/log/bbb-webrtc-sfu/bbb-webrtc-sfu.log

View File

@ -15,6 +15,9 @@ case "$1" in
if [ -f /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml ]; then
cp /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml /tmp/bbb-webrtc-sfu-default.yml
fi
# there might be remaining files from older BBB versions
# BBB 2.3 and earlier did an npm rebuild in the after-install script.
rm -rf /usr/local/bigbluebutton/bbb-webrtc-sfu/node_modules
;;
abort-upgrade)

View File

@ -40,6 +40,14 @@ else
npm install --unsafe-perm --production
fi
# clean out stuff that is not required in the final package
rm -rf node_modules/mediasoup/{rust,.github,test}
rm -rf node_modules/mediasoup/worker/{deps,src,test,include,fuzzer}
rm -rf node_modules/mediasoup/worker/out/Release/*.a
rm -rf node_modules/mediasoup/worker/out/Release/.deps
rm -rf node_modules/mediasoup/worker/out/Release/obj.target
rm -rf node_modules/mediasoup/worker/out/deps
popd
cp webrtc-sfu.nginx staging/etc/bigbluebutton/nginx