Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a volume to deal with bundled gems #640

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
version: '3'

volumes:
bundle:
driver: local

services:
db:
image: postgres:alpine
environment:
POSTGRES_PASSWORD: uaI7m2kmWd949DMv4dCh

web:
environment:
PGPASSWORD: uaI7m2kmWd949DMv4dCh
Expand All @@ -13,6 +19,7 @@ services:
volumes:
- .:/refugerestrooms
- /refugerestrooms/node_modules
- bundle:/usr/local/bundle
ports:
- "3000:3000"
depends_on:
Expand Down
3 changes: 3 additions & 0 deletions setup/entry
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -e

# Check by local gems and if is something is missing, run bundle install
bundle check || bundle install --jobs 20 --retry 5

# Set up the database for development, and seed with placeholder data from `db/export.csv`
SEEDING_DONT_GEOCODE="true" rails db:setup

Expand Down