From cb69a1123cc36c792cb0993ae46c3700a7391a62 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 1 Feb 2021 07:48:50 +0100 Subject: Stabilize build scripts --- app/jitsi/build/jitsi-videobridge/Dockerfile | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'app/jitsi/build/jitsi-videobridge/Dockerfile') diff --git a/app/jitsi/build/jitsi-videobridge/Dockerfile b/app/jitsi/build/jitsi-videobridge/Dockerfile index 4a3d504..2a32946 100644 --- a/app/jitsi/build/jitsi-videobridge/Dockerfile +++ b/app/jitsi/build/jitsi-videobridge/Dockerfile @@ -1,19 +1,16 @@ FROM debian:buster AS builder -ARG PREFIXV -ARG VERSION - RUN apt-get update && \ - apt-get install -y wget unzip maven openjdk-11-jdk-headless + apt-get install -y git unzip maven openjdk-11-jdk-headless -RUN wget https://github.com/jitsi/jitsi-videobridge/archive/${PREFIXV}${VERSION}.zip -O jvb.zip +ARG JVB_TAG +RUN git clone --depth 1 --branch ${JVB_TAG} https://github.com/jitsi/jitsi-videobridge -RUN unzip jvb.zip && \ - mv jitsi-videobridge*${VERSION} jvb && \ - cd jvb && \ - mvn package -DskipTests && \ - ls jvb/target && \ - unzip jvb/target/jitsi-videobridge*.zip && \ +WORKDIR jitsi-videobridge +COPY *.patch . +RUN git apply 0001-Disable-legacy-parameters.patch +RUN mvn package -DskipTests +RUN unzip jvb/target/jitsi-videobridge*.zip && \ mv jitsi-videobridge-*-SNAPSHOT build FROM debian:buster @@ -21,7 +18,7 @@ FROM debian:buster RUN apt-get update && \ apt-get install -y openjdk-11-jre-headless curl -COPY --from=builder /jvb/build /usr/share/jvb +COPY --from=builder /jitsi-videobridge/build /usr/share/jvb COPY jvb_run /usr/local/bin/jvb_run CMD ["/usr/local/bin/jvb_run"] -- cgit v1.2.3