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

Error while trying to use Ruby 3.3 #390

Closed
eclectic-coding opened this issue Feb 21, 2024 · 4 comments
Closed

Error while trying to use Ruby 3.3 #390

eclectic-coding opened this issue Feb 21, 2024 · 4 comments

Comments

@eclectic-coding
Copy link

The latest version does not set for ruby-3.3.0. Setting with rvm the default version always fails. See below a simple sample configuration and the results:

docker-compose.yml

version: "3.4"
services:
  ruby:
    build:
      context: .
      dockerfile: Dockerfile.passenger
    ports:
      - "80:80"
      - "443:443"
      - "3000:3000"

Dockerfile:

FROM phusion/passenger-full:3.0.0

# Run this to install ruby version in phusion/passenger-full version
RUN bash -lc "rvm --default use ruby-3.3.0"

Error messages:

> [ruby 2/2] RUN bash -lc "rvm --default use ruby-3.3.0":
0.241 To install do: 'rvm install "ruby-3.3.0"'
0.241 Required ruby-3.3.0 is not installed.
------
failed to solve: process "/bin/sh -c bash -lc \"rvm --default use ruby-3.3.0\"" did not complete successfully: exit code: 1

If I change the rvm default command to a different version, other that 3.2.3, which works because it is the default anyway, the command will fails with ruby not installed.

I have tested using passenger-ruby33 and this container will work, but passenger-full:3.0.0 or higher seems broken

@CamJN
Copy link
Member

CamJN commented Feb 21, 2024

Should be fixed by 8591572

@eclectic-coding
Copy link
Author

Thanks for the fast turn around.
I will test as soon as the version bump is complete

@CamJN
Copy link
Member

CamJN commented Feb 23, 2024

The new version has been pushed. and now that the problem is fixed, it takes a whopping 3.75 hours to build the passenger-full images.

@eclectic-coding
Copy link
Author

Thank you for pushing out this fix quickly. I have tested with the small setup shown in my intro message and I can confirm Ruby 3.3 works fine now.

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