chore: add Docker build volume and configure OpenCode
Add a named volume for backend build artifacts to prevent root-owned files created inside the container from blocking host Gradle builds. This follows the same pattern as the existing backend-gradle-project volume. Configure OpenCode with LSP, formatter, auto-compaction, and file watcher settings for improved development experience. Changes: - docker-compose.yml: add backend-build:/app/backend/build volume - opencode.json: enable lsp, formatter, auto-compaction, prune, and file watcher with ignore patterns for node_modules, .git, dist, build
This commit is contained in:
parent
8d07bb7ab1
commit
0d7e672bc3
2 changed files with 11 additions and 0 deletions
|
|
@ -38,6 +38,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
- backend-gradle-project:/app/.gradle
|
- backend-gradle-project:/app/.gradle
|
||||||
|
- backend-build:/app/backend/build
|
||||||
- gradle-cache:/root/.gradle
|
- gradle-cache:/root/.gradle
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
|
|
@ -58,3 +59,4 @@ volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
gradle-cache:
|
gradle-cache:
|
||||||
backend-gradle-project:
|
backend-gradle-project:
|
||||||
|
backend-build:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"instructions": ["CODING_GUIDELINES.md", "REQUIREMENTS.md"],
|
"instructions": ["CODING_GUIDELINES.md", "REQUIREMENTS.md"],
|
||||||
|
"lsp": true,
|
||||||
|
"formatter": true,
|
||||||
"permission": {
|
"permission": {
|
||||||
"edit": "ask",
|
"edit": "ask",
|
||||||
"bash": "ask"
|
"bash": "ask"
|
||||||
|
|
@ -8,5 +10,12 @@
|
||||||
"tools": {
|
"tools": {
|
||||||
"websearch": true,
|
"websearch": true,
|
||||||
"codesearch": true
|
"codesearch": true
|
||||||
|
},
|
||||||
|
"compaction": {
|
||||||
|
"auto": true,
|
||||||
|
"prune": true
|
||||||
|
},
|
||||||
|
"watcher": {
|
||||||
|
"ignore": ["node_modules/**", ".git/**", "dist/**", "build/**", "**/target/**"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue