devcontainers / features

A collection of Dev Container Features managed by Dev Container spec maintainers. See https://github.com/devcontainers/feature-starter to publish your own
https://containers.dev/features
MIT License
818 stars 319 forks source link

Support installation via .sdkmanrc #729

Open eddumelendez opened 9 months ago

eddumelendez commented 9 months ago

I'm interested in Java (via SDKMan) but this will apply to any tool available via SDKMan. SDKMan supports installing tools if those are listed in .sdkmanrc file, see the docs. So, if repositories contain .sdkmanrc with content java=21-tem then sdk env install will install Java 21 from Temurin vendor.

samruddhikhandale commented 8 months ago

Hi 👋

This will be a pretty cool enhancement to the Java Feature 💡 Wondering, @eddumelendez if you'd be interested in contributing a PR with the proposed changes? We appreciate the support from the community.

Side note, the Java Feature accepts jdkDistro Feature option where you can currently specify tem for installing the Temurin JDK distro. See https://github.com/devcontainers/features/blob/main/src/java/README.md#options