From e29014acc2f92566d37f6b8c637c0c7d2fd6f6cc Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:22:47 +0300 Subject: [PATCH 01/19] Add worflow for ssl (docker) --- .../install-dockerfile-and-check-ssl.yml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/install-dockerfile-and-check-ssl.yml diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml new file mode 100644 index 00000000..e00e3274 --- /dev/null +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -0,0 +1,58 @@ +name: Docker Build and Test + +on: + workflow_dispatch: + inputs: + branch_name: + description: 'build branch name' + required: true + default: 'master' + +jobs: + build: + runs-on: self-hosted + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: stop the AMS service + run: sudo systemctl stop antmedia + + - name: Run Docker service + run: sudo systemctl restart docker + + - name: Build Docker image + run: docker build -f docker/Dockerfile_Process --network=host -t antmediaserver --build-arg LicenseKey="${{ secrets.ENTERPRISE_LICENSE }}" . + + - name: Run Docker container + run: docker run -d --name antmedia --network=host -it antmediaserver + + - name: Clone branch + run: | + git clone --depth=1 -b ${{ inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git + + - name: Copy enable_ssl.sh from cloned branch to container + run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh + + - name: Run enable_ssl.sh inside container + run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh + + - name: Verify container is running + run: | + sleep 20 + docker ps -f name=antmedia + if [ $(docker ps -f name=antmedia --format '{{.Names}}') != "antmedia" ]; then + echo "Container is not running" + exit 1 + fi + + - name: Test application + run: | + docker exec antmedia curl -f https://${{ secrets.CI_SSL_TEST_DOMAIN }}:5443 + - name: Stop and remove container + if: ${{ always() }} + run: | + docker stop antmedia + docker rm antmedia + sudo systemctl start antmedia From 7f87177f5a57ff92351338e994f168cc6ee12e1f Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:26:09 +0300 Subject: [PATCH 02/19] Update install-dockerfile-and-check-ssl.yml --- .github/workflows/install-dockerfile-and-check-ssl.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index e00e3274..b45d9450 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -6,7 +6,6 @@ on: branch_name: description: 'build branch name' required: true - default: 'master' jobs: build: From 0adbde7775607f2e0f9d2468c791d49ab1aa188c Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:28:22 +0300 Subject: [PATCH 03/19] Add Branch name --- .github/workflows/install-dockerfile-and-check-ssl.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index b45d9450..d16ebbb9 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -15,6 +15,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Show current branch + run: echo "Current branch is ${{ github.event.inputs.branch_name }}" + - name: stop the AMS service run: sudo systemctl stop antmedia @@ -29,7 +32,7 @@ jobs: - name: Clone branch run: | - git clone --depth=1 -b ${{ inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git + git clone --depth=1 -b ${{ github.event.inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git - name: Copy enable_ssl.sh from cloned branch to container run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh From b9a63b39245a63588ba2396b0a1019187beb1aef Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:30:27 +0300 Subject: [PATCH 04/19] Update install-dockerfile-and-check-ssl.yml --- .github/workflows/install-dockerfile-and-check-ssl.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index d16ebbb9..edbef5c4 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -1,11 +1,6 @@ name: Docker Build and Test -on: - workflow_dispatch: - inputs: - branch_name: - description: 'build branch name' - required: true +on: [push] jobs: build: From 7a62e9847fca6dd896dbfd37f82a664fca422e15 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:40:26 +0300 Subject: [PATCH 05/19] Update install-dockerfile-and-check-ssl.yml --- .../install-dockerfile-and-check-ssl.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index edbef5c4..252353b8 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -25,12 +25,15 @@ jobs: - name: Run Docker container run: docker run -d --name antmedia --network=host -it antmediaserver - - name: Clone branch - run: | - git clone --depth=1 -b ${{ github.event.inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git - - - name: Copy enable_ssl.sh from cloned branch to container - run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh +# - name: Clone branch +# run: | +# git clone --depth=1 -b ${{ github.event.inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git + + - name: Download enable_ssl.sh inside container + run: docker exec antmedia wget -O /usr/local/antmedia/enable_ssl.sh https://raw.githubusercontent.com/ant-media/Ant-Media-Server/21b57c461ba8eae496b830e779d2c628f25aecce/src/main/server/enable_ssl.sh + +# - name: Copy enable_ssl.sh from cloned branch to container +# run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh - name: Run enable_ssl.sh inside container run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh From aed15ba08948266328e85618e3ecc01c6a075875 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:44:10 +0300 Subject: [PATCH 06/19] Update install-dockerfile-and-check-ssl.yml --- .github/workflows/install-dockerfile-and-check-ssl.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index 252353b8..a1f95ef6 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -36,7 +36,7 @@ jobs: # run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh - name: Run enable_ssl.sh inside container - run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh + run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh -d ${{ secrets.CI_SSL_TEST_DOMAIN }} - name: Verify container is running run: | @@ -53,6 +53,7 @@ jobs: - name: Stop and remove container if: ${{ always() }} run: | - docker stop antmedia - docker rm antmedia - sudo systemctl start antmedia + echo "test" +# docker stop antmedia +# docker rm antmedia +# sudo systemctl start antmedia From 98b269bf469a866a8d0ca0fa3f00b7ffa2330e78 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:47:41 +0300 Subject: [PATCH 07/19] Add restart parameter --- .github/workflows/install-dockerfile-and-check-ssl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index a1f95ef6..676068c2 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -20,7 +20,7 @@ jobs: run: sudo systemctl restart docker - name: Build Docker image - run: docker build -f docker/Dockerfile_Process --network=host -t antmediaserver --build-arg LicenseKey="${{ secrets.ENTERPRISE_LICENSE }}" . + run: docker build --restart=always -f docker/Dockerfile_Process --network=host -t antmediaserver --build-arg LicenseKey="${{ secrets.ENTERPRISE_LICENSE }}" . - name: Run Docker container run: docker run -d --name antmedia --network=host -it antmediaserver From 739d4d3694431d3f9ca9da3289d9fbec36c7a9eb Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:48:48 +0300 Subject: [PATCH 08/19] Update install-dockerfile-and-check-ssl.yml --- .github/workflows/install-dockerfile-and-check-ssl.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index 676068c2..59953b75 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -20,10 +20,10 @@ jobs: run: sudo systemctl restart docker - name: Build Docker image - run: docker build --restart=always -f docker/Dockerfile_Process --network=host -t antmediaserver --build-arg LicenseKey="${{ secrets.ENTERPRISE_LICENSE }}" . + run: docker build -f docker/Dockerfile_Process --network=host -t antmediaserver --build-arg LicenseKey="${{ secrets.ENTERPRISE_LICENSE }}" . - name: Run Docker container - run: docker run -d --name antmedia --network=host -it antmediaserver + run: docker run --restart=always -d --name antmedia --network=host -it antmediaserver # - name: Clone branch # run: | From 5f3cc0b0550ee2e3b823910eed7be4d75a0387dd Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 13:52:46 +0300 Subject: [PATCH 09/19] Update install-dockerfile-and-check-ssl.yml --- .github/workflows/install-dockerfile-and-check-ssl.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index 59953b75..77e49d93 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -53,7 +53,6 @@ jobs: - name: Stop and remove container if: ${{ always() }} run: | - echo "test" -# docker stop antmedia -# docker rm antmedia -# sudo systemctl start antmedia + docker stop antmedia + docker rm antmedia + sudo systemctl start antmedia From 96f4f73d16f99f131798da0d2ca6dabc279b5499 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 18:43:04 +0300 Subject: [PATCH 10/19] Add check SSL step --- .github/workflows/install-dockerfile-and-check-ssl.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index 77e49d93..a80d8b9e 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -25,6 +25,15 @@ jobs: - name: Run Docker container run: docker run --restart=always -d --name antmedia --network=host -it antmediaserver + - name: Check if SSL is enabled or not + run: | + set -e + if docker exec antmedia curl -f https://${{ secrets.CI_SSL_TEST_DOMAIN }}:5443; then + echo "Endpoint is reachable." + else + echo "Endpoint is not reachable, but continuing workflow." + fi + # - name: Clone branch # run: | # git clone --depth=1 -b ${{ github.event.inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git From a4bc94aa9d5e93bc93eccd71a01eeb0881aa079c Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 1 Jul 2024 18:52:59 +0300 Subject: [PATCH 11/19] Add exit code --- .github/workflows/install-dockerfile-and-check-ssl.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index a80d8b9e..39b6fd58 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -30,6 +30,7 @@ jobs: set -e if docker exec antmedia curl -f https://${{ secrets.CI_SSL_TEST_DOMAIN }}:5443; then echo "Endpoint is reachable." + exit 1 else echo "Endpoint is not reachable, but continuing workflow." fi From cbc0641b2f391789e1f5a07b31e9bdfe3e53e204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20O=C4=9Fuz=20Mermerkaya?= Date: Tue, 2 Jul 2024 17:14:25 +0300 Subject: [PATCH 12/19] Change commit ref to master --- .github/workflows/install-dockerfile-and-check-ssl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index 39b6fd58..d6681b2b 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -40,7 +40,7 @@ jobs: # git clone --depth=1 -b ${{ github.event.inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git - name: Download enable_ssl.sh inside container - run: docker exec antmedia wget -O /usr/local/antmedia/enable_ssl.sh https://raw.githubusercontent.com/ant-media/Ant-Media-Server/21b57c461ba8eae496b830e779d2c628f25aecce/src/main/server/enable_ssl.sh + run: docker exec antmedia wget -O /usr/local/antmedia/enable_ssl.sh https://raw.githubusercontent.com/ant-media/Ant-Media-Server/master/src/main/server/enable_ssl.sh # - name: Copy enable_ssl.sh from cloned branch to container # run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh From 837c9c9fef25e3eaf3a25724dfa0212f60b111f1 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Wed, 3 Jul 2024 15:16:16 +0300 Subject: [PATCH 13/19] Update the Dockerfile for MediaPush Plugin --- docker/Dockerfile_Process | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docker/Dockerfile_Process b/docker/Dockerfile_Process index 946836d2..b25c19a7 100644 --- a/docker/Dockerfile_Process +++ b/docker/Dockerfile_Process @@ -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 @@ -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: # From eeeeefd6fc9bcc3b1c8d7d10a75c5c6b8f1c56b4 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Wed, 3 Jul 2024 15:55:00 +0300 Subject: [PATCH 14/19] Add renew parameter to avoid limit in workflow --- .github/workflows/install-dockerfile-and-check-ssl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index d6681b2b..b2505311 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -46,7 +46,7 @@ jobs: # run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh - name: Run enable_ssl.sh inside container - run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh -d ${{ secrets.CI_SSL_TEST_DOMAIN }} + run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh -d ${{ secrets.CI_SSL_TEST_DOMAIN }} -r - name: Verify container is running run: | From 2af861b40c52feefb91c461785df3125cef4a523 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Wed, 3 Jul 2024 16:50:10 +0300 Subject: [PATCH 15/19] Add fixed version of enable_ssl.sh --- .github/workflows/install-dockerfile-and-check-ssl.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index b2505311..77ccf756 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -40,7 +40,7 @@ jobs: # git clone --depth=1 -b ${{ github.event.inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git - name: Download enable_ssl.sh inside container - run: docker exec antmedia wget -O /usr/local/antmedia/enable_ssl.sh https://raw.githubusercontent.com/ant-media/Ant-Media-Server/master/src/main/server/enable_ssl.sh + run: docker exec antmedia wget -O /usr/local/antmedia/enable_ssl.sh https://raw.githubusercontent.com/ant-media/Ant-Media-Server/269f866bf9ee03a62757565aa1a4e469c0230954/src/main/server/enable_ssl.sh # - name: Copy enable_ssl.sh from cloned branch to container # run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh From 4c097018212fd48184edfcbf5b4f527fc550facc Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Wed, 3 Jul 2024 17:02:17 +0300 Subject: [PATCH 16/19] Remove renew parameter --- .github/workflows/install-dockerfile-and-check-ssl.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index 77ccf756..d6681b2b 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -40,13 +40,13 @@ jobs: # git clone --depth=1 -b ${{ github.event.inputs.branch_name }} https://github.com/ant-media/Ant-Media-Server.git || git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git - name: Download enable_ssl.sh inside container - run: docker exec antmedia wget -O /usr/local/antmedia/enable_ssl.sh https://raw.githubusercontent.com/ant-media/Ant-Media-Server/269f866bf9ee03a62757565aa1a4e469c0230954/src/main/server/enable_ssl.sh + run: docker exec antmedia wget -O /usr/local/antmedia/enable_ssl.sh https://raw.githubusercontent.com/ant-media/Ant-Media-Server/master/src/main/server/enable_ssl.sh # - name: Copy enable_ssl.sh from cloned branch to container # run: docker cp Ant-Media-Server/src/main/server/enable_ssl.sh antmedia:/usr/local/antmedia/enable_ssl.sh - name: Run enable_ssl.sh inside container - run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh -d ${{ secrets.CI_SSL_TEST_DOMAIN }} -r + run: docker exec antmedia bash /usr/local/antmedia/enable_ssl.sh -d ${{ secrets.CI_SSL_TEST_DOMAIN }} - name: Verify container is running run: | From 58bcee4be62b23beec2a2e6856bbd2f9ed7ecc9b Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Wed, 3 Jul 2024 17:43:23 +0300 Subject: [PATCH 17/19] Add schedule for workflow --- .github/workflows/install-dockerfile-and-check-ssl.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install-dockerfile-and-check-ssl.yml b/.github/workflows/install-dockerfile-and-check-ssl.yml index d6681b2b..1c06054a 100644 --- a/.github/workflows/install-dockerfile-and-check-ssl.yml +++ b/.github/workflows/install-dockerfile-and-check-ssl.yml @@ -1,6 +1,10 @@ name: Docker Build and Test -on: [push] +on: +# [push] + workflow_dispatch: + schedule: + - cron: '0 0 */5 * *' jobs: build: From 0a7957e84ecbddc966ad4876ab853ab05fd2c890 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Wed, 3 Jul 2024 17:51:22 +0300 Subject: [PATCH 18/19] Update Usage section --- docker/Dockerfile_Process | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile_Process b/docker/Dockerfile_Process index b25c19a7..864818df 100644 --- a/docker/Dockerfile_Process +++ b/docker/Dockerfile_Process @@ -5,13 +5,14 @@ # # Usage: # -# 1. AntMediaServer: Specify the name of the Ant Media Server zip file to complete the installation. +# * 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' # -# 2. LicenseKey: Assign your license key to this variable to complete the installation without needing a zip file. +# * 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' # -# 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. +# * 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 808b0962e027c13dea34a074fab5909b3b305aee Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Thu, 4 Jul 2024 11:51:42 +0300 Subject: [PATCH 19/19] Fix description --- docker/Dockerfile_Process | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/Dockerfile_Process b/docker/Dockerfile_Process index 864818df..1708f2ac 100644 --- a/docker/Dockerfile_Process +++ b/docker/Dockerfile_Process @@ -8,8 +8,7 @@ # * 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' -) +# * 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.