Dockerfiles updated to Ubuntu 18.04 and Java 11 (openvidu-server, openvidu-server-pro, openvidu-server-kms)

pull/559/head
pabloFuente 2020-11-16 15:06:53 +01:00
parent 26cc938756
commit e5a8a172e6
5 changed files with 33 additions and 23 deletions

View File

@ -1,18 +1,23 @@
FROM ubuntu:16.04
MAINTAINER openvidu@gmail.com
FROM ubuntu:18.04
MAINTAINER info@openvidu.io
# Update and install dependencies
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y gnupg2 && \
rm -rf /var/lib/apt/lists/*
# Install Kurento Media Server (KMS)
RUN echo "deb [arch=amd64] http://ubuntu.openvidu.io/6.15.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 \
&& rm -rf /var/lib/apt/lists/*
RUN echo "deb [arch=amd64] http://ubuntu.openvidu.io/6.15.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 && \
rm -rf /var/lib/apt/lists/*
# Install Java, supervisor and netstat
RUN apt-get update && apt-get install -y \
openjdk-8-jre \
supervisor \
&& rm -rf /var/lib/apt/lists/*
openjdk-11-jre \
supervisor && \
rm -rf /var/lib/apt/lists/*
# Configure supervisor
RUN mkdir -p /var/log/supervisor
@ -24,6 +29,10 @@ COPY openvidu-server.jar openvidu-server.jar
# Copy KMS entrypoint
COPY kms.sh /kms.sh
# Cleanup
RUN rm -rf /var/lib/apt/lists/* && \
apt-get autoremove --purge -y && apt-get autoclean
EXPOSE 8888
EXPOSE 9091
EXPOSE 4443

View File

@ -1,5 +1,8 @@
cp ../../target/openvidu-server-"$1".jar ./openvidu-server.jar
docker build -t openvidu/openvidu-server-kms .
rm ./openvidu-server.jar
VERSION=$1
if [[ ! -z $VERSION ]]; then
cp ../../target/openvidu-server-*.jar ./openvidu-server.jar
docker build -t openvidu/openvidu-server-kms:$VERSION .
rm ./openvidu-server.jar
else
echo "Error: You need to specify a version as first argument"
fi

View File

@ -1,11 +1,11 @@
FROM ubuntu:16.04
MAINTAINER openvidu@gmail.com
FROM ubuntu:18.04
MAINTAINER info@openvidu.io
# Install main components
RUN apt-get update && apt-get install -y \
curl \
wget \
openjdk-8-jre \
openjdk-11-jre \
coturn \
redis-tools \
jq \

View File

@ -1,9 +1,7 @@
VERSION=$1
if [[ ! -z $VERSION ]]; then
cp ../utils/discover_my_public_ip.sh ./discover_my_public_ip.sh
docker build -t openvidu/openvidu-server-pro:$VERSION .
rm ./discover_my_public_ip.sh
else
echo "Error: You need to specify a version as first argument"

View File

@ -1,11 +1,11 @@
FROM ubuntu:16.04
MAINTAINER openvidu@gmail.com
FROM ubuntu:18.04
MAINTAINER info@openvidu.io
# Install Java, supervisor and netstat
RUN apt-get update && apt-get install -y \
curl \
wget \
openjdk-8-jre \
openjdk-11-jre \
coturn \
redis-tools \
dnsutils \