Prevent node_modules from mounting to save rake yarn:install step

This commit is contained in:
Jamie Alessio 2020-12-29 10:11:15 -08:00 committed by Michal Migurski
parent c66041cb71
commit 2da3ce6abf
3 changed files with 2 additions and 7 deletions

View file

@ -25,7 +25,6 @@ jobs:
run: |
docker-compose run --rm web rake db:migrate
docker-compose run --rm web osmosis --rx docker/null-island.osm.xml --wd host=db database=openstreetmap user=openstreetmap password=openstreetmap validateSchemaVersion=no
docker-compose run web bundle exec rake yarn:install
- name: Test Basic Website
run: |
curl -siL http://127.0.0.1:3000 | egrep '^HTTP/1.1 200 OK'

View file

@ -58,12 +58,6 @@ Run the test suite by running:
docker-compose run --rm web bundle exec rake test:db
### Node Modules
Install required front-end Node modules:
docker-compose run --rm web bundle exec rake yarn:install
### Loading an OSM extract
This installation comes with no geographic data loaded. You can either create new data using one of the editors (Potlatch 2, iD, JOSM etc) or by loading an OSM extract. Here an example for loading an OSM extract into your Docker-based OSM instance.

View file

@ -8,6 +8,8 @@ services:
- .:/app
# don't mount tmp directory (https://github.com/Shopify/bootsnap/issues/177)
- /app/tmp
# Prevent node_modules from mounting so it's not shared between host OS and Docker
- /app/node_modules/
ports:
- "3000:3000"
environment: