FEATURE: add a command for accessing the bash terminal
This commit is contained in:
parent
773cf9c60f
commit
291ef08507
19
README.md
19
README.md
@ -5,6 +5,25 @@
|
|||||||
|
|
||||||
This is an adaptation of https://github.com/Overv/openstreetmap-tile-server/ for testing different cartoCss styles and generating tiles.
|
This is an adaptation of https://github.com/Overv/openstreetmap-tile-server/ for testing different cartoCss styles and generating tiles.
|
||||||
|
|
||||||
|
### Use with docker-compose
|
||||||
|
|
||||||
|
#### Fresh install
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker volume create osm-data
|
||||||
|
docker-compose build
|
||||||
|
```
|
||||||
|
|
||||||
|
For entering into the container, use the "terminal" argument of the run.sh script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose run --rm map terminal
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Do an import
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Original README
|
## Original README
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ services:
|
|||||||
image: overv/openstreetmap-tile-server
|
image: overv/openstreetmap-tile-server
|
||||||
volumes:
|
volumes:
|
||||||
- osm-data:/data/database/
|
- osm-data:/data/database/
|
||||||
|
- ./run.sh:/run.sh
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
command: "run"
|
command: "run"
|
||||||
|
4
run.sh
4
run.sh
@ -40,6 +40,10 @@ if [ ! -f /data/style/mapnik.xml ]; then
|
|||||||
carto ${NAME_MML:-project.mml} > mapnik.xml
|
carto ${NAME_MML:-project.mml} > mapnik.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "terminal" ]; then
|
||||||
|
bash
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$1" == "import" ]; then
|
if [ "$1" == "import" ]; then
|
||||||
# Ensure that database directory is in right state
|
# Ensure that database directory is in right state
|
||||||
mkdir -p /data/database/postgres/
|
mkdir -p /data/database/postgres/
|
||||||
|
Loading…
Reference in New Issue
Block a user