mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-21 23:53:11 +01:00
move bbb-webrtc-sfu submodule
This commit is contained in:
parent
ecce7fcdb3
commit
d51f729e1a
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -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
|
||||
|
@ -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
|
||||
|
@ -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" ]
|
||||
|
6
mod/webrtc-sfu/docker-entrypoint.sh
Executable file
6
mod/webrtc-sfu/docker-entrypoint.sh
Executable 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 "$@"
|
Loading…
Reference in New Issue
Block a user