From 3d109108cf364f4b39af1b12e11fc0ebec87403c Mon Sep 17 00:00:00 2001 From: Stephane Bouchet Date: Tue, 21 Oct 2025 17:30:24 +0200 Subject: [PATCH 1/4] Update runtime image to Red Hat UBI 9 PHP 8.3 fix https://github.com/eclipse-che/che/issues/23519 Signed-off-by: Stephane Bouchet --- stacks/php-laravel/2.0.1/devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/php-laravel/2.0.1/devfile.yaml b/stacks/php-laravel/2.0.1/devfile.yaml index 400a9c1ac..af01f8850 100644 --- a/stacks/php-laravel/2.0.1/devfile.yaml +++ b/stacks/php-laravel/2.0.1/devfile.yaml @@ -28,7 +28,7 @@ components: - name: https-laravel targetPort: 8000 protocol: https - image: quay.io/devfile/composer:2.5.8 + image: registry.redhat.io/ubi9/php-83@sha256:7d2c25e76f906aab1e38af8f16ab07ffff9c74e8d3fe9c6b3e8bf9374f9ed057 args: ["tail", "-f", "/dev/null"] memoryLimit: 1024Mi mountSources: true From 3447b5bf579346de9192f550e4043c02f5aee2bc Mon Sep 17 00:00:00 2001 From: Stephane Bouchet Date: Thu, 23 Oct 2025 15:09:49 +0000 Subject: [PATCH 2/4] update to ubi9 Signed-off-by: Stephane Bouchet --- stacks/php-laravel/2.0.1/devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/php-laravel/2.0.1/devfile.yaml b/stacks/php-laravel/2.0.1/devfile.yaml index af01f8850..e8ccc058b 100644 --- a/stacks/php-laravel/2.0.1/devfile.yaml +++ b/stacks/php-laravel/2.0.1/devfile.yaml @@ -28,7 +28,7 @@ components: - name: https-laravel targetPort: 8000 protocol: https - image: registry.redhat.io/ubi9/php-83@sha256:7d2c25e76f906aab1e38af8f16ab07ffff9c74e8d3fe9c6b3e8bf9374f9ed057 + image: quay.io/devfile/universal-developer-image:ubi9-latest args: ["tail", "-f", "/dev/null"] memoryLimit: 1024Mi mountSources: true From 660dc7ec2da9b8ba0c981621a1a537f534392225 Mon Sep 17 00:00:00 2001 From: Stephane Bouchet Date: Mon, 17 Nov 2025 14:05:57 +0000 Subject: [PATCH 3/4] create new version for php laravel Signed-off-by: Stephane Bouchet --- stacks/php-laravel/2.0.1/devfile.yaml | 2 +- stacks/php-laravel/3.0.0/devfile.yaml | 97 +++++++++++++++++++++++++++ stacks/php-laravel/stack.yaml | 1 + 3 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 stacks/php-laravel/3.0.0/devfile.yaml diff --git a/stacks/php-laravel/2.0.1/devfile.yaml b/stacks/php-laravel/2.0.1/devfile.yaml index e8ccc058b..400a9c1ac 100644 --- a/stacks/php-laravel/2.0.1/devfile.yaml +++ b/stacks/php-laravel/2.0.1/devfile.yaml @@ -28,7 +28,7 @@ components: - name: https-laravel targetPort: 8000 protocol: https - image: quay.io/devfile/universal-developer-image:ubi9-latest + image: quay.io/devfile/composer:2.5.8 args: ["tail", "-f", "/dev/null"] memoryLimit: 1024Mi mountSources: true diff --git a/stacks/php-laravel/3.0.0/devfile.yaml b/stacks/php-laravel/3.0.0/devfile.yaml new file mode 100644 index 000000000..e8ccc058b --- /dev/null +++ b/stacks/php-laravel/3.0.0/devfile.yaml @@ -0,0 +1,97 @@ +schemaVersion: 2.2.2 +metadata: + name: php-laravel + displayName: Laravel + description: "Laravel is an open-source PHP framework, which is robust and easy to understand. + It follows a model-view-controller design pattern. + Laravel reuses the existing components of different frameworks which helps in creating a web application. + The web application thus designed is more structured and pragmatic." + icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/laravel.svg + tags: + - PHP + - Composer + - Laravel + projectType: Laravel + language: PHP + provider: Red Hat + version: 2.0.1 +starterProjects: + - name: php-laravel-starter + git: + checkoutFrom: + revision: main + remotes: + origin: https://github.com/devfile-samples/devfile-stack-php-laravel.git +components: + - container: + endpoints: + - name: https-laravel + targetPort: 8000 + protocol: https + image: quay.io/devfile/universal-developer-image:ubi9-latest + args: ["tail", "-f", "/dev/null"] + memoryLimit: 1024Mi + mountSources: true + name: runtime +commands: + - exec: + commandLine: composer install + component: runtime + group: + isDefault: false + kind: build + workingDir: ${PROJECT_SOURCE} + id: install + - exec: + commandLine: cp .env.example .env + component: runtime + group: + isDefault: false + kind: build + workingDir: ${PROJECT_SOURCE} + id: cp-env + - exec: + commandLine: php artisan config:clear + component: runtime + group: + isDefault: false + kind: build + workingDir: ${PROJECT_SOURCE} + id: clear-config + - exec: + commandLine: php artisan key:generate + component: runtime + group: + isDefault: false + kind: build + workingDir: ${PROJECT_SOURCE} + id: gen-new-app-key + - exec: + commandLine: composer dump-autoload + component: runtime + group: + isDefault: false + kind: build + workingDir: ${PROJECT_SOURCE} + id: composer-dump + - composite: + commands: + - install + - cp-env + - clear-config + - gen-new-app-key + - composer-dump + group: + isDefault: true + kind: build + label: Provision Laravel Server + parallel: false + id: init-server + - exec: + commandLine: php artisan serve --host=0.0.0.0 + component: runtime + group: + isDefault: true + kind: run + workingDir: ${PROJECT_SOURCE} + id: run diff --git a/stacks/php-laravel/stack.yaml b/stacks/php-laravel/stack.yaml index 63e9ed77d..25b9366fa 100644 --- a/stacks/php-laravel/stack.yaml +++ b/stacks/php-laravel/stack.yaml @@ -9,4 +9,5 @@ versions: - version: 1.0.1 - version: 2.0.0 - version: 2.0.1 + - version: 3.0.0 default: true From 1dabae152b4fb2ffa1423408dcfd47d35d7846c3 Mon Sep 17 00:00:00 2001 From: Stephane Bouchet Date: Mon, 17 Nov 2025 14:23:53 +0000 Subject: [PATCH 4/4] fix version Signed-off-by: Stephane Bouchet --- stacks/php-laravel/3.0.0/devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/php-laravel/3.0.0/devfile.yaml b/stacks/php-laravel/3.0.0/devfile.yaml index e8ccc058b..48a108686 100644 --- a/stacks/php-laravel/3.0.0/devfile.yaml +++ b/stacks/php-laravel/3.0.0/devfile.yaml @@ -14,7 +14,7 @@ metadata: projectType: Laravel language: PHP provider: Red Hat - version: 2.0.1 + version: 3.0.0 starterProjects: - name: php-laravel-starter git: