DFE-Digital / govuk-rails-boilerplate

A simple boilerplate built on Ruby on Rails to kick start new services
https://govuk-rails-boilerplate.herokuapp.com/pages/home
MIT License
26 stars 9 forks source link

Dockerise this app #43

Open benilovj opened 5 years ago

benilovj commented 5 years ago

Context

Some DfE teams are using Docker to deploy and run their Rails apps to production. It'd be helpful to dockerise this repo so that other teams can adopt this approach easily.

Background

There is prior art in GitHub already, see the Manage Courses Frontend:

https://github.com/DFE-Digital/manage-courses-frontend/pull/46 (Switching to Alpine) https://github.com/DFE-Digital/manage-courses-frontend/pull/30 (DRYing the scripts) https://github.com/DFE-Digital/manage-courses-frontend/pull/11 (Original work)

This includes a yarn-backed asset pipeline.

Previous attempts

https://github.com/DFE-Digital/govuk-rails-boilerplate/pull/26

dankmitchell commented 5 years ago

The setup on manage-courses-backend doesn't include Yarn and the setup on manage-courses-frontend doesn't include PostgreSQL.

Once https://github.com/DFE-Digital/manage-courses-support/pull/82/files is finished then we'll have a complete setup that includes Yarn and PostgreSQL 👌

himal-mandalia commented 4 years ago

In addition to Dockerising this app can we also update the REAMDE section on deploying to GOV.UK PaaS to reflect container based deploy.