Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions stacks/php-laravel/3.0.0/devfile.yaml
Original file line number Diff line number Diff line change
@@ -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: 3.0.0
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
1 change: 1 addition & 0 deletions stacks/php-laravel/stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ versions:
- version: 1.0.1
- version: 2.0.0
- version: 2.0.1
- version: 3.0.0
default: true
Loading