move bbb-webrtc-sfu submodule

This commit is contained in:
chandi 2021-02-11 20:17:42 +01:00
parent ecce7fcdb3
commit d51f729e1a
5 changed files with 10 additions and 10 deletions

2
.gitmodules vendored
View File

@ -1,5 +1,5 @@
[submodule "bbb-webrtc-sfu"]
path = bbb-webrtc-sfu
path = mod/webrtc-sfu/bbb-webrtc-sfu
url = https://github.com/bigbluebutton/bbb-webrtc-sfu.git
[submodule "mod/etherpad/bbb-etherpad-skin"]
path = mod/etherpad/bbb-etherpad-skin

View File

@ -115,9 +115,7 @@ services:
- vol-kurento:/var/kurento
webrtc-sfu:
build:
context: ./bbb-webrtc-sfu
dockerfile: ../mod/webrtc-sfu/Dockerfile
build: mod/webrtc-sfu
restart: unless-stopped
depends_on:
- redis

View File

@ -3,7 +3,7 @@ FROM node:14-alpine
RUN apk add git \
&& adduser -D -u 2004 -g webrtc-sfu webrtc-sfu
ADD . app
ADD ./bbb-webrtc-sfu app
WORKDIR app
@ -19,11 +19,7 @@ RUN cp config/default.example.yml config/production.yml \
&& npm install --unsafe-perm \
&& npm cache clear --force
# remove automatic IP detection (broken in alpine)
# and use sh instead of bash
RUN sed -i 's/CONTAINER_IP=.*/CONTAINER_IP=10.7.7.10/' /app/docker-entrypoint.sh \
&& sed -i 's/bash/sh/' /app/docker-entrypoint.sh
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
USER webrtc-sfu
ENTRYPOINT [ "./docker-entrypoint.sh" ]

View File

@ -0,0 +1,6 @@
#!/bin/sh -e
sed -i "s|^\(localIpAddress\):.*|\1: \"10.7.7.10\"|g" config/production.yml
export KURENTO_IP="10.7.7.1"
exec "$@"