Merge pull request #13451 from schrd/bbb-webrtc-package-size
Update bbb-webrtc-sfu packaging to include mediasoup
This commit is contained in:
commit
164258274b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user