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

Update Dockerfile for Ruby 3.1 #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mkasberg
Copy link
Contributor

@mkasberg mkasberg commented Oct 2, 2022

While working on Ruby 3 support several months ago, I noticed the Dockerfile was really stale. I didn't immediately fix this at the time, but made a mental note to come back to it sometime.

This Dockerfile is intended to be used for development. It was added in #104 (discussed in detail at #101). The documentation for using this is still available (and accurate) at https://jekyll.github.io/classifier-reborn/development#development-using-docker.

classifier-reborn currently supports ruby 2.7, 3.0, and 3.1 (as you can see in ci.yml). Since we can only (easily) put one ruby version in the Dockerfile, using the most recent version made sense to me. Doing so means we have to use Numo instead of GSL since GSL isn't currently supported on Ruby 3.x.

The MAINTAINER dockerfile instruction is deprecated, so I removed it. (It isn't necessary anyway on a Dockerfile that doesn't publish a build.)

While working on Ruby 3 support several months ago, I noticed the
[Dockerfile](https://github.com/jekyll/classifier-reborn/blob/c3e5a84c3e0915d20ab52f2b783703575584d4a2/Dockerfile)
was really stale. I didn't immediately fix this at the time, but made a
mental note to come back to it sometime.

This Dockerfile is intended to be used for development. It was added in
jekyll#104 (discussed in
detail at jekyll#101). The
documentation for using this is still available (and accurate) at
https://jekyll.github.io/classifier-reborn/development#development-using-docker.

classifier-reborn currently supports ruby 2.7, 3.0, and 3.1 (as you can
see in `ci.yml`). Since we can only (easily) put one ruby version in the
Dockerfile, using the most recent version made sense to me. Doing so
means we have to use Numo instead of GSL since GSL isn't currently
supported on Ruby 3.x.

The `MAINTAINER` dockerfile instruction is deprecated, so I removed it.
(It isn't necessary anyway on a Dockerfile that doesn't publish a
build.)
@mkasberg
Copy link
Contributor Author

mkasberg commented Oct 2, 2022

Since this Dockerfile is intended for local development, I wonder if we should consider using a VS Code Dev Container instead of a plain Dockerfile. Would you be open to that idea if I implemented it?

@mkasberg
Copy link
Contributor Author

mkasberg commented Oct 2, 2022

Hm, looks like Redis tests are failing in Ruby 3.x... I wouldn't expect this change to affect that... Perhaps I'll see if I can find some time to investigate more...

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

Successfully merging this pull request may close these issues.

None yet

1 participant