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

🐋 building the devcontainer is slow #4

Open
DerekNonGeneric opened this issue Jan 11, 2021 · 4 comments
Open

🐋 building the devcontainer is slow #4

DerekNonGeneric opened this issue Jan 11, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@DerekNonGeneric
Copy link
Member

DerekNonGeneric commented Jan 11, 2021

Building the devcontainer is slow because rbenv install takes forever as it is building ruby from source. We can circumvent this by using rvm. Ideally, we would have an rvm.fish just like we have nvm.fish, but the former does not yet exist. The task at hand is to write one of those in pure fish 3.0, install it using fisher, and install the pre-compiled binary for this platform using it.

@DerekNonGeneric DerekNonGeneric changed the title 🐋 building the devcointainer is slow 🐋 building the devcontainer is slow Jan 11, 2021
@DerekNonGeneric DerekNonGeneric added the enhancement New feature or request label Jan 11, 2021
@DerekNonGeneric
Copy link
Member Author

I do not like that so much of the logic involved in setting up/building the devcontainer takes place at the expense of contributor time. I would like to be able to have all of that take place elsewhere and provide users of this project something similar to https://github.com/andreiborisov/docker-fish including the whole dev environment potentially as additional "layers".

@DerekNonGeneric
Copy link
Member Author

The setup-ruby GitHub action is installing pre-built binaries from the ruby-builder project's latest releases.

@DerekNonGeneric DerekNonGeneric transferred this issue from OpenINF/openinf.github.io Sep 30, 2022
DerekNonGeneric added a commit to OpenINF/.github that referenced this issue May 11, 2023
@DerekNonGeneric
Copy link
Member Author

propose to create a new rbenv plugin called ruby-builder for installing pre-built binaries from the ruby-builder project's latest releases.

this is the only alternative i see because ruby-build doesn't let you install pre-built binaries.

@DerekNonGeneric
Copy link
Member Author

[…] to investigate differences between ruby-builder and how we build Ruby from our side.
The main difference is that you build with shared libs support that means that binaries are bound to location where they were built and can’t be run from different location.
ruby/setup-ruby#98 (comment)

Preliminary findings show that they are still built with shared libs support:

/home/vscode/.rbenv/versions/3.2.2/bin/ruby: error while loading shared libraries: libruby.so.3.2: cannot open shared object file: No such file or directory

Binaries are bound to location where they were built and can’t be run from different location.

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

No branches or pull requests

1 participant