Skip to content

Commit

Permalink
Do not mount the tmp directory
Browse files Browse the repository at this point in the history
We were getting the following error when running tests

An error occurred while loading ./spec/controllers/subnets_controller_spec.rb.
Failure/Error: require File.expand_path("../config/environment", __dir__)

Errno::ENOENT:
  No such file or directory - bs_fetch:atomic_write_cache_file:chmod

See Shopify/bootsnap#177
  • Loading branch information
Jiv Dhaliwal authored and jivdhaliwal committed Aug 24, 2020
1 parent 21e3edb commit 9844e4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker-compose.yml
@@ -1,4 +1,4 @@
version: '3.4'
version: "3.4"

services:
db:
Expand All @@ -16,12 +16,13 @@ services:
BUNDLE_INSTALL_FLAGS: "${BUNDLE_INSTALL_FLAGS:- --jobs 20 --retry 5}"
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- ".:/usr/src/app"
- "node_modules:/usr/src/app/node_modules"
- ".:/usr/src/app"
- "node_modules:/usr/src/app/node_modules"
- /app/tmp
links:
- db
expose:
- "3000"
- "3000"
ports:
- "3000:3000"

Expand Down

0 comments on commit 9844e4b

Please sign in to comment.