Skip to content

Update Dockerfile for Ruby 3.1#201

Open
mkasberg wants to merge 1 commit into
jekyll:masterfrom
mkasberg:dockerfile
Open

Update Dockerfile for Ruby 3.1#201
mkasberg wants to merge 1 commit into
jekyll:masterfrom
mkasberg:dockerfile

Conversation

@mkasberg

@mkasberg mkasberg commented Oct 2, 2022

Copy link
Copy Markdown
Contributor

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

mkasberg commented Oct 2, 2022

Copy link
Copy Markdown
Contributor Author

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

mkasberg commented Oct 2, 2022

Copy link
Copy Markdown
Contributor Author

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.

1 participant