Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: refactor local development for more configuration #3829

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shreddedbacon
Copy link
Member

General Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

Database Migrations

  • If your PR contains a database migation, it MUST be the latest in date order alphabetically

Refactors the make targets to allow for setting up a local-stack with the latest stable version of the lagoon-core, lagoon-remote, and lagoon-build-deploy charts, instead of bleeding edge. This also allows for the local-stack to be spun up much faster for not having to build the images prior.

These changes allow for someone install a local-stack with the stable version, then once it is running perform a Lagoon upgrade by re-installing just the Lagoon components (core, remote, build-deploy) with their latest charts or fresh built service images.

It is also possible to deselect which DBaaS providers are installed as part of a local-stack if you don't need them. This can be useful for mac users who currently have issues due to MongoDB not working on arm based systems, by default on mac or arm based systems the MongoDB provider will no longer be installed. The test suites may not work properly for any MongoDB based tests though, so be aware of this.

Additionally, the k3d config is setup to allow for the host docker socket to be used, this allows local-stacks being torn down and started again to leverage the host docker so that non-built images don't need to be re-pulled within the cluster if they're already present on the host. This should speed up the creation of subsequent local-stack clusters.

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.

1 participant