-
Notifications
You must be signed in to change notification settings - Fork 18
/
skaffold.yaml
133 lines (130 loc) · 3.43 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
apiVersion: skaffold/v2beta26
kind: Config
metadata:
name: apps
deploy:
kubectl:
manifests:
- './infra/k8s/apps/*'
build:
local:
push: false
concurrency: 3
artifacts:
# AUTH
- image: ghcr.io/getlarge/ticketing-auth
context: .
sync:
manual:
- src: .
dest: .
# - src: 'apps/auth'
# dest: .
custom:
buildCommand: npx nx run auth:docker-build --conf=development --tag=dev
dependencies:
command: node ./tools/nx/get-dependencies-cli.js -p auth
# TICKETS
- image: ghcr.io/getlarge/ticketing-tickets
context: .
sync:
manual:
- src: .
dest: .
custom:
buildCommand: npx nx run tickets:docker-build --conf=development --tag=dev
dependencies:
command: node ./tools/nx/get-dependencies-cli.js -p tickets
# ORDERS
- image: ghcr.io/getlarge/ticketing-orders
context: .
sync:
manual:
- src: .
dest: .
custom:
buildCommand: npx nx run orders:docker-build --conf=development --tag=dev
dependencies:
command: node ./tools/nx/get-dependencies-cli.js -p orders
# EXPIRATION
- image: ghcr.io/getlarge/ticketing-expiration
context: .
sync:
manual:
- src: .
dest: .
custom:
buildCommand: npx nx run expiration:docker-build --conf=development --tag=dev
dependencies:
command: node ./tools/nx/get-dependencies-cli.js -p expiration
# PAYMENTS
- image: ghcr.io/getlarge/ticketing-payments
context: .
sync:
manual:
- src: .
dest: .
custom:
buildCommand: npx nx run payments:docker-build --conf=development --tag=dev
dependencies:
command: node ./tools/nx/get-dependencies-cli.js -p payments
# CLIENT - NEXTJS
# - image: ghcr.io/getlarge/ticketing-client
# context: .
# sync:
# manual:
# - src: .
# dest: .
# custom:
# buildCommand: npx nx run client:docker-build --conf=development --tag=dev --file=apps/client/Dockerfile
# dependencies:
# command: node ./tools/nx/get-dependencies-cli.js -p client
# CLIENT - ANGULAR
- image: ghcr.io/getlarge/ticketing-ng-client
context: .
sync:
manual:
- src: .
dest: .
custom:
buildCommand: npx nx run ng-client:docker-build --conf=development --tag=dev --file=infra/docker/Dockerfile.frontend
dependencies:
command: node ./tools/nx/get-dependencies-cli.js -p ng-client
tagPolicy:
envTemplate:
template: dev
---
apiVersion: skaffold/v2beta26
kind: Config
metadata:
name: deps
deploy:
kubectl:
manifests:
- './infra/k8s/deps/*'
portForward:
- resourceType: service
resourceName: auth-mongo-srv
namespace: default
port: 27017
localPort: 27017
- resourceType: service
resourceName: orders-mongo-srv
namespace: default
port: 27017
localPort: 27018
- resourceType: service
resourceName: tickets-mongo-srv
namespace: default
port: 27017
localPort: 27019
- resourceType: service
resourceName: payments-mongo-srv
namespace: default
port: 27017
localPort: 27020
- resourceType: service
resourceName: expiration-redis-srv
namespace: default
port: 6379
localPort: 6379