2022-04-03 23:18:15 +02:00
|
|
|
ARG BBB_BUILD_TAG
|
|
|
|
FROM gitlab.senfcall.de:5050/senfcall-public/docker-bbb-build:$BBB_BUILD_TAG AS builder
|
2020-10-28 16:11:21 +01:00
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
ARG TAG_COMMON_MESSAGE
|
2020-10-28 16:11:21 +01:00
|
|
|
|
|
|
|
# download bbb-common-message
|
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG_COMMON_MESSAGE/bbb-common-message /bbb-common-message \
|
2022-04-03 23:18:15 +02:00
|
|
|
&& cd /bbb-common-message \
|
|
|
|
&& ./deploy.sh \
|
|
|
|
&& rm -rf /bbb-common-message
|
2020-10-28 16:11:21 +01:00
|
|
|
|
|
|
|
# ===================================================
|
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
ARG TAG_BBB_WEB
|
2020-10-28 16:11:21 +01:00
|
|
|
|
|
|
|
# download bbb-common-web
|
2022-04-03 23:18:15 +02:00
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG_BBB_WEB/bbb-common-web /bbb-common-web \
|
2020-10-28 16:11:21 +01:00
|
|
|
&& rm -rf /bbb-common-message/.svn
|
|
|
|
|
|
|
|
# compile bbb-common-web
|
|
|
|
RUN cd /bbb-common-web \
|
|
|
|
&& ./deploy.sh
|
|
|
|
|
|
|
|
# download bbb-web
|
2022-04-03 23:18:15 +02:00
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG_BBB_WEB/bigbluebutton-web /bbb-web \
|
2020-10-28 16:11:21 +01:00
|
|
|
&& rm -rf /bbb-web/.svn
|
|
|
|
|
|
|
|
# compile bbb-web
|
|
|
|
RUN cd /bbb-web && grails assemble
|
|
|
|
|
|
|
|
# compile pres-checker
|
|
|
|
RUN cd /bbb-web/pres-checker && gradle resolveDeps
|
|
|
|
|
2020-10-29 17:37:51 +01:00
|
|
|
# extract .war
|
|
|
|
RUN unzip -q /bbb-web/build/libs/bigbluebutton-0.10.0.war -d /dist
|
2020-10-28 16:11:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
# ===================================================
|
2022-04-03 23:18:15 +02:00
|
|
|
FROM bbb-docker-base-java
|
2020-10-28 16:11:21 +01:00
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
COPY --from=bbb-docker-base-java /usr/local/bin/dockerize /usr/local/bin/dockerize
|
2020-10-28 16:11:21 +01:00
|
|
|
|
|
|
|
# add blank presentation files and allow conversation to pdf/svg
|
|
|
|
RUN mkdir -p /usr/share/bigbluebutton/blank \
|
|
|
|
&& cd /usr/share/bigbluebutton/blank \
|
|
|
|
&& wget \
|
2021-12-21 14:23:59 +01:00
|
|
|
https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/v2.4.0/bigbluebutton-config/slides/blank-svg.svg \
|
|
|
|
https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/v2.4.0/bigbluebutton-config/slides/blank-thumb.png \
|
|
|
|
https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/v2.4.0/bigbluebutton-config/slides/blank-presentation.pdf \
|
|
|
|
https://raw.githubusercontent.com/bigbluebutton/bigbluebutton/v2.4.0/bigbluebutton-config/slides/blank-png.png \
|
2022-01-27 22:23:55 +01:00
|
|
|
&& sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="write" pattern="PDF" \/>/g' /etc/ImageMagick-6/policy.xml \
|
|
|
|
&& sed -i '/potrace/d' /etc/ImageMagick-6/delegates.xml
|
|
|
|
|
2020-10-28 16:11:21 +01:00
|
|
|
|
2020-10-29 17:37:51 +01:00
|
|
|
# get bbb-web
|
|
|
|
COPY --from=builder /dist /usr/share/bbb-web
|
2020-10-28 16:11:21 +01:00
|
|
|
|
|
|
|
# get pres-checker
|
|
|
|
COPY --from=builder /bbb-web/pres-checker/lib /usr/share/prescheck/lib
|
|
|
|
COPY --from=builder /bbb-web/pres-checker/run.sh /usr/share/prescheck/prescheck.sh
|
|
|
|
|
2020-12-23 23:58:24 +01:00
|
|
|
COPY mocked-ps /usr/bin/ps
|
|
|
|
|
2020-10-28 16:11:21 +01:00
|
|
|
# add entrypoint and templates
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2021-04-02 18:34:55 +02:00
|
|
|
COPY bbb-web.properties /etc/bigbluebutton/bbb-web.properties.tmpl
|
2020-10-28 16:11:21 +01:00
|
|
|
COPY turn-stun-servers.xml /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml.tmpl
|
|
|
|
COPY logback.xml /usr/share/bbb-web/WEB-INF/classes/logback.xml
|
2021-04-02 18:23:05 +02:00
|
|
|
COPY office-convert.sh /usr/share/bbb-libreoffice-conversion/convert.sh
|
2020-10-28 16:11:21 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|