-
Notifications
You must be signed in to change notification settings - Fork 237
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
Why include Scala? #251
Comments
We try to bootstrap sbt for a certain scala version so that it is ready for use and does not require any further downloads. I do agree that the separate scala we install is a bit overkill if you only want sbt as sbt will pull in scala in a different folder on bootstrap. Initially the idea was to have an image that could also be used for scala without using sbt. (before the repo was moved over here) docker-sbt/eclipse-temurin/Dockerfile Lines 62 to 71 in 91d72cf
Personally I would not mind removing the separate scala install but that will not change anything regarding labeling of sbt-scala image as we still want to bootstrap the sbt/scala combo. |
Understood. I used to do that too (bootstrapping) but I eventually gave up. With good caching/volumes, I don't mind having everything downloaded one time. Smaller image with less frequent updates too. |
Wanted to check in on this issue - our team has many builds, and we are considering moving from our homegrown docker container to something more official that we're certain does things correctly. However, these images present a challenge for a team that frequently updates libraries using a tool such as scala-steward. We have to update the image tag any time there's a new sbt version or scala version, which basically guarantees that we're constantly building with the "wrong" image. How are others using these images in environments like this? Are there more generic "official" images that I just haven't found yet? |
I would still much prefer a tag that is based solely on the Java version. The image can use any (recent) sbt and any Scala (or even no Scala at all). I'm setting up which sbt and which Scala I want in my project anyway. I would then use "latest Java 21" and be done with that. |
I've been maintaining my own java+sbt image for a few years, but I'd rather switch to yours to make my life simpler. I'm wondering why you include Scala in the image, given that sbt is all you need to run a project. Also, since sbt can download specific versions of itself, why specify a version at all? If all that was specified is the Java version, it would greatly simplify the tags.
For instance, right now, there's no image for the latest LTS Java (17) latest sbt (1.9.0) and latest Scala (3.3.0).(Actually, there is; makes my point about having too many tags...)The text was updated successfully, but these errors were encountered: