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

docker image for the latest ruby release #111

Closed
stoivo opened this issue Feb 10, 2023 · 3 comments
Closed

docker image for the latest ruby release #111

stoivo opened this issue Feb 10, 2023 · 3 comments

Comments

@stoivo
Copy link

stoivo commented Feb 10, 2023

It would be nice if there existes imaged like cimg/ruby:3 which would give me the most recent ruby image withing major release. Maybe there should exist cimg/ruby:lastest this is just the latest release.

And if you want to be super cool a nighlty release of master of ruby would be cool like cimg/ruby:master or dev or nightly

@BytesGuy
Copy link
Contributor

@stoivo Hi thanks for the suggestions!

Right now we have no plans to introduce a latest tag for any Docker Convenience Images and this is by design.

We do this to ensure that jobs based on our images are more deterministic in nature, with minimal changes due to us pushing new tags that switch current to a new major version for example.

This helps minimise the risk of breaking changes occurring when customers have not explicitly updated their configurations.

We provide tags for major.minor versions which point to the latest patch releases as these are generally compatible and do not cause breaking changes.

The idea for a nightly build is interesting, but we will have to consider whether the points above would also apply :)

I hope this explanation helps and thanks for the suggestions! I will close this issue out, but please feel free to re-open it with any additional comments.

@stoivo
Copy link
Author

stoivo commented Mar 26, 2023

For gems, I like to test for the next release just to make make sure my gem would work with latest version of ruby. This job is allowed fail.

@BytesGuy
Copy link
Contributor

@stoivo As we don't release alpha/beta/rc versions of upcoming releases, I think your best option here is to create a custom image based on our own Dockerfile template. This would allow you to test on preview versions ahead of time. In this instance as Ruby is simply downloaded and compiled, you just need to pass the correct url into here:

downloadURL="https://cache.ruby-lang.org/pub/ruby/${RUBY_MAJOR}/ruby-$RUBY_VERSION.tar.gz" && \

I hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants