joatuapp / joatu-v2

The JoatU application, version 2. Written in Ruby on Rails.
https://alpha.joatu.org
GNU General Public License v3.0
27 stars 5 forks source link

Establish reliable development environment - Docker Image #153

Closed rsmithlal closed 5 years ago

rsmithlal commented 5 years ago

As the first pull request since taking on the project, I aimed to create a stable and reusable docker container to use for developing the app.

The Image

I was able to build the image as close as possible to the original Gemfile.lock. It uses ruby 2.3.5.

Environment Variables

The docker-compose.yml file relies on a config file /docker.env.app.conf. SECRET_TOKEN, SECRET_KEY_BASE, DEVISE_SECRET, DEVISE_PEPPER, DATABASE_URL, and GOOGLE_API_KEY must be set.

Additional Fixes