-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathhelp.txt
49 lines (37 loc) · 1.82 KB
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Usage: run [COMMAND ...]
Run OpenStreetMap related operations in a docker container.
Positional arguments:
COMMAND The command to run. (default: help)
Commands:
help Show this help message
initdb Initialise the postgres database
startdb Start the postgresql database
createuser Create the osm user in the database
createdb Create the osm database
createdbfuncs Create required database functions
migrate Migrate the osm database to a newer schema
import Import osm data into the database
startservices Start the osm web services
cli Drop into a bash shell
dropdb Drop the osm database
Set up a database saved on an external volume:
The following command will initialise the postgresql database on an external
volume that can be used to persist the data:
docker run -v /data/osm-postgresql:/var/lib/postgresql homme/openstreetmap-website \
initdb startdb createuser createdb createdbfuncs migrate
Import data:
The following will import the .osm file at `/tmp/import.osm` into the
database.
docker run -v /data/osm-postgresql:/var/lib/postgresql -v /tmp:/data homme/openstreetmap-website \
startdb import
Add users:
docker run -v /data/osm-postgresql:/var/lib/postgresql homme/openstreetmap-website \
startdb cli
Run the above command to get a cli in the container and then follow the
'Managing Users' instructions at
<https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md>.
Start the webserver:
Once data is loaded and users have been created run the webserver:
docker run -P -v /data/osm-postgresql:/var/lib/postgresql homme/openstreetmap-website \
startservices
For further information run the cli and look at /usr/local/share/doc/README.md.