From 9cb0e5237cac26166b8f3adb136125e748bf4876 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Wed, 16 Oct 2024 13:00:31 -0500 Subject: [PATCH] add curl to nginx --- builders/varnish.js | 1 + examples/custom/README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/builders/varnish.js b/builders/varnish.js index c192190..ccdcb7c 100644 --- a/builders/varnish.js +++ b/builders/varnish.js @@ -22,6 +22,7 @@ const varnishSsl = options => ({ `${options.confDest}/launch.sh:/launch.sh`, `${options.confDest}/${options.defaultFiles.ssl}:/opt/bitnami/nginx/conf/lando.conf`, ], + build_as_root: ['apt-get update && apt-get install -y curl'], }); // Builder diff --git a/examples/custom/README.md b/examples/custom/README.md index 827c563..091bfb4 100644 --- a/examples/custom/README.md +++ b/examples/custom/README.md @@ -22,10 +22,10 @@ Verification commands Run the following commands to validate things are rolling as they should. ```bash -# Should also serve over https if specified +# Should serve over https if specified lando ssh -s custom_ssl -c "curl https://localhost | grep sophisticated" -# Shoule use a custom vcl file if specified +# Should use a custom vcl file if specified lando ssh -s custom -c "cat /etc/varnish/lando.vcl | grep LANDOVARNISH" lando ssh -s custom -c "env | grep LANDO_CUSTOM_VCL | grep YOUBETCHA" lando ssh -s custom -c "curl -I localhost" | grep X-Lando-Varnish | grep capes