ov-components: add setup action for local deployment and streamline workflow steps

master
Carlos Santos 2025-05-19 17:52:29 +02:00
parent ab7a453507
commit 8dfb513bb0
2 changed files with 54 additions and 112 deletions

View File

@ -0,0 +1,22 @@
name: Setup OpenVidu Local Deployment
description: Checkout and start OpenVidu Local Deployment with Docker Compose
runs:
using: "composite"
steps:
- name: Checkout OpenVidu Local Deployment
uses: actions/checkout@v4
with:
repository: OpenVidu/openvidu-local-deployment
ref: development
path: openvidu-local-deployment
- name: Configure Local Deployment
shell: bash
run: |
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Wait for OpenVidu Local Deployment to Start
shell: bash
run: wait-on --timeout 60000 http://localhost:7880

View File

@ -58,16 +58,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -84,13 +82,6 @@ jobs:
run: npm run build --prefix openvidu-components-angular run: npm run build --prefix openvidu-components-angular
- name: Serve openvidu-components-angular Testapp - name: Serve openvidu-components-angular Testapp
run: npm run start --prefix openvidu-components-angular & run: npm run start --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:4200; do until curl -s -f -o /dev/null http://localhost:4200; do
@ -115,6 +106,8 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
- name: Install Dependencies - name: Install Dependencies
run: | run: |
cd openvidu-components-angular cd openvidu-components-angular
@ -136,16 +129,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -162,13 +153,6 @@ jobs:
run: npm run build --prefix openvidu-components-angular run: npm run build --prefix openvidu-components-angular
- name: Serve openvidu-components-angular Testapp - name: Serve openvidu-components-angular Testapp
run: npm run start --prefix openvidu-components-angular & run: npm run start --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:4200; do until curl -s -f -o /dev/null http://localhost:4200; do
@ -194,16 +178,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -220,12 +202,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do
@ -251,16 +227,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -277,12 +251,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do
@ -309,16 +277,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -335,12 +301,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do
@ -366,16 +326,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -392,12 +350,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do
@ -423,16 +375,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -449,12 +399,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do
@ -480,16 +424,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -506,12 +448,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do
@ -538,16 +474,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -564,12 +498,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do
@ -595,16 +523,14 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
- name: Install wait-on package
run: npm install -g wait-on
# - name: Run Browserless Chrome # - name: Run Browserless Chrome
# run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run Chrome - name: Run Chrome
run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0 run: docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
- name: Run openvidu-local-deployment - name: Run openvidu-local-deployment
run: | uses: ./.github/actions/setup-local-deployment
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh
docker compose up -d
- name: Run OpenVidu Call Backend - name: Run OpenVidu Call Backend
run: | run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call git clone --depth 1 https://github.com/OpenVidu/openvidu-call
@ -621,12 +547,6 @@ jobs:
run: npm run webcomponent:testing-build --prefix openvidu-components-angular run: npm run webcomponent:testing-build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Wait for openvidu-local-deployment
run: |
until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5
done
- name: Wait for openvidu-components-angular Testapp - name: Wait for openvidu-components-angular Testapp
run: | run: |
until curl -s -f -o /dev/null http://localhost:8080; do until curl -s -f -o /dev/null http://localhost:8080; do