Fix BBB 2.2 docker

This commit is contained in:
Tiago Jacobs 2020-04-08 01:36:27 -03:00
parent 9c43df9565
commit f83bb3f561
4 changed files with 36 additions and 43 deletions

View File

@ -59,6 +59,13 @@ RUN mkdir /opt/docker-bbb/
RUN wget https://raw.githubusercontent.com/bigbluebutton/bbb-install/master/bbb-install.sh -O- | sed 's|https://\$PACKAGE_REPOSITORY|http://\$PACKAGE_REPOSITORY|g' > /opt/docker-bbb/bbb-install.sh RUN wget https://raw.githubusercontent.com/bigbluebutton/bbb-install/master/bbb-install.sh -O- | sed 's|https://\$PACKAGE_REPOSITORY|http://\$PACKAGE_REPOSITORY|g' > /opt/docker-bbb/bbb-install.sh
RUN chmod 755 /opt/docker-bbb/bbb-install.sh RUN chmod 755 /opt/docker-bbb/bbb-install.sh
ADD setup.sh /opt/docker-bbb/setup.sh ADD setup.sh /opt/docker-bbb/setup.sh
RUN useradd bbb --uid 1000 -s /bin/bash
RUN mkdir /home/bbb
RUN chown bbb /home/bbb
RUN sh -c 'echo "bbb ALL=(ALL:ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/bbb'
RUN sh -c 'echo "bbb:bbb" | chpasswd'
ADD rc.local /etc/ ADD rc.local /etc/
RUN chmod 755 /etc/rc.local RUN chmod 755 /etc/rc.local

View File

@ -4,7 +4,7 @@ networks:
backend: backend:
services: services:
bbb: bbb22:
build: . build: .
privileged: true privileged: true
environment: environment:
@ -18,7 +18,7 @@ services:
tmpfs: tmpfs:
- /run - /run
- /run/lock - /run/lock
- /tmp - /tmp:exec,mode=777
volumes: volumes:
- ./certs/:/local/certs/ - ./certs/:/local/certs/
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
@ -28,26 +28,26 @@ services:
networks: networks:
- backend - backend
mac_proxy: # mac_proxy:
build: mac-vpn/ # build: mac-vpn/
ports: # ports:
- "127.0.0.1:13194:13194" # - "127.0.0.1:13194:13194"
command: TCP-LISTEN:13194,fork TCP:172.17.0.1:1194 # command: TCP-LISTEN:13194,fork TCP:172.17.0.1:1194
restart: always # restart: always
networks: # networks:
- backend # - backend
mac_openvpn: # mac_openvpn:
image: kylemanna/openvpn # image: kylemanna/openvpn
volumes: # volumes:
- ./mac-vpn:/local # - ./mac-vpn:/local
- ./mac-vpn/config:/etc/openvpn # - ./mac-vpn/config:/etc/openvpn
network_mode: host # network_mode: host
privileged: true # privileged: true
cap_add: # cap_add:
- NET_ADMIN # - NET_ADMIN
environment: # environment:
dest: docker-for-mac.ovpn # dest: docker-for-mac.ovpn
DEBUG: '1' # DEBUG: '1'
command: /local/helpers/run-vpn.sh # command: /local/helpers/run-vpn.sh
restart: always # restart: always

View File

@ -1,4 +1,3 @@
#!/bin/sh #!/bin/sh
/bin/mount -o remount,exec /tmp /usr/bin/bbb-conf --restart
[ ! -f /opt/docker-bbb/setup-executed ] && /opt/docker-bbb/setup.sh

View File

@ -21,32 +21,19 @@ set -x
cd "$(dirname "$0")" cd "$(dirname "$0")"
useradd bbb --uid 1099 -s /bin/bash
mkdir /home/bbb
chown bbb /home/bbb
echo "bbb ALL=(ALL:ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/bbb
echo "bbb:bbb" | chpasswd
# Allow to have executable files in /tmp/ folder (tomcat JNA)
mount /tmp -o remount,exec
./bbb-install.sh -d -s "`hostname -f`" -v xenial-220 -a ./bbb-install.sh -d -s "`hostname -f`" -v xenial-220 -a
sed -i 's/::/0.0.0.0/g' /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml sed -i 's/::/0.0.0.0/g' /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml
# Repository is broken (remove it later)
cd /usr/local/bigbluebutton/bbb-webrtc-sfu/
npm install --unsafe-perm
# Restart # Restart
bbb-conf --restart bbb-conf --restart
# Disable auto start
find /etc/systemd/ | grep wants | xargs -r -n 1 basename | grep service | grep -v networking | grep -v tty | xargs -r -n 1 -I __ systemctl disable __
systemctl disable tomcat7
# Update files # Update files
updatedb updatedb
# Tell system to not run this script again
touch /opt/docker-bbb/setup-executed
echo "BBB configuration completed."; echo "BBB configuration completed.";
exit 0; exit 0;