-
Notifications
You must be signed in to change notification settings - Fork 3
/
skaffold.yaml
116 lines (112 loc) · 2.63 KB
/
skaffold.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
apiVersion: skaffold/v3
kind: Config
build:
artifacts:
- image: headless-lms
context: services/headless-lms
sync:
manual:
- src: "**/*.rs"
dest: /app
- src: "**/*.sql"
dest: /app
- src: shared-module/**/*
dest: /app
docker:
dockerfile: Dockerfile
- image: cms
context: services/cms
sync:
manual:
- src: src/**/*
dest: /app
docker:
dockerfile: Dockerfile
- image: main-frontend
context: services/main-frontend
sync:
manual:
- src: src/**/*
dest: /app
docker:
dockerfile: Dockerfile
- image: example-exercise
context: services/example-exercise
sync:
manual:
- src: src/**/*
dest: /app
docker:
dockerfile: Dockerfile
- image: course-material
context: services/course-material
sync:
manual:
- src: src/**/*
dest: /app
docker:
dockerfile: Dockerfile
- image: quizzes
context: services/quizzes
sync:
manual:
- src: src/**/*
dest: /app
docker:
dockerfile: Dockerfile
- image: tmc
context: services/tmc
sync:
manual:
- src: src/**/*
dest: /app
docker:
dockerfile: Dockerfile
tagPolicy:
# sha256 tag policy pushes the latest tag, which is used for caching
sha256: {}
local:
# Allow parallel builds
concurrency: 0
manifests:
kustomize:
paths:
- kubernetes/dev
deploy:
kubeContext: minikube
kubectl:
hooks:
after:
- host:
command: ["bash", "-c", "bin/warm-routes &"]
before:
- host:
command:
[
"sh",
"-c",
"echo 'Waiting for the ingress to be ready.' && echo '> kubectl wait --namespace ingress-nginx --for=condition=available deployment/ingress-nginx-controller' && kubectl wait --namespace ingress-nginx --for=condition=available deployment/ingress-nginx-controller",
]
portForward:
- resourceType: statefulset
resourceName: postgres
namespace: default
port: 5432
localPort: 54328
- resourceType: statefulset
resourceName: redis
namespace: default
port: 6379
localPort: 63798
profiles:
- name: only-db
patches:
- op: remove
path: /build/artifacts
- op: remove
path: /manifests/kustomize
manifests:
rawYaml:
- kubernetes/dev/postgres-dev.yml
deploy:
kubectl: {}