-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkspace.yaml
More file actions
106 lines (106 loc) · 2.32 KB
/
workspace.yaml
File metadata and controls
106 lines (106 loc) · 2.32 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"metadata": {
"name": "php7.2"
},
"components": [
{
"id": "redhat/php/latest",
"memoryLimit": "1Gi",
"type": "chePlugin"
},
{
"id": "redhat/php-debugger/latest",
"memoryLimit": "256Mi",
"type": "chePlugin"
},
{
"mountSources": true,
"endpoints": [
{
"name": "8000/tcp",
"port": 8000
}
],
"memoryLimit": "1Gi",
"type": "dockerimage",
"volumes": [
{
"name": "composer",
"containerPath": "/home/user/.composer"
}
],
"alias": "php",
"image": "quay.io/timoteo7/che-php7.2"
},
{
"mountSources": false,
"endpoints": [
{
"name": "db",
"port": 3306,
"attributes": {
"discoverable": "true"
}
}
],
"memoryLimit": "256Mi",
"type": "dockerimage",
"alias": "mysql",
"image": "docker.io/centos/mysql-57-centos7",
"env": [
{
"value": "homestead",
"name": "MYSQL_USER"
},
{
"value": "secret",
"name": "MYSQL_PASSWORD"
},
{
"value": "secret",
"name": "MYSQL_ROOT_PASSWORD"
},
{
"value": "homestead",
"name": "MYSQL_DATABASE"
}
]
}
],
"apiVersion": "1.0.0",
"commands": [
{
"name": " 1 - Criar projeto Laravel",
"actions": [
{
"workdir": "${CHE_PROJECTS_ROOT}",
"type": "exec",
"command": "composer create-project laravel/laravel tutorial_laravel && cd tutorial_laravel",
"component": "php"
}
]
},
{
"name": " 2 - Versionar",
"actions": [
{
"workdir": "${CHE_PROJECTS_ROOT}/tutorial_laravel",
"type": "exec",
"command": "git init && git add . && git commit -m 'Laravel'",
"component": "php"
}
]
},
{
"name": " 3 - SQLite",
"actions": [
{
"workdir": "${CHE_PROJECTS_ROOT}/tutorial_laravel",
"type": "exec",
"command": 'sed -i "/DB_CONNECTION=/ s/mysql/sqlite/" .env && sed -i "s/\(DB_DATABASE=\)/#\1/" .env && touch database/database.sqlite',
"component": "php"
}
]
}
]
}