Rationalize container building

This commit is contained in:
Quentin 2020-09-12 11:27:32 +02:00
parent 5337be94df
commit 0c05730a5d
3 changed files with 13 additions and 9 deletions

View file

@ -4,9 +4,10 @@ ARG PREFIXV
ARG VERSION ARG VERSION
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y openjdk-11-jdk maven wget unzip && \ apt-get install -y openjdk-11-jdk maven wget unzip && \
wget https://github.com/jitsi/jicofo/archive/${PREFIXV}${VERSION}.zip -O jicofo.zip && \ wget https://github.com/jitsi/jicofo/archive/${PREFIXV}${VERSION}.zip -O jicofo.zip
unzip jicofo.zip && \
mv jicofo-jitsi-meet_${VERSION} jicofo && \ RUN unzip jicofo.zip && \
mv jicofo-jitsi-meet_*${VERSION} jicofo && \
cd jicofo && \ cd jicofo && \
mvn package -DskipTests -Dassembly.skipAssembly=false && \ mvn package -DskipTests -Dassembly.skipAssembly=false && \
unzip target/jicofo-1.1-SNAPSHOT-archive.zip && \ unzip target/jicofo-1.1-SNAPSHOT-archive.zip && \

View file

@ -2,11 +2,13 @@ FROM debian:buster AS builder
ARG PREFIXV ARG PREFIXV
ARG VERSION ARG VERSION
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y npm git nodejs make wget unzip && \ apt-get install -y npm git nodejs make wget unzip && \
wget https://github.com/jitsi/jitsi-meet/archive/${PREFIXV}${VERSION}.zip -O jitsi-meet.zip && \ wget https://github.com/jitsi/jitsi-meet/archive/${PREFIXV}${VERSION}.zip -O jitsi-meet.zip
unzip jitsi-meet.zip && \
mv jitsi-meet-${VERSION} jitsi-meet && \ RUN unzip jitsi-meet.zip && \
mv jitsi-meet-*${VERSION} jitsi-meet && \
cd jitsi-meet && \ cd jitsi-meet && \
npm install && \ npm install && \
make make

View file

@ -5,9 +5,10 @@ ARG VERSION
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y wget unzip maven openjdk-11-jdk && \ apt-get install -y wget unzip maven openjdk-11-jdk && \
wget https://github.com/jitsi/jitsi-videobridge/archive/${PREFIXV}${VERSION}.zip -O jvb.zip && \ wget https://github.com/jitsi/jitsi-videobridge/archive/${PREFIXV}${VERSION}.zip -O jvb.zip
unzip jvb.zip && \
mv jitsi-videobridge-stable-jitsi-meet_${VERSION} jvb && \ RUN unzip jvb.zip && \
mv jitsi-videobridge-*${VERSION} jvb && \
cd jvb && \ cd jvb && \
mvn package -DskipTests && \ mvn package -DskipTests && \
unzip target/jitsi-videobridge-*.zip && \ unzip target/jitsi-videobridge-*.zip && \