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

Peer to peer call with Kurento server #5

Merged
merged 53 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
0716b13
[Backend] Expose user field
May 27, 2024
12d07c5
[Backend] Add CI
May 27, 2024
04d9eac
[Backend] Add CI
May 27, 2024
c0cd6da
[Backend] Add CI
May 27, 2024
b785f41
Rename .java to .kt
May 27, 2024
96ec88c
[Backend] Add CI
May 27, 2024
ad7b90a
Merge remote-tracking branch 'origin/develop' into develop
physcom May 27, 2024
22631e4
[Backend] Fix message save
May 27, 2024
3148a22
Merge remote-tracking branch 'origin/develop' into develop
physcom May 27, 2024
21680b6
gemini response fix
physcom May 27, 2024
149c571
[Backend] Fix message save
May 27, 2024
30ac2d2
[Backend] Add endpoint for controller
May 27, 2024
9df44a6
[Backend] Fix message save
Jun 3, 2024
0579435
[Backend] Add ai entities
Jun 4, 2024
d1bbba5
[Backend]
Jun 6, 2024
5a4d50c
[Backend]
Jun 6, 2024
2b3c4ff
attachment fix
physcom Jun 6, 2024
45a9942
Merge remote-tracking branch 'origin/AI-modeling' into AI-modeling
physcom Jun 6, 2024
a5ac30f
permit attachment download url
physcom Jun 12, 2024
4b9ddf2
fixed message attachment save
physcom Jun 12, 2024
536ef75
[Backend]
Jun 13, 2024
05e5163
[Backend]
Jun 20, 2024
9b97c09
[Backend]
Jun 20, 2024
8687c01
[Backend]
Jun 24, 2024
790491c
[Backend]
Aug 7, 2024
8ac0a9b
Ws server
borbuevbeksultan Nov 4, 2024
03c7647
Add Kurento module
borbuevbeksultan Nov 20, 2024
e890c51
Remove old build script
borbuevbeksultan Nov 20, 2024
8714926
Add new workflow
borbuevbeksultan Nov 20, 2024
535de51
Add new workflow
borbuevbeksultan Nov 20, 2024
d1f018c
Add new workflow
borbuevbeksultan Nov 20, 2024
9ccb23d
Add new workflow
borbuevbeksultan Nov 20, 2024
37e22b1
Add new workflow
borbuevbeksultan Nov 20, 2024
47d7fe8
Add new workflow
borbuevbeksultan Nov 20, 2024
0ff605d
Add new workflow
borbuevbeksultan Nov 20, 2024
ac704a1
Add new workflow
borbuevbeksultan Nov 20, 2024
b606a21
Add new workflow
borbuevbeksultan Nov 20, 2024
7cf3af8
Add new workflow
borbuevbeksultan Nov 20, 2024
f9dbfbb
Add new workflow
borbuevbeksultan Nov 20, 2024
dced6ec
Add new workflow
borbuevbeksultan Nov 20, 2024
deba1af
Add new workflow
borbuevbeksultan Nov 21, 2024
9f8117c
Add new workflow
borbuevbeksultan Nov 21, 2024
f2ac5ff
Add new workflow
borbuevbeksultan Nov 21, 2024
f8d3f3e
Add new workflow
borbuevbeksultan Nov 21, 2024
ee9f8eb
Add new workflow
borbuevbeksultan Nov 21, 2024
6bda1c4
Add new workflow
borbuevbeksultan Nov 21, 2024
715d502
Add new workflow
borbuevbeksultan Nov 21, 2024
f1e80c5
Add group call
borbuevbeksultan Nov 25, 2024
3535008
Add group call
borbuevbeksultan Nov 25, 2024
5d21906
One to one call
borbuevbeksultan Dec 5, 2024
4a336c1
Recording mixed file
borbuevbeksultan Dec 9, 2024
87233cf
Recording mixed file
borbuevbeksultan Dec 30, 2024
b4acb51
Recording mixed file
borbuevbeksultan Dec 30, 2024
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
85 changes: 85 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Build

on:
push: null

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
architecture: x64
- name: Set Gradle User Home
run: export GRADLE_USER_HOME=$(pwd)/.gradle
- name: Cache Gradle Dependencies
uses: actions/cache@v2
with:
path: .gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Cache Gradle Wrapper
uses: actions/cache@v2
with:
path: .gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle
- name: Gradle build
run: ./gradlew clean build --parallel
prepareDockerImage:
needs: build
name: Prepare docker images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
architecture: x64
- name: Build Jar
run: ./gradlew bootJar
- name: Build login
run: docker login -u ${{ vars.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
- name: Build docker image
run: docker build -t iceknight07/open-chat:latest .
- name: Push docker image
run: docker push iceknight07/open-chat:latest
deploy:
needs: prepareDockerImage
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Setup SSH connection
run: |
eval $(ssh-agent -s)
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan ${{ vars.DEPLOY_HOST }} >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
echo "${{ secrets.DEPLOY_KEY }}" | tr -d '\r' > ~/.ssh/private.key
chmod 600 ~/.ssh/private.key
- name: Run command
run: |
ssh -i ~/.ssh/private.key ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }} \
"docker stop open-chat-server || true"
ssh -i ~/.ssh/private.key ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }} \
"docker rm open-chat-server || true"
ssh -i ~/.ssh/private.key ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }} \
"docker rmi iceknight07/open-chat:latest || true"
ssh -i ~/.ssh/private.key ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }} \
"docker run --name open-chat-server --network=open-chat-network -p 443:8443 -d \
-e POSTGRES_URL=open-chat-postgres:5432/open_chat \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=12345678 \
-e KMS_URL=ws://kurento-media-server:8888/kurento \
-e SPRING_PROFILES_ACTIVE=production \
iceknight07/open-chat:latest"
3 changes: 3 additions & 0 deletions build-docker-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION=5.4
docker build --platform linux/amd64 -t iceknight07/open-chat:$VERSION .
docker push iceknight07/open-chat:$VERSION
34 changes: 34 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,33 @@ configurations {

repositories {
mavenCentral()
maven {
url "https://maven.dcm4che.org"
}
}

dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'org.jetbrains.kotlin:kotlin-reflect'

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"

implementation 'io.jsonwebtoken:jjwt:0.12.5'
implementation 'io.jsonwebtoken:jjwt-api:0.12.5'

implementation 'javax.xml.bind:jaxb-api:2.1'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.17.1'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.1'


runtimeOnly("com.mysql:mysql-connector-j")
runtimeOnly("org.postgresql:postgresql")
implementation 'org.flywaydb:flyway-core:10.10.0'
implementation "org.flywaydb:flyway-database-postgresql:10.10.0"

implementation 'org.springframework.data:spring-data-relational:3.2.3'
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation("org.springframework.boot:spring-boot-starter-validation")
Expand All @@ -49,16 +57,42 @@ dependencies {

implementation("com.amazonaws:aws-java-sdk-cognitoidp:1.12.681")
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.687'
implementation 'com.amazonaws:aws-java-sdk-transcribe:1.12.761'
implementation 'software.amazon.awssdk:transcribestreaming:2.26.20'

implementation("javax.validation:validation-api:2.0.1.Final")

implementation 'com.amazonaws:aws-java-sdk-qconnect:1.12.693'

implementation 'xuggle:xuggle-xuggler:5.4'
implementation("org.passay:passay:1.6.3")
implementation 'org.kurento:kurento-client:7.1.0'

// WebJars
// WebJars Locator
implementation 'org.webjars:webjars-locator:0.46'

//
implementation ("org.webjars.bower:bootstrap:5.2.2")
implementation ("org.webjars.bower:demo-console:1.5.1")
implementation ("org.webjars.bower:draggabilly:2.1.0")
implementation ("org.webjars.bower:ekko-lightbox:5.2.0")
implementation ("org.webjars.bower:jquery:3.6.1")
implementation ("org.webjars.bower:jsnlog.js:2.20.1")
implementation ("org.webjars.bower:webrtc-adapter:7.4.0")

implementation("org.kurento:kurento-commons:7.1.0")
implementation("org.kurento:kurento-client:7.1.0")
implementation("org.kurento:kurento-utils-js:7.1.0")

compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'

testImplementation 'org.testcontainers:postgresql:1.19.7'

}

tasks.named('test') {
Expand Down
1 change: 1 addition & 0 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ services:

open-chat-postgres:
container_name: open-chat-postgres
hostname: open-chat-postgres
image: postgres
environment:
POSTGRES_DB: open_chat
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading
Loading