openvidu-test-e2e: single container openvidu/openvidu-test-e2e:focal

pull/658/head
pabloFuente 2021-10-29 13:49:34 +02:00
parent cacb7d8685
commit 658c1d5775
4 changed files with 2 additions and 73 deletions

View File

@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:20.04
LABEL maintainer="info@openvidu.io"
@ -8,13 +8,6 @@ RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y software-properties-common && apt-get install -y --no-install-recommends apt-utils
# Install Kurento Media Server (KMS)
RUN echo "deb [arch=amd64] http://ubuntu.openvidu.io/6.16.0 bionic kms6" | tee /etc/apt/sources.list.d/kurento.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83 \
&& apt-get update \
&& apt-get -y install kurento-media-server
RUN sed -i "s/DAEMON_USER=\"kurento\"/DAEMON_USER=\"root\"/g" /etc/default/kurento-media-server
# Install Node
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
@ -35,8 +28,6 @@ RUN npm install -g http-server@latest
RUN apt-get -y install sudo
# ffmpeg (for ffprobe)
RUN add-apt-repository ppa:jonathonf/ffmpeg-4
RUN apt-get update
RUN apt-get install -y ffmpeg
# docker

View File

@ -1 +1 @@
docker build --rm --pull --no-cache -t openvidu/openvidu-test-e2e:bionic -f bionic/Dockerfile .
docker build --rm --pull --no-cache -t openvidu/openvidu-test-e2e:focal -f Dockerfile .

View File

@ -1 +0,0 @@
docker build --rm --pull --no-cache -t openvidu/openvidu-test-e2e:xenial -f xenial/Dockerfile .

View File

@ -1,61 +0,0 @@
FROM ubuntu:16.04
LABEL maintainer="info@openvidu.io"
USER root
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y software-properties-common && apt-get install -y --no-install-recommends apt-utils
# Install Kurento Media Server (KMS)
RUN echo "deb [arch=amd64] http://ubuntu.openvidu.io/6.16.0 xenial kms6" | tee /etc/apt/sources.list.d/kurento.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83 \
&& apt-get update \
&& apt-get -y install kurento-media-server
RUN sed -i "s/DAEMON_USER=\"kurento\"/DAEMON_USER=\"root\"/g" /etc/default/kurento-media-server
# Install Node
RUN apt-get update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
# git
RUN apt-get install -y git
# http-server
RUN npm install -g http-server@latest
# sudo
RUN apt-get -y install sudo
# ffmpeg (for ffprobe)
RUN add-apt-repository ppa:jonathonf/ffmpeg-4
RUN apt-get update
RUN apt-get install -y ffmpeg
# docker
RUN apt-get update && apt-get -y install docker.io
# Java 11
RUN add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
apt-get install -y openjdk-11-jdk-headless
# This is a fix: JDK 11 in Ubuntu 16.04 misses Java certs
RUN wget https://download.java.net/openjdk/jdk8u41/ri/openjdk-8u41-b04-linux-x64-14_jan_2020.tar.gz -P /tmp/jdk8
RUN tar -zxvf /tmp/jdk8/openjdk-*.tar.gz -C /tmp/jdk8 --strip-components=1 && \
cp /tmp/jdk8/jre/lib/security/cacerts /etc/ssl/certs/java && \
update-ca-certificates -f && \
rm -rf /tmp/jdk8
# Maven
RUN apt-get install -y maven
# Cleanup
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get autoremove --purge -y && apt-get autoclean
COPY entrypoint.sh /entrypoint.sh
RUN ["chmod", "+x", "/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]