Skip to content

Commit

Permalink
Update the Dockerfile for MediaPush Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
muratugureminoglu committed Jul 3, 2024
1 parent c920d4f commit 837c9c9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker/Dockerfile_Process
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
#
# 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:
#
# 1. AntMediaServer: Specify the name of the Ant Media Server zip file to complete the installation.
# --build-arg AntMediaServer='ant-media-server.zip'
#
# 2. LicenseKey: Assign your license key to this variable to complete the installation without needing a zip file.
# --build-arg LicenseKey='your-license-key'
#
# 3. 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 +44,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

0 comments on commit 837c9c9

Please sign in to comment.