Skip to content

Commit c1e5005

Browse files
authored
Merge pull request #2 from vitaliy-guliy/devfilev2
chore: use PROJECT_SOURCE instead of PROJECTS_ROOT
2 parents 51a4bfd + 4d7c962 commit c1e5005

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

devfile.yaml

+14-11
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ schemaVersion: 2.1.0
22
metadata:
33
name: php-symfony
44
components:
5-
- name: php
5+
- name: tools
66
container:
7-
image: quay.io/devfile/universal-developer-image:ubi8-latest
7+
image: quay.io/devfile/universal-developer-image:ubi8-0e189d9
88
endpoints:
99
- exposure: public
1010
name: symfony
@@ -21,6 +21,7 @@ components:
2121
- name: composer
2222
volume:
2323
size: 512Mi
24+
2425
- name: symfony
2526
volume:
2627
size: 512Mi
@@ -46,27 +47,29 @@ components:
4647
mountSources: false
4748

4849
commands:
49-
- id: install
50+
- id: install-dependencies
5051
exec:
5152
label: "Install dependencies"
52-
component: php
53-
workingDir: ${PROJECTS_ROOT}/php-symfony
53+
component: tools
54+
workingDir: ${PROJECT_SOURCE}
5455
commandLine: "composer install && wget https://get.symfony.com/cli/installer -O - | bash"
5556
group:
5657
kind: build
57-
- id: start
58+
59+
- id: start-web-server
5860
exec:
5961
label: "Start Symfony Web Server"
60-
component: php
61-
workingDir: ${PROJECTS_ROOT}/php-symfony
62+
component: tools
63+
workingDir: ${PROJECT_SOURCE}
6264
commandLine: "$HOME/.symfony/bin/symfony server:start"
6365
group:
6466
kind: run
65-
- id: stop
67+
68+
- id: stop-web-server
6669
exec:
6770
label: "Stop Symfony Web Server"
68-
component: php
69-
workingDir: ${PROJECTS_ROOT}/php-symfony
71+
component: tools
72+
workingDir: ${PROJECT_SOURCE}
7073
commandLine: "$HOME/.symfony/bin/symfony server:stop"
7174
group:
7275
kind: run

0 commit comments

Comments
 (0)