I am currently trying to set up a pipeline to build and test a Ruby on Rails project. Which contains specs/tests in rspec/capybara, which are run using headless chrome.
In order for this to work, I need to install chromedriver on the docker image, but the preferred way to do this is by using a package manager.
However, I am struggling to install the necessary dependencies, i.e npm, or homebrew.
I have tried to install Node, with no luck, and similarly with LinuxBrew - i.e on installing brew within the script section
<span>ruby -e "$(curl -fsSL h<a href="https://raw.githubusercontent.com/Linuxbrew/install/master/install" target="_blank" rel="nofollow noopener noreferrer">ttps://raw.githubusercontent.com/Linuxbrew/install/master/install</a>)"</span>
I get the following error:
<span>Don't run this as root!</span>
Can anyone give any advice as the best way to install other packages on a Ruby image?
Many Thanks