Skip to content

Dockerized Rails app with Oracle Instant client and Oracle enhanced adapter

Notifications You must be signed in to change notification settings

belgoros/docker-oracle-rails

Repository files navigation

README

It's a Rails application using Docker, oracle_enhanced adapter, MRI Ruby 2.5.0.

  1. 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
  1. Copy the above 3 archives into <RAILS_APP_>/vendor folder.
  2. Open your Terminal and cd to the rails project.
  3. Start Docker if it is not running.
  4. Update database.yml configuration for your database, I used Figaro gem to keep ENV variables.
  5. Run docker build -t <name_you_like> .
  6. ruby-oci8 gem should be installed without errors.
  7. Run docker run -p 3000:3000 <name_you_put_in_step_6 to start the rails app in the Docker container
  8. Navigate to localhost:3000 in your preferred browser.

For more details and options see installation instructions in ruby-oci docs

About

Dockerized Rails app with Oracle Instant client and Oracle enhanced adapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published