Skip to content

Commit

Permalink
reboot l337 tests part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Sep 8, 2023
1 parent 8f9a4bf commit d2d5451
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
35 changes: 14 additions & 21 deletions examples/l337/.lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,20 @@ services:
moreHttpPorts:
- 8888

# # image features
# image-1:
# api: 4
# working_dir: "/tmp"
# image: "nginx:1.21"
# environment:
# PIKE: "MOUNT"
# image-2:
# api: 4
# working_dir: "/tmp"
# image: "./images/nginx/Dockerfile"
# image-3:
# api: 4
# working_dir: "/tmp"
# image: |
# # test weird indentation and casing
# FROM nginx:1.20
# ENV SPOCK NIMOY
# ENV TEST THIS
# copy file1 /file1
# COPY file1 /file4
# image features
image-1:
api: 4
image: "nginx:1.21"
image-2:
api: 4
image: "./images/nginx/Dockerfile"
image-3:
api: 4
image: |
# also test weird indentation and casing
FROM nginx:1.20
copy file1 /file1
# image-4:
# api: 4
# working_dir: "/tmp"
Expand Down
6 changes: 3 additions & 3 deletions examples/l337/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ lando info -s web | grep lastBuild: | grep never
lando info -s web | grep -z image: | grep Imagefile
lando info -s web | grep primary: | grep true
lando info -s web | grep appMount: | grep /site
lando info -s db | grep user: | grep nginx
lando info -s db | grep hostnames: | grep db.l337.internal
lando info -s web | grep user: | grep nginx
lando info -s web | grep hostnames: | grep db.l337.internal
cat $(lando info -s web --path "[0].image" --format json | tr -d '"') | grep ENV | grep SERVICE | grep web

# should start again successfully
Expand All @@ -61,7 +61,7 @@ lando info -s web | grep lastBuild: | grep succeeded

# should use web as the primary service for tooling and events
lando ssh -c "env" | grep SERVICE | grep web
lando | grep SERVICE | grep web
lando env | grep SERVICE | grep web

# should allow legacy meUser to work like it does for v3
lando whoami | grep nginx
Expand Down

0 comments on commit d2d5451

Please sign in to comment.