Support distinguishing between development vs production dependencies #606
Replies: 2 comments
-
|
This is an interesting idea. One option might be something like this: git add tea.dev.yaml tea.prod.yaml
...
git clone foo
ln -s tea.dev.yaml tea.yaml
cd .You lose some of the automaticality[wordmark pending], but you'd get finer-grained control. You could also use a tea-script in the language of your choice to manage that for you. In theory, extra deps are harmless but not costless; this isn't always true, but it should be true in your scenario. You could also compose your environments manually, say, by having a file like #!/bin/sh
tea +kubernetes.io/minikube shTo allow loading your richer dev-env. |
Beta Was this translation helpful? Give feedback.
-
|
Good call. I'm surprised this hasn't come up before. So one file would be: dependencies:
foo.com: ^1
production:
dependencies:
bar.org: ^2
development:
dependencies:
baz.com: ^3Which seems to allow for everything. Multifiles is a possibility, but it always seemed messy to me. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Use Case
I have some dependencies that I want tea to install when I'm developing the app locally (e.g.
minikubefor a local kubernetes cluster andkubectlto interact with it), but then in CI/CD I only need a subset of those dependencies (I wouldn't needminikubein CI/CD but I still needkubectlfor updating the live kubernetes cluster).Right now, all these dependencies (including development-only dependencies) are specified in one
tea.yamlfile in the root of my repository and there doesn't seem to be a way to make tea filter out certain dependencies to skip in production, or to install dependencies from a separate YAML file on CI/CD (e.g. atea.prod.yamlfile) that I'd specify production-only dependencies in.Beta Was this translation helpful? Give feedback.
All reactions