Skip to content

Add full lando - with ahoy and lando tooling#82

Open
silverham wants to merge 35 commits intogovCMS:developfrom
silverham:feature/lando-full
Open

Add full lando - with ahoy and lando tooling#82
silverham wants to merge 35 commits intogovCMS:developfrom
silverham:feature/lando-full

Conversation

@silverham
Copy link
Copy Markdown

Allow lando to be used, so we can have multiples of the same project with no conflict and other goodies.

This contains extra ahoy tooling and 'ahoy like' commands via lando tooling a well. A separate PR has been created without lando ahoy like tooling though.

Feel free to adjust code as required. :-)

Joshua Stuart Graham - EY

@tobybellwood
Copy link
Copy Markdown

I've been working on a slightly simpler implementation over at amazeeio-demos/govcms-lando-demo@main...lando - it relies more on the existing structure rather than a full parallel lando structure.

Where I came unstuck:

  • the lando.type: none implementation in the lando/lagoon plugin doesn't mean don't build it (as the lagoon.type does) - so the services get built locally but without any kind of configuration equivelent in lagoon/lando
  • Lando v4 is just around the corner, and will be turning a lot of the processes on their heads, so we're keeping a watching brief on that
  • there may have been something else, but it slips my mind for now!

joshua-graham-adelphi and others added 26 commits March 6, 2024 14:58
…nique and add note on changing MARIADB_DATA_IMAGE.
@silverham
Copy link
Copy Markdown
Author

Thanks for the thoughts Toby. I guess it didn't want to be tied to a recipe. (heh)

I have updated my "PR" for fun/knowledge sharing so that people can apply this as an addon to their project via a diff/patch file as unlikely to be merged directly. It has a script to get project name, type etc and apply it to lando files.

For example (bash):

wget -q https://github.com/govCMS/scaffold/pull/82.diff
git apply 82.diff
bash scripts/scaffold-existing-project-add-lando.sh
rm 82.diff

# Optional - Create lando local file for untracked overrides
# E.g Change project name for multiple projects of the same one at the same time.
cp .lando.local.example.yml .lando.local.yml

Run:
lando start

Note:

  • Ahoy executed lando commands are in custom/ahoy.lando.yml, not patched directly to avoid conflict (only .gitignore is patched for .lando.local.yml), so needs copy and paste across, Other than that, you can run lando ahoy-[command] where most commands have been ported where possible.
  • Solr is commented out by default in the lando file (uncomment if using it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants