-
Notifications
You must be signed in to change notification settings - Fork 0
improve local development environment #13
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
30feb5d
improve local development environment
pdpd22 259c2d2
進捗が届かない問題を修正
pdpd22 bd56437
ローカルのエンコーダとしてGPUを指定可能にする
pdpd22 38ff3d2
feat:add make local-dev-status
pdpd22 30d480b
#12 を反映
pdpd22 513aae8
READMEのミスを修正
pdpd22 a5a833b
fix: address Copilot review comments
pdpd22 237aa57
fix: join ffmpeg stderr reader on exceptions
pdpd22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| YOUTUBE_API_KEY=your_youtube_api_key | ||
|
|
||
| # 以下の変数はローカル開発では設定不要です。 | ||
| # docker-compose.yml のデフォルト値を上書きしたい場合のみ使用 | ||
|
|
||
| # NS_MARIADB_HOSTNAME=db | ||
| # NS_MARIADB_PORT=3306 | ||
| # NS_MARIADB_DATABASE=playbacq | ||
| # NS_MARIADB_USER=playbacq_user | ||
| # NS_MARIADB_PASSWORD=my_secure_password_123 | ||
| # MYSQL_ROOT_PASSWORD=super_secret_root | ||
|
|
||
| # REDIS_HOST=redis | ||
| # REDIS_PORT=6379 | ||
| # REDIS_USER=default | ||
| # REDIS_PASSWORD= | ||
|
|
||
| # MINIO_ROOT_USER=admin | ||
| # MINIO_ROOT_PASSWORD=super_secret_minio | ||
| # MINIO_ENDPOINT=minio:9000 | ||
| # S3_ENDPOINT=http://127.0.0.1:9000 | ||
|
|
||
| # FRONTEND_URL=http://localhost:4200 | ||
| # BACKEND_URL=http://backend:8080 | ||
|
|
||
| # LOCAL_WORKER_EXECUTABLE=./build/playbacq_worker | ||
| # LOCAL_BUILD_JOBS=6 | ||
| # LOCAL_START_TIMEOUT=600 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| LOCAL_COMPOSE = docker compose -f docker-compose.yml -f docker-compose.local.yml | ||
| LOCAL_GPU_COMPOSE = $(LOCAL_COMPOSE) -f docker-compose.local-gpu.yml | ||
|
|
||
| .PHONY: local-dev local-dev-gpu local-dev-status local-dev-logs local-dev-shell local-dev-down | ||
|
|
||
| local-dev: | ||
| $(LOCAL_COMPOSE) up -d --build --force-recreate backend | ||
| $(LOCAL_COMPOSE) exec -T backend /bin/sh /app/docker/dev/wait-ready.sh | ||
|
|
||
| local-dev-gpu: | ||
| $(LOCAL_GPU_COMPOSE) up -d --build --force-recreate backend | ||
| $(LOCAL_GPU_COMPOSE) exec -T backend /bin/sh /app/docker/dev/wait-ready.sh | ||
|
|
||
| local-dev-status: | ||
| $(LOCAL_COMPOSE) ps -a | ||
| @$(LOCAL_COMPOSE) exec -T backend /bin/sh /app/docker/dev/status.sh | ||
|
|
||
| local-dev-logs: | ||
| $(LOCAL_COMPOSE) logs -f backend | ||
|
|
||
| local-dev-shell: | ||
| $(LOCAL_COMPOSE) exec backend bash | ||
|
|
||
| local-dev-down: | ||
| $(LOCAL_COMPOSE) down |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| services: | ||
| backend: | ||
| gpus: all | ||
| environment: | ||
| LOCAL_GPU_ENCODER: "ON" | ||
| NVIDIA_DRIVER_CAPABILITIES: compute,video,utility |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| services: | ||
| backend: | ||
| build: | ||
| target: development | ||
| command: ["/bin/sh", "/app/docker/dev/start.sh"] | ||
| environment: | ||
| LOCAL_BUILD_JOBS: ${LOCAL_BUILD_JOBS:-6} | ||
| LOCAL_START_TIMEOUT: ${LOCAL_START_TIMEOUT:-600} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.