Skip to content

Commit 147c426

Browse files
Initial setup with Docker and docker-compose
0 parents  commit 147c426

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+6129
-0
lines changed

.babelrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"modules": false
7+
}
8+
],
9+
"react"
10+
]
11+
}

.env

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ASSET_HOST=localhost:3000
2+
APPLICATION_HOST=localhost:3000
3+
PORT=3000
4+
SECRET_KEY_BASE=development_secret
5+
SMTP_ADDRESS=smtp.example.com
6+
SMTP_DOMAIN=example.com
7+
SMTP_PASSWORD=password
8+
SMTP_USERNAME=username
9+

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
/node_modules
21+
/yarn-error.log
22+
23+
.byebug_history
24+
/public/packs
25+
/node_modules

.postcssrc.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugins:
2+
postcss-smart-import: {}
3+
precss: {}
4+
autoprefixer: {}

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from ruby:2.3.3
2+
3+
env DEBIAN_FRONTEND=noninteractive \
4+
NODE_VERSION=6.9.1
5+
6+
run sed -i '/deb-src/d' /etc/apt/sources.list && \
7+
apt-get update && \
8+
apt-get install -y build-essential apt-transport-https libpq-dev postgresql-client
9+
10+
run curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
11+
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
12+
apt-get update && apt-get install yarn
13+
14+
run curl -sSL "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" | tar xfJ - -C /usr/local --strip-components=1 && \
15+
npm install npm -g
16+
17+
workdir /app

Gemfile

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) do |repo_name|
4+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5+
"https://github.com/#{repo_name}.git"
6+
end
7+
8+
gem 'rails', '~> 5.1.0'
9+
gem 'pg'
10+
gem 'puma', '~> 3.7'
11+
gem 'sass-rails', '~> 5.0'
12+
gem 'uglifier', '>= 1.3.0'
13+
gem 'webpacker'
14+
# See https://github.com/rails/execjs#readme for more supported runtimes
15+
# gem 'therubyracer', platforms: :ruby
16+
17+
gem 'jbuilder', '~> 2.5'
18+
# Use Redis adapter to run Action Cable in production
19+
# gem 'redis', '~> 3.0'
20+
# Use ActiveModel has_secure_password
21+
# gem 'bcrypt', '~> 3.1.7'
22+
23+
# Use Capistrano for deployment
24+
# gem 'capistrano-rails', group: :development
25+
26+
group :development, :test do
27+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
28+
gem 'capybara', '~> 2.13.0'
29+
gem 'bullet'
30+
gem 'dotenv-rails'
31+
gem 'pry-byebug'
32+
gem 'rspec-rails', '~> 3.5'
33+
end
34+
35+
group :development do
36+
gem 'web-console', '>= 3.3.0'
37+
gem 'listen', '>= 3.0.5', '< 3.2'
38+
gem 'spring'
39+
gem 'spring-watcher-listen', '~> 2.0.0'
40+
end
41+
42+
group :test do
43+
gem 'database_cleaner'
44+
gem 'factory_girl_rails'
45+
gem 'simplecov', require: false
46+
gem 'poltergeist'
47+
gem 'ffaker'
48+
gem 'shoulda-matchers', git: 'https://github.com/thoughtbot/shoulda-matchers.git', branch: 'rails-5'
49+
end
50+
51+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
52+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+249
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
GIT
2+
remote: https://github.com/thoughtbot/shoulda-matchers.git
3+
revision: ead87017a6c15adce66a87dce8ee2ece91d0d27c
4+
branch: rails-5
5+
specs:
6+
shoulda-matchers (3.1.2)
7+
activesupport (>= 4.0.0)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
actioncable (5.1.0)
13+
actionpack (= 5.1.0)
14+
nio4r (~> 2.0)
15+
websocket-driver (~> 0.6.1)
16+
actionmailer (5.1.0)
17+
actionpack (= 5.1.0)
18+
actionview (= 5.1.0)
19+
activejob (= 5.1.0)
20+
mail (~> 2.5, >= 2.5.4)
21+
rails-dom-testing (~> 2.0)
22+
actionpack (5.1.0)
23+
actionview (= 5.1.0)
24+
activesupport (= 5.1.0)
25+
rack (~> 2.0)
26+
rack-test (~> 0.6.3)
27+
rails-dom-testing (~> 2.0)
28+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
29+
actionview (5.1.0)
30+
activesupport (= 5.1.0)
31+
builder (~> 3.1)
32+
erubi (~> 1.4)
33+
rails-dom-testing (~> 2.0)
34+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
35+
activejob (5.1.0)
36+
activesupport (= 5.1.0)
37+
globalid (>= 0.3.6)
38+
activemodel (5.1.0)
39+
activesupport (= 5.1.0)
40+
activerecord (5.1.0)
41+
activemodel (= 5.1.0)
42+
activesupport (= 5.1.0)
43+
arel (~> 8.0)
44+
activesupport (5.1.0)
45+
concurrent-ruby (~> 1.0, >= 1.0.2)
46+
i18n (~> 0.7)
47+
minitest (~> 5.1)
48+
tzinfo (~> 1.1)
49+
addressable (2.5.1)
50+
public_suffix (~> 2.0, >= 2.0.2)
51+
arel (8.0.0)
52+
bindex (0.5.0)
53+
builder (3.2.3)
54+
bullet (5.5.1)
55+
activesupport (>= 3.0.0)
56+
uniform_notifier (~> 1.10.0)
57+
byebug (9.0.6)
58+
capybara (2.13.0)
59+
addressable
60+
mime-types (>= 1.16)
61+
nokogiri (>= 1.3.3)
62+
rack (>= 1.0.0)
63+
rack-test (>= 0.5.4)
64+
xpath (~> 2.0)
65+
cliver (0.3.2)
66+
coderay (1.1.1)
67+
concurrent-ruby (1.0.5)
68+
database_cleaner (1.5.3)
69+
diff-lcs (1.3)
70+
docile (1.1.5)
71+
dotenv (2.2.1)
72+
dotenv-rails (2.2.1)
73+
dotenv (= 2.2.1)
74+
railties (>= 3.2, < 5.2)
75+
erubi (1.6.0)
76+
execjs (2.7.0)
77+
factory_girl (4.8.0)
78+
activesupport (>= 3.0.0)
79+
factory_girl_rails (4.8.0)
80+
factory_girl (~> 4.8.0)
81+
railties (>= 3.0.0)
82+
ffaker (2.5.0)
83+
ffi (1.9.18)
84+
globalid (0.4.0)
85+
activesupport (>= 4.2.0)
86+
i18n (0.8.1)
87+
jbuilder (2.6.3)
88+
activesupport (>= 3.0.0, < 5.2)
89+
multi_json (~> 1.2)
90+
json (2.1.0)
91+
listen (3.1.5)
92+
rb-fsevent (~> 0.9, >= 0.9.4)
93+
rb-inotify (~> 0.9, >= 0.9.7)
94+
ruby_dep (~> 1.2)
95+
loofah (2.0.3)
96+
nokogiri (>= 1.5.9)
97+
mail (2.6.5)
98+
mime-types (>= 1.16, < 4)
99+
method_source (0.8.2)
100+
mime-types (3.1)
101+
mime-types-data (~> 3.2015)
102+
mime-types-data (3.2016.0521)
103+
mini_portile2 (2.1.0)
104+
minitest (5.10.1)
105+
multi_json (1.12.1)
106+
nio4r (2.0.0)
107+
nokogiri (1.7.1)
108+
mini_portile2 (~> 2.1.0)
109+
pg (0.20.0)
110+
poltergeist (1.14.0)
111+
capybara (~> 2.1)
112+
cliver (~> 0.3.1)
113+
websocket-driver (>= 0.2.0)
114+
pry (0.10.4)
115+
coderay (~> 1.1.0)
116+
method_source (~> 0.8.1)
117+
slop (~> 3.4)
118+
pry-byebug (3.4.2)
119+
byebug (~> 9.0)
120+
pry (~> 0.10)
121+
public_suffix (2.0.5)
122+
puma (3.8.2)
123+
rack (2.0.1)
124+
rack-test (0.6.3)
125+
rack (>= 1.0)
126+
rails (5.1.0)
127+
actioncable (= 5.1.0)
128+
actionmailer (= 5.1.0)
129+
actionpack (= 5.1.0)
130+
actionview (= 5.1.0)
131+
activejob (= 5.1.0)
132+
activemodel (= 5.1.0)
133+
activerecord (= 5.1.0)
134+
activesupport (= 5.1.0)
135+
bundler (>= 1.3.0, < 2.0)
136+
railties (= 5.1.0)
137+
sprockets-rails (>= 2.0.0)
138+
rails-dom-testing (2.0.2)
139+
activesupport (>= 4.2.0, < 6.0)
140+
nokogiri (~> 1.6)
141+
rails-html-sanitizer (1.0.3)
142+
loofah (~> 2.0)
143+
railties (5.1.0)
144+
actionpack (= 5.1.0)
145+
activesupport (= 5.1.0)
146+
method_source
147+
rake (>= 0.8.7)
148+
thor (>= 0.18.1, < 2.0)
149+
rake (12.0.0)
150+
rb-fsevent (0.9.8)
151+
rb-inotify (0.9.8)
152+
ffi (>= 0.5.0)
153+
rspec-core (3.5.4)
154+
rspec-support (~> 3.5.0)
155+
rspec-expectations (3.5.0)
156+
diff-lcs (>= 1.2.0, < 2.0)
157+
rspec-support (~> 3.5.0)
158+
rspec-mocks (3.5.0)
159+
diff-lcs (>= 1.2.0, < 2.0)
160+
rspec-support (~> 3.5.0)
161+
rspec-rails (3.5.2)
162+
actionpack (>= 3.0)
163+
activesupport (>= 3.0)
164+
railties (>= 3.0)
165+
rspec-core (~> 3.5.0)
166+
rspec-expectations (~> 3.5.0)
167+
rspec-mocks (~> 3.5.0)
168+
rspec-support (~> 3.5.0)
169+
rspec-support (3.5.0)
170+
ruby_dep (1.5.0)
171+
sass (3.4.23)
172+
sass-rails (5.0.6)
173+
railties (>= 4.0.0, < 6)
174+
sass (~> 3.1)
175+
sprockets (>= 2.8, < 4.0)
176+
sprockets-rails (>= 2.0, < 4.0)
177+
tilt (>= 1.1, < 3)
178+
simplecov (0.14.1)
179+
docile (~> 1.1.0)
180+
json (>= 1.8, < 3)
181+
simplecov-html (~> 0.10.0)
182+
simplecov-html (0.10.0)
183+
slop (3.6.0)
184+
spring (2.0.1)
185+
activesupport (>= 4.2)
186+
spring-watcher-listen (2.0.1)
187+
listen (>= 2.7, < 4.0)
188+
spring (>= 1.2, < 3.0)
189+
sprockets (3.7.1)
190+
concurrent-ruby (~> 1.0)
191+
rack (> 1, < 3)
192+
sprockets-rails (3.2.0)
193+
actionpack (>= 4.0)
194+
activesupport (>= 4.0)
195+
sprockets (>= 3.0.0)
196+
thor (0.19.4)
197+
thread_safe (0.3.6)
198+
tilt (2.0.7)
199+
tzinfo (1.2.3)
200+
thread_safe (~> 0.1)
201+
uglifier (3.2.0)
202+
execjs (>= 0.3.0, < 3)
203+
uniform_notifier (1.10.0)
204+
web-console (3.5.0)
205+
actionview (>= 5.0)
206+
activemodel (>= 5.0)
207+
bindex (>= 0.4.0)
208+
railties (>= 5.0)
209+
webpacker (1.2)
210+
activesupport (>= 4.2)
211+
multi_json (~> 1.2)
212+
railties (>= 4.2)
213+
websocket-driver (0.6.5)
214+
websocket-extensions (>= 0.1.0)
215+
websocket-extensions (0.1.2)
216+
xpath (2.0.0)
217+
nokogiri (~> 1.3)
218+
219+
PLATFORMS
220+
ruby
221+
222+
DEPENDENCIES
223+
bullet
224+
byebug
225+
capybara (~> 2.13.0)
226+
database_cleaner
227+
dotenv-rails
228+
factory_girl_rails
229+
ffaker
230+
jbuilder (~> 2.5)
231+
listen (>= 3.0.5, < 3.2)
232+
pg
233+
poltergeist
234+
pry-byebug
235+
puma (~> 3.7)
236+
rails (~> 5.1.0)
237+
rspec-rails (~> 3.5)
238+
sass-rails (~> 5.0)
239+
shoulda-matchers!
240+
simplecov
241+
spring
242+
spring-watcher-listen (~> 2.0.0)
243+
tzinfo-data
244+
uglifier (>= 1.3.0)
245+
web-console (>= 3.3.0)
246+
webpacker
247+
248+
BUNDLED WITH
249+
1.14.3

0 commit comments

Comments
 (0)