Running via Docker for Development

A mailer, member database, and so much more, for digital activism.

Running via Docker for Development

The Dockerfile and docker-compose.development.yml provide a full Identity development environment within Docker.

Pre-requisites

Download the code

Setup the app & environment

BEFORE PROCEEDING: The next steps will overwrite existing .env files you have, so back these up if necessary.

NOTE FOR OSX USERS: The makefile doesn’t currently work if you have the default OSX version of sed installed - you can either install GNU sed, or follow the instructions for setting up the app without the makefile (see below).

The quickest way to do this is with the provided Makefile: make completely-clean-build

This will setup all the required .env files for you, download & build all docker images, and bootstrap the dockerised database with necessary data.

Without using make

If you don’t have make installed, or for some reason prefer not to use it, you can setup the app more manually:

Running the app

Run attached

‘Attached’ means the docker containers will run in the foreground of your terminal, and logs from all docker containers will output to your terminal. This includes the webapp, sidekiq, the postgres database, etc.

Run detatched

‘Detatched’ means the docker containers will run in the background, and your terminal will return once they have started up. You won’t see any logs unless you ‘attach’ to the logger later.

Running tests

Running linters

Running database migrations

Other Useful commands

Notes

TODO