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

Simplify package management #289

Open
staticaland opened this issue Nov 5, 2024 · 1 comment
Open

Simplify package management #289

staticaland opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@staticaland
Copy link
Contributor

staticaland commented Nov 5, 2024

I suggest there should be a .boilerplate folder in the root of the repository. This contains packages.yml.

Example of content in packages.yml:

"/.github/workflows": { <packages> }
"/stacks/dev": { <packages> }
"/stacks/prod": { <packages> }

All packages can be installed by navigating to an output folder:

  • If you're in /stacks/dev, everything in /stacks/dev is installed or updated.
  • If you're in /stacks/dev/app-chainlit, only that stack is installed or updated.
  • If you're in /stacks or /, everything will be installed or updated.

Why

  • Avoid having ../../../.. in output paths.
  • Avoid having to change directory all over the place when working with packages.

Other idea

"repo1": 
    "/.github/workflows": { <packages> }
"repo2":
    "/stacks/dev": { <packages> }
"repo2":
    "/stacks/prod": { <packages> }

Packages config files

  • .boilerplate/dev_terraform.yml
  • .boilerplate/prod_terraform.yml
  • .boilerplate/dev_github_actions.yml
@staticaland staticaland added the enhancement New feature or request label Nov 18, 2024
@falense
Copy link
Contributor

falense commented Nov 18, 2024

@haavardeide suggested having a shared super config file between IaC and App repo.

@falense falense changed the title Simplify package management (proposal) Simplify package management Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants