-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathskaffold.api.yaml
62 lines (61 loc) · 1.67 KB
/
skaffold.api.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
apiVersion: skaffold/v2beta26
kind: Config
requires:
- path: ./skaffold.base.yaml
build:
local:
useBuildkit: true
push: false
artifacts:
- image: db
context: .
docker:
dockerfile: apps/db/Dockerfile
buildArgs:
# These vars are different per each developer and cannot be part of ConfigMap in git
SOLOMON_DEV_NAMESPACE: '{{.SOLOMON_DEV_NAMESPACE}}'
- image: api.dev
context: .
requires:
- image: solomon_base
alias: SOLOMON_BASE
sync:
manual:
- src: 'apps/api/src/**/*'
dest: '/usr/src'
- src: 'libs/api/*/src/**/*'
dest: '/usr/src'
- src: 'libs/backend/*/src/**/*'
dest: '/usr/src'
- src: 'libs/shared/*/src/**/*'
dest: '/usr/src'
docker:
dockerfile: apps/api/Dockerfile
target: dev
buildArgs:
# These vars are different per each developer and cannot be part of ConfigMap in git
SOLOMON_DEV_NAMESPACE: '{{.SOLOMON_DEV_NAMESPACE}}'
deploy:
kubeContext: docker-desktop
helm:
releases:
- name: postgresql
repo: https://charts.bitnami.com/bitnami
remoteChart: postgresql
version: 10.12.3
overrides:
postgresqlPassword: 'postgres'
initdbScripts:
solomon-db.sql: |
CREATE DATABASE solomon;
GRANT ALL PRIVILEGES ON DATABASE solomon_db TO postgres;
persistence:
enabled: false
kubectl:
manifests:
- tools/k8s/dev/api/*.yaml
portForward:
# Expose API for E2E testing
- resourceType: service
resourceName: api
port: 3000