Skip to content

Commit

Permalink
Remove unused dependency on oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Mar 13, 2019
1 parent 1997aa5 commit a4bbcf7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
4 changes: 0 additions & 4 deletions Gemfile
Expand Up @@ -33,10 +33,6 @@ gem 'dor-services', '~> 6.1'
gem 'lyber-core', '>= 2.0.2'
gem 'workflow-archiver', '~> 3.0'

group :production do
gem 'ruby-oci8'
end

group :test, :development do
gem 'rspec-rails'
gem 'rails-controller-testing'
Expand Down
2 changes: 0 additions & 2 deletions Gemfile.lock
Expand Up @@ -365,7 +365,6 @@ GEM
rubocop-rspec (1.27.0)
rubocop (>= 0.56.0)
ruby-cache (0.3.0)
ruby-oci8 (2.2.6.1)
ruby-progressbar (1.10.0)
rubydora (2.1.0)
activemodel (>= 4.2.10)
Expand Down Expand Up @@ -470,7 +469,6 @@ DEPENDENCIES
rspec-rails
rubocop (~> 0.57.1)
rubocop-rspec (~> 1.27.0)
ruby-oci8
simplecov
spring
spring-watcher-listen (~> 2.0.0)
Expand Down
29 changes: 0 additions & 29 deletions README.md
Expand Up @@ -11,35 +11,6 @@ This Ruby application provides a REST API for DOR Services. [View the REST API d

DOR Services App is a Rails app.

Because the workflows that the app provides access to use Oracle on the backend, the app requires
the Oracle client gem, [ruby-oci8](https://github.com/kubo/ruby-oci8). In order to install
ruby-oci8, you need to go through a couple of hoops to set up an Oracle client. The easiest approach
is to install the Oracle Instant Client. Read detailed instructions for installing with homebrew at
http://www.rubydoc.info/github/kubo/ruby-oci8/file/docs/install-on-osx.md or follow directions below.

1. Download the "Instant Client Package - Basic" and the "Instant Client Package - SDK" from the
[Oracle download page](http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html)
(requires a free Oracle account).

2. Unzip the downloaded zip files into a directory on your computer. For example (version numbers may be different):

mkdir /opt/oracle_instantclient/
cd /opt/oracle_instantclient/
unzip instantclient-basic-macos.x64-11.2.0.4.0.zip
unzip instantclient-sdk-macos.x64-11.2.0.4.0.zip

3. Make a symlink to libclntsh.dylib:

cd /opt/oracle_instantclient/instantclient_11_2
ln -s libclntsh.dylib.11.1 libclntsh.dylib

4. Set the OCI\_DIR environment variable to point to the recently created Instant Client
directory:

`export OCI_DIR=/opt/oracle_instantclient/instantclient_11_2`

You should now be ready to run `bundle install`. Note that DOR Services App requires Ruby 2.

## Running Tests

To run the tests:
Expand Down

0 comments on commit a4bbcf7

Please sign in to comment.