Created
March 26, 2016 19:54
-
-
Save Firefishy/c1b6eb0acf36ba68a6eb to your computer and use it in GitHub Desktop.
Quickstart for OSM in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
type docker >/dev/null 2>&1 || { echo >&2 "error: docker is required. See: https://docs.docker.com/engine/installation/linux/"; exit 1; } | |
type docker-compose >/dev/null 2>&1 || { echo >&2 "error: docker-compose is required. See: https://docs.docker.com/compose/install/"; exit 1; } | |
[ ! -d cgimap ] && git clone --branch add-docker --depth 1 https://github.com/Firefishy/cgimap.git; | |
[ ! -d openstreetmap-website ] && git clone --branch add-docker --depth 1 https://github.com/Firefishy/openstreetmap-website.git | |
(cd cgimap && docker build -t openstreetmap/cgimap .) | |
(cd openstreetmap-website && docker-compose run --rm app bundle exec rake db:migrate) | |
(cd openstreetmap-website && docker-compose up) | |
# remove environment; cd openstreetmap-website ; docker-compose down | |
# remove persistant volumes... docker volume rm openstreetmapwebsite_data-images openstreetmapwebsite_data-traces openstreetmapwebsite_data-db openstreetmapwebsite_data-attachments |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Confirmed with @Firefishy that this is no longer current, see https://github.com/openstreetmap/openstreetmap-website/blob/master/DOCKER.md for an up-to-date method.