FEATURE: add a command for accessing the bash terminal

This commit is contained in:
nobohan 2023-06-22 11:08:13 +02:00
parent 773cf9c60f
commit 291ef08507
3 changed files with 24 additions and 0 deletions

View File

@ -5,6 +5,25 @@
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

View File

@ -5,6 +5,7 @@ services:
image: overv/openstreetmap-tile-server
volumes:
- osm-data:/data/database/
- ./run.sh:/run.sh
ports:
- "8080:80"
command: "run"

4
run.sh
View File

@ -40,6 +40,10 @@ if [ ! -f /data/style/mapnik.xml ]; then
carto ${NAME_MML:-project.mml} > mapnik.xml
fi
if [ "$1" == "terminal" ]; then
bash
fi
if [ "$1" == "import" ]; then
# Ensure that database directory is in right state
mkdir -p /data/database/postgres/