-
Notifications
You must be signed in to change notification settings - Fork 32
/
devspace.yaml
157 lines (149 loc) · 4.8 KB
/
devspace.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: v2beta1
name: backstage
# `vars` specifies variables which may be used as ${VAR_NAME} in devspace.yaml
vars:
IMAGE: ghcr.io/devxp-tech/backstage
pipelines:
# Override the default pipeline for 'devspace dev'
dev:
run: |-
run_dependencies --all # 1. Deploy any projects this project needs (see "dependencies")
create_deployments --all # 2. Deploy Helm charts and manifests specfied as "deployments"
start_dev --all # 3. Start dev mode "app" (see "dev" section
# This is a list of `images` that DevSpace can build for this project
# We recommend to skip image building during development (devspace dev) as much as possible
images:
app:
image: ${IMAGE}
dockerfile: ./Dockerfile
build:
disabled: true
# createPullSecret: true
# This is a list of `deployments` that DevSpace can create for this project
deployments:
app:
helm:
chart:
name: devxp-dev
version: 0.0.3
repo: https://devxp-tech.github.io/helm-charts
values:
name: backstage
serviceAccount:
name: backstage
service:
port: 3000
container:
port: 7007
envs:
- name: POSTGRES_HOST
value: db-postgresql
- name: POSTGRES_PORT
value: 5432
- name: POSTGRES_USER
value: ${POSTGRES_USER}
- name: POSTGRES_PASSWORD
value: ${POSTGRES_PASSWORD}
- name: POSTGRES_DATABASE
value: backstage
- name: PGDATABASE
value: backstage
- name: ARGOCD_AUTH_TOKEN
value: ${ARGOCD_AUTH_TOKEN}
- name: AUTH_GITHUB_CLIENT_ID
value: ${AUTH_GITHUB_CLIENT_ID}
- name: AUTH_GITHUB_CLIENT_SECRET
value: ${AUTH_GITHUB_CLIENT_SECRET}
- name: ENV
value: development
- name: GITHUB_ACCESS_TOKEN
value: ${GITHUB_ACCESS_TOKEN}
- name: GIT_DISCOVERY_ACROSS_FILESYSTEM
value: 1
- name: GRAFANA_TOKEN
value: ${GRAFANA_TOKEN}
- name: GITHUB_TOKEN
value: ${GITHUB_TOKEN}
- name: K8S_TOKEN
value: ${K8S_TOKEN}
- name: K8S_URL
value: ${K8S_URL}
- name: SONARQUBE_TOKEN
value: ${SONARQUBE_TOKEN}
- name: TECHDOCS_BUCKET
value: ${TECHDOCS_BUCKET}
resources:
requests:
cpu: "100m"
memory: "256Mi"
limits:
cpu: "200m"
memory: "512Mi"
db:
helm:
chart:
name: postgresql
version: 12.2.1
repo: https://charts.bitnami.com/bitnami
values:
global:
postgresql:
auth:
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
postgresPassword: ${POSTGRES_PASSWORD}
database: "backstage"
auth:
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
postgresPassword: ${POSTGRES_PASSWORD}
database: "backstage"
# This is a list of `dev` containers that are based on the containers created by your deployments
dev:
app:
# Search for the container that runs this image
imageSelector: ${IMAGE}
# Replace the container image with this dev-optimized image (allows to skip image building during development)
devImage: ghcr.io/loft-sh/devspace-containers/javascript:18-alpine
logs: {}
# command: ["node", "packages/backend", "--config", "app-config.yaml"]
workingDir: /app
# Sync files between the local filesystem and the development container
sync:
- path: ./app:/app
excludePaths:
- .git/
uploadExcludePaths:
- Dockerfile
- target/
- .git/
uploadExcludeFile: .dockerignore
# onUpload:
# restartContainer: true
terminal:
command: ./devspace_start.sh
# Forward the following ports to be able access your application via localhost
ports:
- port: 23450:2345
# - port: 3000:3000
- port: 7007:7007
# Open the following URLs once they return an HTTP status code other than 502 or 503
open:
- url: http://backstage.local:7007
- url: http://localhost:8090
# Use the `commands` section to define repeatable dev workflows for this project
commands:
migrate-db:
command: |-
echo 'This is a cross-platform, shared command that can be used to codify any kind of dev task.'
echo 'Anyone using this project can invoke it via "devspace run migrate-db"'
test:
command: |-
go test -v ./...
# Define dependencies to other projects with a devspace.yaml
# dependencies:
# homepage:
# git: https://github.com/devxp-tech/homepage
# branch: main
# pipeline: dev
## Teste