Skip to content

Commit e49796b

Browse files
Support SRT and VTT files + Minio for local AWS client + pgadmin in docker-compose + tests
1 parent 05597ca commit e49796b

37 files changed

+1299
-600
lines changed

.env

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ OAUTH_ENCRYPTION_KEY=iTZOjwferCnm7JXYLkWhJzr2lFTUrnAhi7ei0GOjppo
4343
MESSENGER_TRANSPORT_DSN=doctrine://default
4444
###< symfony/messenger ###
4545

46-
OVH_REGION=
47-
OVH_ACCESS_KEY=
48-
OVH_SECRET_KEY=
49-
OVH_ENDPOINT_URL=
50-
OVH_BUCKET_NAME=
46+
OVH_REGION=us-east-1
47+
OVH_ACCESS_KEY=minioadmin
48+
OVH_SECRET_KEY=minioadmin
49+
OVH_ENDPOINT_URL=http://aristote-minio:9000
50+
OVH_BUCKET_NAME=aristote
5151

5252
TRANSCRIPTION_WORKER_CLIENT_ID=
5353
TRANSCRIPTION_WORKER_SECRET=

.env.test

+9
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ SYMFONY_DEPRECATIONS_HELPER=999999
55
PANTHER_APP_ENV=panther
66
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
77
DATABASE_URL="postgresql://api:aristote@postgres:5432/aristote-db?serverVersion=15&charset=utf8"
8+
9+
OVH_REGION=gra
10+
S3_LINK_EXPIRATION_IN_MINUTES=120
11+
12+
TRANSCRIPTION_WORKER_TIMEOUT_IN_MINUTES=1
13+
AI_ENRICHMENT_WORKER_TIMEOUT_IN_MINUTES=1
14+
AI_EVALUATION_WORKER_TIMEOUT_IN_MINUTES=1
15+
16+
MAX_RETRIES=5

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ config/jwt/public.key
3737
###> phpstan/phpstan ###
3838
phpstan.neon
3939
###< phpstan/phpstan ###
40+
41+
/minio/.minio.sys
42+
/minio/.DS_Store
43+
/minio/*/*
44+
!/minio/*/.gitkeep

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ docker-compose exec -it php sh tests/init-test-database.sh
6262

6363
Command to run all tests:
6464
```
65-
docker-compose exec -it php vendor/bin/phpunit
65+
docker-compose exec -it php php vendor/bin/phpunit
6666
```
6767

6868
To run a given testing directory:
@@ -74,12 +74,12 @@ docker-compose exec -it php vendor/bin/phpunit tests/<SUBDIRECTORY_NAME>
7474

7575
* Run the php fixer
7676
```
77-
docker-compose exec -it php vendor/bin/php-cs-fixer fix -v --dry-run
77+
docker-compose exec -it php php vendor/bin/php-cs-fixer fix -v --dry-run
7878
```
7979

8080
* Run rector
8181
```
82-
docker-compose exec -it php vendor/bin/rector process --dry-run
82+
docker-compose exec -it php php vendor/bin/rector process --dry-run
8383
```
8484

8585
* Générer une migration :

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"ext-ctype": "*",
99
"ext-iconv": "*",
1010
"aws/aws-sdk-php": "^3.283",
11+
"captioning/captioning": "^3.0",
1112
"doctrine/annotations": "^2.0",
1213
"doctrine/doctrine-bundle": "^2.10",
1314
"doctrine/doctrine-migrations-bundle": "^3.2",
@@ -16,7 +17,7 @@
1617
"knplabs/knp-paginator-bundle": "^6.2",
1718
"league/flysystem-aws-s3-v3": "^3.16",
1819
"league/flysystem-bundle": "^3.2",
19-
"league/oauth2-server-bundle": "^0.5.0",
20+
"league/oauth2-server-bundle": "^0.8.0",
2021
"nelmio/api-doc-bundle": "^4.11",
2122
"phpdocumentor/reflection-docblock": "^5.3",
2223
"phpstan/phpdoc-parser": "^1.16",

0 commit comments

Comments
 (0)