-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.project.yaml
60 lines (60 loc) · 1.55 KB
/
.project.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# yaml-language-server: $schema=https://raw.githubusercontent.com/dhhyi/devcontainer-creator/dist/language_schema.json
extends: dcc://kotlin
devcontainer:
publish:
image: ghcr.io/dhhyi/recipe-db-devcontainer-recipes-edit
labels:
org.opencontainers.image.source: https://github.com/dhhyi/recipe-db
build:
user:
- RUN echo "alias gradle='./gradlew --no-daemon'" | tee -a /home/vscode/.bashrc /home/vscode/.zshrc
ports:
- 4000
environment:
TESTING: "true"
GRAPHQL_ENDPOINT: http://traefik/graphql
CONTEXT_PATH: /edit
initialize: ./gradlew --no-daemon tasks
vscode:
settings:
# gradle.autoDetect: "off"
peacock.remoteColor: "#ea0ff2"
extensions:
- johnpapa.vscode-peacock
- GraphQL.vscode-graphql
# - vscjava.vscode-gradle
extras:
- traefik
- named-volumes
namedVolumes:
$HOME/.gradle: recipe-db-recipes-edit-gradle-user-home
$HOME/.vaadin: recipe-db-recipes-edit-vaadin-user-home
.gradle: recipe-db-recipes-edit-gradle
traefik:
network: intranet
labels:
http:
services:
recipe-db-recipes-edit:
loadBalancer:
healthCheck:
interval: 10s
timeout: 1s
path: /health
routers:
recipes-edit:
rule: PathPrefix(`/edit`)
entrypoints: web
---
# yaml-language-server: $schema=../.scripts/project-schema.json
category: frontend
precommit: |
ktfmt src build.gradle.kts
./gradlew --no-daemon compileKotlin detekt
prettier:
ignore:
- ROOT
- "*.kt"
- "*.kts"
- "*.jar"
- "*.png"