Skip to content

Commit e8926f0

Browse files
authored
Update runtime image to Red Hat UBI 9 PHP 8.3 (#644)
* Update runtime image to Red Hat UBI 9 PHP 8.3 fix eclipse-che/che#23519 Signed-off-by: Stephane Bouchet <sbouchet@redhat.com> * update to ubi9 Signed-off-by: Stephane Bouchet <sbouchet@redhat.com> * create new version for php laravel Signed-off-by: Stephane Bouchet <sbouchet@redhat.com> * fix version Signed-off-by: Stephane Bouchet <sbouchet@redhat.com> --------- Signed-off-by: Stephane Bouchet <sbouchet@redhat.com>
1 parent 7ddcd86 commit e8926f0

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
schemaVersion: 2.2.2
2+
metadata:
3+
name: php-laravel
4+
displayName: Laravel
5+
description: "Laravel is an open-source PHP framework, which is robust and easy to understand.
6+
It follows a model-view-controller design pattern.
7+
Laravel reuses the existing components of different frameworks which helps in creating a web application.
8+
The web application thus designed is more structured and pragmatic."
9+
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/laravel.svg
10+
tags:
11+
- PHP
12+
- Composer
13+
- Laravel
14+
projectType: Laravel
15+
language: PHP
16+
provider: Red Hat
17+
version: 3.0.0
18+
starterProjects:
19+
- name: php-laravel-starter
20+
git:
21+
checkoutFrom:
22+
revision: main
23+
remotes:
24+
origin: https://github.com/devfile-samples/devfile-stack-php-laravel.git
25+
components:
26+
- container:
27+
endpoints:
28+
- name: https-laravel
29+
targetPort: 8000
30+
protocol: https
31+
image: quay.io/devfile/universal-developer-image:ubi9-latest
32+
args: ["tail", "-f", "/dev/null"]
33+
memoryLimit: 1024Mi
34+
mountSources: true
35+
name: runtime
36+
commands:
37+
- exec:
38+
commandLine: composer install
39+
component: runtime
40+
group:
41+
isDefault: false
42+
kind: build
43+
workingDir: ${PROJECT_SOURCE}
44+
id: install
45+
- exec:
46+
commandLine: cp .env.example .env
47+
component: runtime
48+
group:
49+
isDefault: false
50+
kind: build
51+
workingDir: ${PROJECT_SOURCE}
52+
id: cp-env
53+
- exec:
54+
commandLine: php artisan config:clear
55+
component: runtime
56+
group:
57+
isDefault: false
58+
kind: build
59+
workingDir: ${PROJECT_SOURCE}
60+
id: clear-config
61+
- exec:
62+
commandLine: php artisan key:generate
63+
component: runtime
64+
group:
65+
isDefault: false
66+
kind: build
67+
workingDir: ${PROJECT_SOURCE}
68+
id: gen-new-app-key
69+
- exec:
70+
commandLine: composer dump-autoload
71+
component: runtime
72+
group:
73+
isDefault: false
74+
kind: build
75+
workingDir: ${PROJECT_SOURCE}
76+
id: composer-dump
77+
- composite:
78+
commands:
79+
- install
80+
- cp-env
81+
- clear-config
82+
- gen-new-app-key
83+
- composer-dump
84+
group:
85+
isDefault: true
86+
kind: build
87+
label: Provision Laravel Server
88+
parallel: false
89+
id: init-server
90+
- exec:
91+
commandLine: php artisan serve --host=0.0.0.0
92+
component: runtime
93+
group:
94+
isDefault: true
95+
kind: run
96+
workingDir: ${PROJECT_SOURCE}
97+
id: run

stacks/php-laravel/stack.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ versions:
99
- version: 1.0.1
1010
- version: 2.0.0
1111
- version: 2.0.1
12+
- version: 3.0.0
1213
default: true

0 commit comments

Comments
 (0)