2020-10-29 15:56:27 +01:00
|
|
|
FROM mozilla/sbt:8u181_1.2.7 AS builder
|
2020-10-27 19:55:43 +01:00
|
|
|
|
2020-10-29 15:56:27 +01:00
|
|
|
RUN apt-get update && apt-get install -y subversion
|
|
|
|
|
|
|
|
# download bbb-common-message
|
2021-04-30 20:20:40 +02:00
|
|
|
ENV TAG_COMMON_MESSAGE v2.3.0
|
2020-10-29 15:56:27 +01:00
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG_COMMON_MESSAGE/bbb-common-message /bbb-common-message \
|
|
|
|
&& rm -rf /bbb-common-message/.svn
|
|
|
|
|
|
|
|
# compile bbb-common-message
|
|
|
|
RUN cd /bbb-common-message \
|
|
|
|
&& ./deploy.sh
|
|
|
|
|
|
|
|
|
|
|
|
# ===================================================
|
|
|
|
|
2021-04-30 20:20:40 +02:00
|
|
|
ENV TAG v2.3.0
|
2020-10-29 15:56:27 +01:00
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG/akka-bbb-apps /source \
|
|
|
|
&& rm -rf /source/.svn
|
|
|
|
|
|
|
|
# compile and unzip bin
|
|
|
|
RUN cd /source \
|
|
|
|
&& sbt universal:packageBin \
|
|
|
|
&& unzip /source/target/universal/bbb-apps-akka-0.0.4.zip -d /
|
|
|
|
|
|
|
|
# ===================================================
|
|
|
|
|
|
|
|
FROM openjdk:8-jre-slim-buster
|
|
|
|
|
|
|
|
RUN apt update && apt-get install -y wget gosu
|
2020-10-27 19:55:43 +01:00
|
|
|
|
|
|
|
# install dockerize
|
|
|
|
ENV DOCKERIZE_VERSION v0.6.1
|
|
|
|
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
|
|
|
|
|
|
|
RUN groupadd -g 998 bigbluebutton \
|
2020-10-29 15:56:27 +01:00
|
|
|
&& useradd -m -u 998 -g bigbluebutton bigbluebutton
|
2020-10-27 19:55:43 +01:00
|
|
|
|
2020-10-29 15:56:27 +01:00
|
|
|
COPY --from=builder /bbb-apps-akka-0.0.4 /bbb-apps-akka
|
2021-03-27 18:48:05 +01:00
|
|
|
COPY bbb-apps-akka.conf /etc/bigbluebutton/bbb-apps-akka.conf.tmpl
|
2020-10-29 15:56:27 +01:00
|
|
|
COPY logback.xml /bbb-apps-akka/conf/logback.xml
|
2020-10-27 19:55:43 +01:00
|
|
|
|
|
|
|
WORKDIR /bbb-apps-akka
|
|
|
|
CMD dockerize \
|
2021-03-27 18:48:05 +01:00
|
|
|
-template /etc/bigbluebutton/bbb-apps-akka.conf.tmpl:/etc/bigbluebutton/bbb-apps-akka.conf \
|
2020-10-27 19:55:43 +01:00
|
|
|
gosu bigbluebutton /bbb-apps-akka/bin/bbb-apps-akka
|