Replies: 3 comments 1 reply
-
Closed accidentally, reopening! |
Beta Was this translation helpful? Give feedback.
-
Hello! 👋 Thanks for writing a detailed description.
Unfortunately, currently the spec and the CLI is expecting the presence of
How about setting the
Currently, the |
Beta Was this translation helpful? Give feedback.
-
Many thanks for your answers!
Ok, I will add empty
The point is, we have dozens of teams and dozens of containers and I want to automatically set what is needed via the feature instead of instruct each team to adjust the devcontainer.json file.
I see, thanks for the explanation. An optional dependency is defined via |
Beta Was this translation helpful? Give feedback.
-
In the process of put the whole development into containers, we found the need for some kind of meta feature.
A simple example:
For go development, we use the official
ghcr.io/devcontainers/features/go
feature but usually, we want to redirect the download of go packages to our own Artifactory and therefore also set theGOPROXY
environment variable.To add this as a meta feature, I suppose this would look like;
So regarding this, I have two questions:
install.sh
file as this is not needed? Currently I just add an empty file for it. Is there a better way?dependsOn
defines a hard dependency togo:1
but I would like to leave that open to the consumer of our go meta package.So if the user defines no go package in the
devcontainer.json
, I should us the latest, if he definesgo:1
, it should use that version.Currently, Feature Equality seems to take into account the version number. So if I have no number in my meta package and version 1 in the devcontainer.json, it will install the go feature twice. Are there ways to get this done nicer? Like just have a hard dependency on a package without any version or options?
If it is unclear, I can clarify this further. Many thanks for any input!
Beta Was this translation helpful? Give feedback.
All reactions