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

Install requirements for a Ruby codebase using RubyGems #17

Open
5 tasks
wilderlopes opened this issue May 23, 2024 · 0 comments
Open
5 tasks

Install requirements for a Ruby codebase using RubyGems #17

wilderlopes opened this issue May 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wilderlopes
Copy link
Contributor

wilderlopes commented May 23, 2024

Problem

Currently, miniogre can only handle the generation of requirements for Python code. However, there has been interest from some Ruby devs in using miniogre.

Proposed solution

To build a consistent environment for Ruby projects, we can use Bundler, a gem that makes sure that the version of multiple gems in an environment are compatible.

To be able to use Bundler inside miniogre, we must:

  • Detect the presence of Ruby code
  • If Ruby is present, we must update the Dockerfile by adding lines that install Ruby, Gems, and Bundler
  • The prompt for requirement generation also needs to be updated to generate a list of Ruby packages (Gemfile) that need to be installed
  • Then, add an extra line in the Dockerfile that uses Bundler to install the Gemfile
  • Gemfile, like requirements.txt, must be saved in the ogre_dir folder
@wilderlopes wilderlopes added the enhancement New feature or request label May 23, 2024
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