It's a Rails application using Docker, oracle_enhanced adapter, MRI Ruby 2.5.0.
- Download the following zip archives from Oracle Instant Client download page:
- instantclient-basiclite-linux.x64-12.2.0.1.0.zip
- instantclient-sdk-linux.x64-12.2.0.1.0.zip
- instantclient-sqlplus-linux.x64-12.2.0.1.0.zip
- Copy the above 3 archives into
<RAILS_APP_>/vendor
folder. - Open your Terminal and
cd
to the rails project. - Start
Docker
if it is not running. - Update
database.yml
configuration for your database, I used Figaro gem to keep ENV variables. - Run
docker build -t <name_you_like> .
ruby-oci8
gem should be installed without errors.- Run
docker run -p 3000:3000 <name_you_put_in_step_6
to start the rails app in the Docker container - Navigate to
localhost:3000
in your preferred browser.
For more details and options see installation instructions in ruby-oci docs