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'
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.
- .:/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: