Create a cut-down version of Lagoon suitable for local build/startup/testing #1935
Replies: 3 comments
-
I've got a
The reason that it contains Maybe we could just move the components that make up "core lagoon" (everything in the list above except Going forward it would be great if each non-core "subsystem" (logging, harbor, etc.) had its own test suite as per #1905 |
Beta Was this translation helpful? Give feedback.
-
There's the extends option for
|
Beta Was this translation helpful? Give feedback.
-
Building Lagoon locally is definitely a pain point at the moment and could significantly slow-down new contributions (I faced this issue personally 😅 ). e.g. for a local Keycloak 1024m could be enough |
Beta Was this translation helpful? Give feedback.
-
Currently a full build of Lagoon locally will start all the services in the docker-compose file.
This starts a stack of 35(!) services, which are then used to deploy local/test sites into either minishift or k3s depending on your setup.
In order for all 35 services to start, you also need to build the full repertoire of 110(!!) images.
We should look at providing a cut-down version available via the makefile to spin-up only what's needed to run the Lagoon stack locally. This would also mean that the images used to build them would also not be required to be built.
From a quick look, the following could be considered as unnecessary for local build:
We should provide the documentation needed to add them into a local build should you wish to, and of course, the full docker-compose option will still be there.
From my rough estimates, a third of our images are "core" Lagoon, a third are application (php, nginx, python) images, and a third are production necessary images.
Being able to run the leaner, meaner version would certainly speed up local development, reduce the barrier to entry, and lead to smarter, faster testing.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions