From b251e59025d5c684c621502b4be1c90d843d59b0 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Fri, 20 Jan 2023 22:57:38 +0000 Subject: [PATCH] updates --- Dockerfile | 6 ++-- docker-compose.yaml | 10 +++++++ html/index.html | 23 +++++++++++++++ rtmp-adr.yaml | 69 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yaml create mode 100644 html/index.html create mode 100644 rtmp-adr.yaml diff --git a/Dockerfile b/Dockerfile index 8f85990..5f2000d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG DEBIAN_VERSION=stretch-slim ##### Building stage ##### FROM debian:${DEBIAN_VERSION} as builder -MAINTAINER Tareq Alqutami +MAINTAINER Adolfo Delorenzo # Versions of nginx, rtmp-module and ffmpeg ARG NGINX_VERSION=1.17.5 @@ -16,7 +16,7 @@ RUN apt-get update && \ openssl libssl-dev yasm \ libpcre3-dev librtmp-dev libtheora-dev \ libvorbis-dev libvpx-dev libfreetype6-dev \ - libmp3lame-dev libx264-dev libx265-dev && \ + libmp3lame-dev libx264-dev libx265-dev lighttpd && \ rm -rf /var/lib/apt/lists/* @@ -109,8 +109,10 @@ COPY conf/nginx.conf /etc/nginx/nginx.conf # Copy html players to container COPY players /usr/local/nginx/html/players +COPY html /var/www/html EXPOSE 1935 EXPOSE 8080 +EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..56b0e90 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +version: '3.3' +services: + adelorenzo: + ports: + - '1935:1935' + - '8080:8080' + - '80:80' + image: 'git.oe74.net/adelorenzo/rtmp-adr:0.3' + labels: + kompose.service.type: nodeport diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..15d95b4 --- /dev/null +++ b/html/index.html @@ -0,0 +1,23 @@ + + + + + HLS Live Streaming + + + + +

HLS Player

+ + + + + + + diff --git a/rtmp-adr.yaml b/rtmp-adr.yaml new file mode 100644 index 0000000..f02f6ee --- /dev/null +++ b/rtmp-adr.yaml @@ -0,0 +1,69 @@ +apiVersion: v1 +items: + - apiVersion: v1 + kind: Service + metadata: + annotations: + kompose.cmd: kompose convert -o rtmp-adr.yaml + kompose.service.type: nodeport + kompose.version: 1.27.0 (b0ed6a2c9) + creationTimestamp: null + labels: + io.kompose.service: adelorenzo + name: adelorenzo + spec: + ports: + - name: "1935" + port: 1935 + targetPort: 1935 + - name: "8080" + port: 8080 + targetPort: 8080 + - name: "80" + port: 80 + targetPort: 80 + selector: + io.kompose.service: adelorenzo + type: NodePort + status: + loadBalancer: {} + - apiVersion: apps/v1 + kind: Deployment + metadata: + annotations: + kompose.cmd: kompose convert -o rtmp-adr.yaml + kompose.service.type: nodeport + kompose.version: 1.27.0 (b0ed6a2c9) + creationTimestamp: null + labels: + io.kompose.service: adelorenzo + name: adelorenzo + spec: + replicas: 1 + selector: + matchLabels: + io.kompose.service: adelorenzo + strategy: {} + template: + metadata: + annotations: + kompose.cmd: kompose convert -o rtmp-adr.yaml + kompose.service.type: nodeport + kompose.version: 1.27.0 (b0ed6a2c9) + creationTimestamp: null + labels: + io.kompose.service: adelorenzo + spec: + containers: + - image: git.oe74.net/adelorenzo/rtmp-adr:0.3 + name: adelorenzo + ports: + - containerPort: 1935 + - containerPort: 8080 + - containerPort: 80 + resources: {} + restartPolicy: Always + status: {} +kind: List +metadata: {} +