Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Dockerfile for MediaPush Plugin #306

Merged
merged 6 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/install-dockerfile-and-check-ssl.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Docker Build and Test

on: [push]
on:
# [push]
workflow_dispatch:
schedule:
- cron: '0 0 */5 * *'

jobs:
build:
Expand Down
23 changes: 23 additions & 0 deletions docker/Dockerfile_Process
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
#
# This docker file can be used in kubernetes.
# It accepts all cluster related parameters at run time.
# It means it's very easy to add new containers to the cluster
#
# Usage:
#
# * AntMediaServer: Specify the name of the Ant Media Server zip file to install that specify Ant Media Server version to the docker image
# --build-arg AntMediaServer='ant-media-server.zip'
#
# * LicenseKey: Set your license key to this variable to install the latest Ant Media Server automatically to the docker image without needing a zip file. If you use this LicenseKey variable, don't specify AntMediaServer variable (# --build-arg AntMediaServer='ant-media-server.zip'
)
# --build-arg LicenseKey='your-license-key'
#
# * InstallMediaPush: Set this variable to 'true' to enable headless Chrome on the server for recording and streaming web pages back to Ant Media Server.
# --build-arg InstallMediaPush='true'
#

FROM ubuntu:22.04

ARG AntMediaServer
ARG LicenseKey
ARG InstallMediaPush

ARG BranchName=master

Expand All @@ -30,6 +45,14 @@ RUN cd /home \
exit 1; \
fi

RUN if [ "true" = "$InstallMediaPush" ]; then \
echo "test"; \
echo "#!/bin/bash\n\$@" > /usr/bin/sudo; \
chmod +x /usr/bin/sudo; \
wget -O install_media-push-plugin.sh https://raw.githubusercontent.com/ant-media/Plugins/master/MediaPushPlugin/src/main/script/install_media-push-plugin.sh; \
bash ./install_media-push-plugin.sh; \
fi

#
# Options:
#
Expand Down
Loading