File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,20 +13,24 @@ help:
1313# System commands
1414
1515build :
16- @rm -f Gemfile.lock spec/dummy/db/* .sqlite3
1716 @docker compose -f extra/docker-compose.yml build
1817
18+ bundle_install :
19+ @rm -f Gemfile.lock
20+ @docker compose -f extra/docker-compose.yml run --rm app bundle install
21+
1922db_reset :
23+ @rm -f spec/dummy/db/* .sqlite3
2024 @docker compose -f extra/docker-compose.yml run --rm app bin/rails db:create db:migrate db:test:prepare
2125
22- up : build db_reset
26+ up : build bundle_install db_reset
2327 @docker compose -f extra/docker-compose.yml up
2428
2529shell :
2630 @docker compose -f extra/docker-compose.yml exec app bash
2731
2832down :
29- @docker compose -f extra/docker-compose.yml down --volumes -- rmi local --remove-orphans
33+ @docker compose -f extra/docker-compose.yml down --rmi local --remove-orphans
3034
3135# App commands
3236
Original file line number Diff line number Diff line change @@ -31,4 +31,3 @@ ENV ADMINISTRATE_VERSION=$ADMINISTRATE_VERSION
3131USER $UID
3232WORKDIR /app
3333COPY . /app
34- RUN bundle install
Original file line number Diff line number Diff line change @@ -16,5 +16,9 @@ services:
1616 working_dir : /app
1717 volumes :
1818 - ..:/app
19+ - bundle:/usr/local/bundle
1920 stdin_open : true
2021 tty : true
22+
23+ volumes :
24+ bundle :
You can’t perform that action at this time.
0 commit comments