Skip to content

Commit c28afa9

Browse files
authored
Merge pull request #257 from themarshallproject/develop
v0.3.3
2 parents 8e1297c + cfc2e47 commit c28afa9

File tree

24 files changed

+266
-120
lines changed

24 files changed

+266
-120
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.4
1+
2.4.5

DOCKER.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
1. Run the following commands:
66

77
```
8-
docker-compose up -d database
9-
docker-compose build app
10-
docker-compose run app rake db:create db:migrate
11-
docker-compose run app rake users:create_admin
12-
docker-compose up app
8+
docker-compose up
139
open http://localhost:3000
1410
```
1511

Dockerfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.3.4
1+
FROM ruby:2.4.5
22

33
# throw errors if Gemfile has been modified since Gemfile.lock
44
RUN bundle config --global frozen 1
@@ -13,4 +13,16 @@ RUN bundle install
1313
COPY . /usr/src/app
1414

1515
EXPOSE 3000
16-
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]
16+
17+
# install s6overlay so that we can run cron inside this container as well.
18+
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-amd64.tar.gz /tmp/
19+
RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C / \
20+
&& mkdir /config \
21+
&& apt-get update \
22+
&& apt-get install -y cron \
23+
&& rm -rf /var/lib/apt/lists/*
24+
25+
COPY rootfs/ /
26+
VOLUME ["/config"]
27+
28+
ENTRYPOINT ["/init"]

Gemfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
2-
ruby '2.4.4'
2+
ruby '2.4.5'
33

4-
gem 'rails', '~> 5.2.1'
4+
gem 'rails', '~> 5.2.2'
55
gem 'pg', '~> 0.21'
66
gem 'sass-rails', '~> 5.0'
77
gem 'uglifier', '>= 1.3.0'
@@ -19,7 +19,7 @@ gem 'bcrypt', '~> 3.1.12'
1919
gem 'puma', '~> 3.12'
2020
gem 'rails_12factor'
2121

22-
gem 'simple_form', '~> 4.0'
22+
gem 'simple_form', '~> 4.1'
2323

2424
gem 'jwt'
2525
gem 'premailer-rails'
@@ -28,13 +28,13 @@ gem 'httparty'
2828
gem 'diffy'
2929
gem 'kramdown'
3030

31-
gem 'aws-sdk-sqs', '~> 1.6'
31+
gem 'aws-sdk-sqs', '~> 1.12'
3232

3333
group :development, :test do
3434
gem 'byebug'
3535
gem 'rspec-rails', '~> 3.8'
3636
gem 'guard-rspec', require: false
37-
gem 'factory_bot_rails', '~> 4.11'
37+
gem 'factory_bot_rails', '~> 5.0'
3838
gem 'database_cleaner'
3939
gem 'sinatra'
4040
end

0 commit comments

Comments
 (0)