Skip to content

Commit

Permalink
Use a volume to deal with bundled gems (#640)
Browse files Browse the repository at this point in the history
This way we don't need to rebuild everytime we add/update/remove a gem
  • Loading branch information
brunoocasali authored Nov 9, 2020
1 parent 6c63546 commit 5cff0cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 5cff0cb

Please sign in to comment.