This app demonstrates a blog app connect to an Oracle DB using:
- rack
- puma
- nginx
- ruby-oci8 gem
Use the Dockfile.rack
in rails-docker-oracle for setup.
- bundle install
- bundle exec puma
- Follow the steps to run the rails example migrations.
- Clone this project into the
Dockerfile.rack
directory:git clone https://github.com/bjfish/rack-blog-oracle-db.git rackapp
- Configure
user
,password
, anddatabase_name
in theconfig.ru
file. - Build:
docker build -f Dockerfile.rack -t rbenv:rack .
- Run
docker run -v /home/opc/wallet:/usr/lib/oracle/21/client64/lib/network/admin:Z,ro -d -p 3000:80 rbenv:rack