From ec76b41d147ec17855433f741e8ec79012d652f4 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Tue, 23 Apr 2024 08:01:16 +0300 Subject: [PATCH 1/6] Add Ubuntu 24.04 support --- install_ant-media-server.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_ant-media-server.sh b/install_ant-media-server.sh index 91d8f803..655b8a24 100755 --- a/install_ant-media-server.sh +++ b/install_ant-media-server.sh @@ -161,7 +161,7 @@ distro () { os_release="/etc/os-release" if [ -f "$os_release" ]; then . $os_release - msg="We are supporting Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Centos 8, Centos 9, RockyLinux 8, RockyLinux 9, AlmaLinux 8 and AlmaLinux 9" + msg="We are supporting Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 22.04, Centos 8, Centos 9, RockyLinux 8, RockyLinux 9, AlmaLinux 8 and AlmaLinux 9" if [ "$OTHER_DISTRO" == "true" ]; then echo -e """\n- OpenJDK 11 (openjdk-11-jdk)\n- De-archiver (unzip)\n- Commons Daemon (jsvc)\n- Apache Portable Runtime Library (libapr1)\n- SSL Development Files (libssl-dev)\n- Video Acceleration (VA) API (libva-drm2)\n- Video Acceleration (VA) API - X11 runtime (libva-x11-2)\n- Video Decode and Presentation API Library (libvdpau-dev)\n- Crystal HD Video Decoder Library (libcrystalhd-dev)\n""" read -p 'Are you sure that the above packages are installed? Y/N ' CUSTOM_PACKAGES @@ -182,7 +182,7 @@ distro () { exit 1 fi - if [[ $VERSION_ID != 18.04 ]] && [[ $VERSION_ID != 20.04 ]] && [[ $VERSION_ID != 22.04 ]] && [[ $VERSION_ID != 8* ]] && [[ $VERSION_ID != 9* ]]; then + if [[ $VERSION_ID != 18.04 ]] && [[ $VERSION_ID != 20.04 ]] && [[ $VERSION_ID != 22.04 ]] && [[ $VERSION_ID != 24.04 ]] && [[ $VERSION_ID != 8* ]] && [[ $VERSION_ID != 9* ]]; then echo $msg exit 1 fi From 6a61ed9073d162f3eb933d41bf0925a1b9254f87 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Tue, 23 Apr 2024 08:02:21 +0300 Subject: [PATCH 2/6] Update install_ant-media-server.sh --- install_ant-media-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_ant-media-server.sh b/install_ant-media-server.sh index 655b8a24..164f9c5c 100755 --- a/install_ant-media-server.sh +++ b/install_ant-media-server.sh @@ -161,7 +161,7 @@ distro () { os_release="/etc/os-release" if [ -f "$os_release" ]; then . $os_release - msg="We are supporting Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 22.04, Centos 8, Centos 9, RockyLinux 8, RockyLinux 9, AlmaLinux 8 and AlmaLinux 9" + msg="We are supporting Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, Centos 8, Centos 9, RockyLinux 8, RockyLinux 9, AlmaLinux 8 and AlmaLinux 9" if [ "$OTHER_DISTRO" == "true" ]; then echo -e """\n- OpenJDK 11 (openjdk-11-jdk)\n- De-archiver (unzip)\n- Commons Daemon (jsvc)\n- Apache Portable Runtime Library (libapr1)\n- SSL Development Files (libssl-dev)\n- Video Acceleration (VA) API (libva-drm2)\n- Video Acceleration (VA) API - X11 runtime (libva-x11-2)\n- Video Decode and Presentation API Library (libvdpau-dev)\n- Crystal HD Video Decoder Library (libcrystalhd-dev)\n""" read -p 'Are you sure that the above packages are installed? Y/N ' CUSTOM_PACKAGES From f98c9c0471ef5b0aed0fb0351b6792ee8d0c5082 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Tue, 23 Apr 2024 08:04:54 +0300 Subject: [PATCH 3/6] Create install-latest-to-ubuntu-24-04.yml --- .../install-latest-to-ubuntu-24-04.yml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/install-latest-to-ubuntu-24-04.yml diff --git a/.github/workflows/install-latest-to-ubuntu-24-04.yml b/.github/workflows/install-latest-to-ubuntu-24-04.yml new file mode 100644 index 00000000..7cf9f005 --- /dev/null +++ b/.github/workflows/install-latest-to-ubuntu-24-04.yml @@ -0,0 +1,53 @@ +name: Install Latest to Ubuntu 24.04 +on: [push] + +jobs: + Install-Ubuntu-24-04: + runs-on: ubuntu-24.04 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + #Get latest version + - run: curl -L -o ant-media-server-community.zip $(curl -s https://api.github.com/repos/ant-media/Ant-Media-Server/releases/latest | grep "browser_download_url" | cut -d '"' -f 4) + - run: ./install_ant-media-server.sh -i ant-media-server-community.zip + - run: sleep 30 + - run: cat /usr/local/antmedia/log/ant-media-server.log + - run: | + if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then + echo "LiveApp started log does not exist. Check the logs above" + exit 1; + fi; + - run: cat /usr/local/antmedia/log/antmedia-error.log + Auto-Install-Community-: + runs-on: ubuntu-24.04 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + #Get latest version + - run: ./install_ant-media-server.sh + - run: sleep 30 + - run: cat /usr/local/antmedia/log/ant-media-server.log + - run: | + if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then + echo "LiveApp started log does not exist. Check the logs above" + exit 1; + fi; + - run: cat /usr/local/antmedia/log/antmedia-error.log + Auto-Install-Enterprise-: + runs-on: ubuntu-24.04 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + #Get latest version + - run: bash -x ./install_ant-media-server.sh -l"${{ secrets.ENTERPRISE_LICENSE }}" + - run: sleep 30 + - run: cat /usr/local/antmedia/log/ant-media-server.log + - run: | + if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then + echo "LiveApp started log does not exist. Check the logs above" + exit 1; + fi; + - run: cat /usr/local/antmedia/log/antmedia-error.log From eef72faff96dddba3888531001ed5cead83ead0e Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Tue, 23 Apr 2024 08:06:00 +0300 Subject: [PATCH 4/6] Create install-latest-snapshot-to-ubuntu-24-04.yml --- ...nstall-latest-snapshot-to-ubuntu-24-04.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml diff --git a/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml b/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml new file mode 100644 index 00000000..e4b2b970 --- /dev/null +++ b/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml @@ -0,0 +1,27 @@ +name: Install Latest Snapshot to Ubuntu 24.04 +on: [push] + +jobs: + Install-Ubuntu-24-04: + runs-on: ubuntu-24.04 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + + - run: wget -O maven-metadata.xml https://oss.sonatype.org/service/local/repositories/snapshots/content/io/antmedia/ant-media-server/maven-metadata.xml + #Get latest snapshot + - run: | + export LATEST_SNAPSHOT=$(cat maven-metadata.xml | grep "" | tail -n 1 | xargs | cut -c 10-23) + echo $LATEST_SNAPSHOT + wget -O ant-media-server-community.zip "https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=io.antmedia&a=ant-media-server&v=${LATEST_SNAPSHOT}&c=community&e=zip"; + - run: ./install_ant-media-server.sh -i ant-media-server-community.zip + - run: sudo service antmedia status + - run: sleep 30 + - run: cat /usr/local/antmedia/log/ant-media-server.log + - run: | + if [ $(cat /usr/local/antmedia/log/ant-media-server.log | grep "LiveApp started" | wc -l | xargs) -eq 0 ]; then + echo "LiveApp started log does not exist. Check the logs above" + exit 1; + fi; + - run: cat /usr/local/antmedia/log/antmedia-error.log From 6bbd7ff5364f59cc9ea76a8c8b1a65c93ff5c54e Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 6 May 2024 15:54:48 +0300 Subject: [PATCH 5/6] Disable temporary --- .github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml b/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml index e4b2b970..1cda503c 100644 --- a/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml +++ b/.github/workflows/install-latest-snapshot-to-ubuntu-24-04.yml @@ -1,5 +1,5 @@ name: Install Latest Snapshot to Ubuntu 24.04 -on: [push] +#on: [push] jobs: Install-Ubuntu-24-04: From bef4a33f3ffbf5ea7eb299e9784ef46a3412dbc0 Mon Sep 17 00:00:00 2001 From: Murat Ugur Eminoglu Date: Mon, 6 May 2024 15:55:09 +0300 Subject: [PATCH 6/6] disable temporary --- .github/workflows/install-latest-to-ubuntu-24-04.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/install-latest-to-ubuntu-24-04.yml b/.github/workflows/install-latest-to-ubuntu-24-04.yml index 7cf9f005..9ca05277 100644 --- a/.github/workflows/install-latest-to-ubuntu-24-04.yml +++ b/.github/workflows/install-latest-to-ubuntu-24-04.yml @@ -1,5 +1,5 @@ name: Install Latest to Ubuntu 24.04 -on: [push] +#on: [push] jobs: Install-Ubuntu-24-04: