Skip to content

Commit

Permalink
Add 1.26 (as default)
Browse files Browse the repository at this point in the history
  • Loading branch information
todeveni committed May 27, 2024
1 parent f066a11 commit 10298d1
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builders/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ const path = require('path');
module.exports = {
name: 'nginx',
config: {
version: '1.25',
supported: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23', '1.24', '1.25'],
version: '1.26',
supported: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23', '1.24', '1.25', '1.26'],
pinPairs: {
'1.26': 'bitnami/nginx:1.26.0-debian-12-r1',
'1.25': 'bitnami/nginx:1.25.3-debian-11-r1',
'1.24': 'bitnami/nginx:1.24.0-debian-11-r153',
'1.23': 'bitnami/nginx:1.23.4-debian-11-r24',
Expand Down
11 changes: 11 additions & 0 deletions examples/1.26/.lando.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: lando-nginx-126
services:
defaults:
type: nginx:1.26
build_as_root:
- apt-get update && apt-get install -y curl

# This is important because it lets lando know to test against the plugin in this repo
# DO NOT REMOVE THIS!
plugins:
"@lando/nginx": ../..
44 changes: 44 additions & 0 deletions examples/1.26/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
nginx Example
=============

This example exists primarily to test the following documentation:

* [nginx Service](https://docs.devwithlando.io/tutorials/nginx.html)

Start up tests
--------------

Run the following commands to get up and running with this example.

```bash
# Should start up successfully
lando poweroff
lando start
```

Verification commands
---------------------

Run the following commands to validate things are rolling as they should.

```bash
# Should use 1.26.x as the default version
lando ssh -s defaults -c "nginx -v 2>&1 | grep 1.26"

# Should serve from the app root by default
lando ssh -s defaults -c "curl http://localhost | grep ROOTDIR"

# Should only serve over http by default
lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1
```

Destroy tests
-------------

Run the following commands to trash this app like nothing ever happened.

```bash
# Should be destroyed with success
lando destroy -y
lando poweroff
```
1 change: 1 addition & 0 deletions examples/1.26/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ROOTDIR

0 comments on commit 10298d1

Please sign in to comment.