-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevfile.yaml
53 lines (53 loc) · 1.27 KB
/
devfile.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
schemaVersion: 2.1.0
metadata:
name: php-di
components:
- name: tools
container:
image: quay.io/devspaces/udi-rhel8:3.10
memoryLimit: 1Gi
endpoints:
- exposure: public
name: di
protocol: http
targetPort: 8000
volumeMounts:
- name: composer
path: /home/user/.composer
- name: composer
volume:
size: 1G
commands:
- id: 1-install-dependencies
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/demo
commandLine: composer install
group:
kind: build
- id: 2-index-workspace
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/demo
commandLine: |
msg="# Execute 'Intelephense: Index workspace' from Command palette (F1) to fix diagnostics #"
edge=$(echo "$msg" | sed 's/./#/g')
echo "$edge"
echo "$msg"
echo "$edge"
group:
kind: build
- id: 3-run-web-application
exec:
component: tools
commandLine: "php -S 0.0.0.0:8000 -t web/"
workingDir: ${PROJECTS_ROOT}/demo
group:
kind: run
- id: 4-run-cli-application
exec:
component: tools
commandLine: "php console.php"
workingDir: ${PROJECTS_ROOT}/demo
group:
kind: run