LicenseFinder icon indicating copy to clipboard operation
LicenseFinder copied to clipboard

Remove rvm in Dockerfile

Open hupling opened this issue 4 years ago • 4 comments

I want to run the DockerImage in Openshift with another usercontext as root. The command /bin/bash -l -c license_finder doesn't work. The problem is that you use bin/bash -l that is rvm

https://stackoverflow.com/questions/21895523/why-do-i-have-to-use-bash-l-c-inside-my-container

hupling avatar Nov 10 '21 11:11 hupling

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Nov 10 '21 11:11 cf-gitbot

@hupling We use rvm to easily install a specific version of ruby. Do you have a proposed change for the dockerfile? Im not sure how this would affect the existing license finder use cases if we made a change like this

xtreme-shane-lattanzio avatar Feb 22 '22 16:02 xtreme-shane-lattanzio

Gitlab did it like that https://gitlab.com/gitlab-org/security-products/analyzers/license-finder/-/blob/main/Dockerfile

hupling avatar Jun 26 '22 20:06 hupling

There doesn't seem to be a way to version ruby with that method. They are only versioning bundler

xtreme-shane-lattanzio avatar Jul 06 '22 18:07 xtreme-shane-lattanzio