apps-akka: add build steps instead of depending indirect on the ubuntu repository

This commit is contained in:
chandi 2020-10-29 15:56:27 +01:00
parent f7f35d75cd
commit f689120d28
2 changed files with 48 additions and 12 deletions

View File

@ -1,6 +1,33 @@
FROM openjdk:8u252-jdk-slim-buster
FROM mozilla/sbt:8u181_1.2.7 AS builder
RUN apt update && apt-get install -y subversion wget gosu
RUN apt-get update && apt-get install -y subversion
# download bbb-common-message
ENV TAG_COMMON_MESSAGE v2.3-alpha-2
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
# ===================================================
ENV TAG v2.3-alpha-2
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
# install dockerize
ENV DOCKERIZE_VERSION v0.6.1
@ -8,19 +35,12 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
ENV TAG v2.3-alpha-2
RUN cd / \
&& svn checkout https://github.com/alangecker/bbb-packages/tags/$TAG/bbb-apps-akka/data/usr/share/bbb-apps-akka \
&& rm -r /bbb-apps-akka/.svn
RUN groupadd -g 998 bigbluebutton \
&& useradd -m -u 998 -g bigbluebutton bigbluebutton \
&& rm /bbb-apps-akka/logs \
&& mkdir /bbb-apps-akka/logs \
&& ln -s /dev/null /bbb-apps-akka/logs/bbb-apps-akka.log
&& useradd -m -u 998 -g bigbluebutton bigbluebutton
COPY --from=builder /bbb-apps-akka-0.0.4 /bbb-apps-akka
COPY application.conf /bbb-apps-akka/conf/application.conf.tmpl
COPY logback.xml /bbb-apps-akka/conf/logback.xml
WORKDIR /bbb-apps-akka
CMD dockerize \

16
mod/apps-akka/logback.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%d{"yyyy-MM-dd'T'HH:mm:ss.SSSXXX"} %-5level %logger{35} - %msg%n</Pattern>
</layout>
</appender>
<logger name="akka" level="INFO" />
<logger name="org.bigbluebutton" level="DEBUG" />
<logger name="io.lettuce" level="INFO" />
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
</root>
</configuration>