Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ruby:2.3

ENV app /app
RUN mkdir $app
WORKDIR $app

ENV BUNDLE_PATH /box

ADD . $app

CMD rails s -b 0.0.0.0
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ gem "elasticsearch-dsl", "~> 0.1.3"
gem "elasticsearch-model", "~> 0.1.8"
gem "elasticsearch-rails", "~> 0.1.8"
gem "elasticsearch-rails-ha", "~> 1.0.5"
gem "therubyracer"
gem "email_reply_parser"
gem "factory_girl_rails"
gem "faker"
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ GEM
actionmailer (>= 3.2)
letter_opener (~> 1.0)
railties (>= 3.2)
libv8 (3.16.14.15)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
Expand Down Expand Up @@ -434,6 +435,7 @@ GEM
rb-inotify (0.9.7)
ffi (>= 0.5.0)
redcarpet (3.3.4)
ref (2.0.0)
referer-parser (0.3.0)
request_store (1.3.1)
responders (2.1.1)
Expand Down Expand Up @@ -511,6 +513,9 @@ GEM
sprockets (>= 2.8, < 4.0)
test_after_commit (1.0.0)
activerecord (>= 3.2)
therubyracer (0.12.2)
libv8 (~> 3.16.14.0)
ref
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.5)
Expand Down Expand Up @@ -626,6 +631,7 @@ DEPENDENCIES
spring-commands-rspec
sprockets-rails (< 3)
test_after_commit
therubyracer
timecop
uglifier
validates_email_format_of
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
app:
build: .
command: ./script/start
volumes:
- .:/app
volumes_from:
- box
links:
- db

box:
image: busybox
volumes:
- /box

db:
image: postgres
ports:
- "5432"
environment:
- DATABASE_NAME=c2_development
2 changes: 2 additions & 0 deletions script/start
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

bundle check || bundle install

set -e
set -x

Expand Down