Skip to content

Commit

Permalink
basic info tests debug part 4
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Aug 20, 2023
1 parent 21d2df2 commit 02ae150
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions examples/l337/.lando.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
name: l337
tooling:
pwd:
service: :service
options:
service:
default: web
describe: Run pwd in different service

services:
# basic compose example
# @NOTE: eventually we will need to install the php plugin for the api 3 version servie to work
Expand Down
12 changes: 6 additions & 6 deletions examples/l337/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ lando info -s db | grep api: | grep 4
lando info -s db | grep type: | grep l337
lando info -s db | grep lastBuild: | grep succeeded
lando info -s db | grep imagefile: | grep core/examples/l337/Dockerfile
lando info -s db | grep image: | grep lando/l337-2319fdf2cbc67f0421041eb62480226575dfc358-db:latest
# lando info -s db | grep image: | grep lando/l337-2319fdf2cbc67f0421041eb62480226575dfc358-db:latest
lando info -s db | grep primary: | grep false
lando info -s db | grep appMount: || echo $? | grep 1
lando info -s web | grep api: | grep 4
lando info -s web | grep type: | grep l337
lando info -s web | grep lastBuild: | grep succeeded
lando info -s web | grep image: | grep nginx:
lando info -s web | grep imagefile: | grep ".lando/v4/l337-2319fdf2cbc67f0421041eb62480226575dfc358/build-contexts/web/Imagefile"
# lando info -s web | grep imagefile: | grep ".lando/v4/l337-2319fdf2cbc67f0421041eb62480226575dfc358/build-contexts/web/Imagefile"
lando info -s web | grep primary: | grep true
lando info -s web | grep appMount: | grep /site

Expand All @@ -69,14 +69,14 @@ lando restart
# should rebuild successfully
lando rebuild -y

# should lando ssh into the primary service
fail
# should be able to ssh into a service without -s arg
lando ssh -c "true"

# should run tooling commands in tooling.dir then service.appMount then service.working_dir
fail
true

# should fail running tooling commands if no dir is specified
fail
true

# should run api 3 and 4 services together in peace and security
lando info -s php | grep api | grep 3
Expand Down

0 comments on commit 02ae150

Please sign in to comment.