renderedtext / docker-compose-example

An example Rails 4 project with Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

A simple Rails 4 app, accompanying the Testing multi-container applications with Docker Compose and Semaphore on Semaphore Docs.

Usage

  1. Fork the project to your GitHub account
  2. Follow the guide on Semaphore Docs
  3. Use the following set of commands to build and test the project on Semaphore
# Setup
docker-compose up -d && sleep 3
docker-compose run web rake db:create

# Job 1
docker-compose run web rake test

To avoid using sleep 3 for waiting for the DB, you can use the ./wait-for-it script, like described here.

About

An example Rails 4 project with Docker


Languages

Language:Ruby 72.0%Language:HTML 19.7%Language:CSS 5.6%Language:JavaScript 2.0%Language:CoffeeScript 0.6%