Prevent node_modules from mounting to save rake yarn:install step
This commit is contained in:
parent
c66041cb71
commit
2da3ce6abf
3 changed files with 2 additions and 7 deletions
1
.github/workflows/docker.yml
vendored
1
.github/workflows/docker.yml
vendored
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue