Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.git | ||
.gitignore | ||
README.md | ||
|
||
# | ||
# OS X | ||
# | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
# Icon must end with two \r | ||
Icon | ||
# Thumbnails | ||
._* | ||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
# | ||
# Rails | ||
# | ||
.env | ||
.env.sample | ||
*.rbc | ||
capybara-*.html | ||
log | ||
tmp | ||
db/*.sqlite3 | ||
db/*.sqlite3-journal | ||
public/system | ||
coverage/ | ||
spec/tmp | ||
**.orig | ||
|
||
.bundle | ||
|
||
.ruby-version | ||
.ruby-gemset | ||
|
||
.rvmrc | ||
|
||
# if using bower-rails ignore default bower_components path bower.json files | ||
vendor/assets/bower_components | ||
*.bowerrc | ||
bower.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ruby:2.5.1 | ||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash | ||
RUN apt-get update -qq && apt-get install -yq build-essential nodejs unzip | ||
RUN gem install foreman | ||
# upgrade bundler to avoid https://github.com/bundler/bundler/issues/4576 | ||
RUN gem install bundler -v 1.16 | ||
RUN npm install -g yarn | ||
RUN useradd -ms /bin/bash -d /app app | ||
RUN mkdir /app/secure && chown app:app /app/secure | ||
RUN mkdir /app/tmp && chown app:app /app/tmp | ||
WORKDIR /app | ||
USER app | ||
RUN bundle config git.allow_insecure true | ||
COPY --chown=app vendor /app/vendor | ||
COPY --chown=app Gemfile /app/Gemfile | ||
COPY --chown=app Gemfile.lock /app/Gemfile.lock | ||
RUN bundle install --jobs=4 --path vendor/bundle | ||
RUN yarn install | ||
COPY --chown=app . /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
rails: bin/rails s | ||
rails: bin/rails s -b 0.0.0.0 -p 5000 | ||
webpack: bin/webpack-dev-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: '3' | ||
services: | ||
web: | ||
build: . | ||
command: bash -lc "(rm -rf tmp/pids/ || true) && yarn install && bundle install --path vendor/bundle && bin/rails db:migrate db:seed RAILS_ENV=development && bundle exec foreman start -f Procfile.development" | ||
hostname: helios2-dev | ||
tty: true | ||
stdin_open: true | ||
volumes: | ||
- .:/app:delegated | ||
- /app/secure | ||
- /app/tmp | ||
ports: | ||
- "5000:5000" | ||
- "3035:3035" | ||
depends_on: | ||
- redis | ||
environment: | ||
- RAILS_ENV=development | ||
- RACK_ENV=development | ||
- REDIS_URL=redis://redis:6379/1 | ||
redis: | ||
image: redis:4.0 |