-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path.lando.yml
More file actions
330 lines (325 loc) · 6.43 KB
/
.lando.yml
File metadata and controls
330 lines (325 loc) · 6.43 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
name: lando-tooling
compose:
- compose.yml
events:
post-start:
- node: whoami | grep node
- echo "$PRIMARY_SERVICE" | grep yes
services:
node:
api: 3
type: lando
meUser: node
scriptsDir: scripts
services:
image: node:16
command: docker-entrypoint.sh tail -f /dev/null
environment:
PRIMARY_SERVICE: yes
LANDO_WEBROOT_USER: 'node'
LANDO_WEBROOT_GROUP: 'node'
LANDO_WEBROOT_UID: '1000'
LANDO_WEBROOT_GID: '1000'
l337-node:
api: 4
type: l337
image: node:16
command: tail -f /dev/null
user: node
volumes:
- "./:/app"
environment:
SERVICE: l337-node
l337-php:
api: 4
type: l337
image: php:7.1-fpm-alpine
volumes:
- "./:/web"
l337-slim:
api: 4
type: l337
command: tail -f /dev/null
image: alpine:3.18.3
user: root
working_dir: /tmp
lando4:
api: 4
type: lando
command: tail -f /dev/null
image: |
FROM debian
RUN apt-get update -y && apt-get install procps -y
user: bob
tooling:
php:
service: php
description: Run php commands
cmd: php
iamroot:
cmd: echo "$HOME" && echo "$(id)" > /whoami
user: root
service: :service
options:
service:
default: php
alias:
- s
describe: Runs in this service
whoami:
cmd: whoami
service: :service
options:
service:
default: php
alias:
- s
describe: Runs in this service
nodeme:
cmd: whoami
service: :service
options:
service:
default: node
alias:
- s
describe: Runs in this service
stillme:
cmd:
- node: whoami | grep node
- l337-node: whoami | grep node
notme:
cmd: whoami
service: :service
user: www-data
options:
service:
default: node
alias:
- s
describe: Runs in this service
pipesandstuff:
service: node
cmd:
- env | grep LANDO_ > pipe.txt
- echo "more" >> pipe.txt
test:
service: php
cmd:
- php -v
- php -m
description: Run all the tests
test2:
service: l337-php
cmd:
- php -v
- php -m
description: Run all the tests 2
word:
service: :service
cmd: /app/word.sh
level: app
options:
service:
default: web
alias:
- s
describe: Runs in this service
word:
passthrough: true
alias:
- w
describe: Print what the word is
interactive:
type: input
message: What is the word?
default: bird
weight: 600
word-imported:
service: :service
cmd: !import word.sh
level: app
options:
service:
default: web
alias:
- s
describe: Runs in this service
word:
passthrough: true
alias:
- w
describe: Print what the word is
interactive:
type: input
message: What is the word?
default: bird
weight: 600
all-the-words:
cmd:
- web: !import word.sh
- lando4: |
/app/word.sh
- l337-node: /app/word.sh
word-wrapped:
service: :service
cmd: |
#!/bin/bash
/app/word.sh "$@"
level: engine
options:
service:
default: web
alias:
- s
describe: Runs in this service
word:
passthrough: true
alias:
- w
describe: Print what the word is
interactive:
type: input
message: What is the word?
default: bird
weight: 600
word-engine [word]:
service: :service
cmd: /app/word-engine.sh
level: engine
options:
service:
default: web
alias:
- s
describe: Runs in this service
random:
passthrough: true
alias:
- w
describe: Random number
interactive:
type: input
message: What is the random number?
default: 7
weight: 600
lonely-bird:
service: web
cmd: /app/word.sh
dynamic:
cmd: env
service: :service
env:
MILEY: cyrus
options:
service:
default: web
alias:
- s
describe: Runs in this service
env:
cmd:
- php: env | grep SERVICE | grep php
- web: env | grep SERVICE | grep web
- l337-node: env | grep SERVICE | grep l337-node
description: Print service names for php, web, l337-node
busted:
service: web
cmd: i-do-not-exist
envvar:
service: web
cmd: echo "$TAYLOR"
env:
TAYLOR: swift
l4env:
service: lando4
cmd: env
cols:
service: lando4
cmd: sh -c "tput cols > cols"
lines:
service: lando4
cmd: sh -c "tput lines > lines"
listfiles:
service: web
cmd: ls -lsa /app/*
cmdsub:
service: web
cmd: echo "`ls -lsa /app/*`"
oneliner:
service: web
cmd: if [ ! -z "$SPECIAL" ]; then echo "$SPECIAL"; fi
env:
SPECIAL: HOLLA
workdir:
cmd: pwd
service: web
dir: /tmp
emptyopter:
cmd: pwd
service: web
options:
pwd:
cmd: pwd
service: :service
options:
service:
default: web
alias:
- s
describe: Runs in this service
backgrounder:
cmd: sleep infinity &
service: :service
user: root
options:
service:
default: alpine
alias:
- s
describe: Runs in this service
'pwd-app [file]':
cmd: pwd
service: :container
options:
container:
default: node
alias:
- s
describe: Runs in this service
bad-tool: disabled
naughty-tool: fals
everything:
cmd: /app/args.sh
service: node
user: root
usage: $0 everything [arg1] [arg2] MORETHINGS
examples:
- $0 everything thing
- $0 everything stuff morestuff
- $0 this is just for testing
positionals:
arg1:
describe: Uses arg1
type: string
choices:
- thing
- stuff
arg2:
describe: Uses arg2
type: string
sdargs:
cmd: /etc/lando/service/helpers/args.sh
service: node
positionals:
arg1:
describe: Uses arg1
type: string
choices:
- thing
- stuff
arg2:
describe: Uses arg2
type: string
plugins:
"@lando/core": ../..