forked from extern/docker
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"]
|
[submodule "bbb-webrtc-sfu"]
|
||||||
path = bbb-webrtc-sfu
|
path = mod/webrtc-sfu/bbb-webrtc-sfu
|
||||||
url = https://github.com/bigbluebutton/bbb-webrtc-sfu.git
|
url = https://github.com/bigbluebutton/bbb-webrtc-sfu.git
|
||||||
[submodule "mod/etherpad/bbb-etherpad-skin"]
|
[submodule "mod/etherpad/bbb-etherpad-skin"]
|
||||||
path = mod/etherpad/bbb-etherpad-skin
|
path = mod/etherpad/bbb-etherpad-skin
|
||||||
|
@ -115,9 +115,7 @@ services:
|
|||||||
- vol-kurento:/var/kurento
|
- vol-kurento:/var/kurento
|
||||||
|
|
||||||
webrtc-sfu:
|
webrtc-sfu:
|
||||||
build:
|
build: mod/webrtc-sfu
|
||||||
context: ./bbb-webrtc-sfu
|
|
||||||
dockerfile: ../mod/webrtc-sfu/Dockerfile
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
@ -3,7 +3,7 @@ FROM node:14-alpine
|
|||||||
RUN apk add git \
|
RUN apk add git \
|
||||||
&& adduser -D -u 2004 -g webrtc-sfu webrtc-sfu
|
&& adduser -D -u 2004 -g webrtc-sfu webrtc-sfu
|
||||||
|
|
||||||
ADD . app
|
ADD ./bbb-webrtc-sfu app
|
||||||
|
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
|
|
||||||
@ -19,11 +19,7 @@ RUN cp config/default.example.yml config/production.yml \
|
|||||||
&& npm install --unsafe-perm \
|
&& npm install --unsafe-perm \
|
||||||
&& npm cache clear --force
|
&& npm cache clear --force
|
||||||
|
|
||||||
|
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
|
||||||
# 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
|
|
||||||
|
|
||||||
USER webrtc-sfu
|
USER webrtc-sfu
|
||||||
ENTRYPOINT [ "./docker-entrypoint.sh" ]
|
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