Let user configure url

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-08-30 23:21:51 +02:00
parent 3fcaf8c4d2
commit 582c9d53d8
2 changed files with 6 additions and 2 deletions

View file

@ -16,8 +16,9 @@ This was tested with podman version 3.2
We need to have `/tmp` on a volume cause we otherwise get issues with performance.
## Packager container
`podman run -itd --name packager -v <scenery-dir>:/in -v <output-dir>:/out -e API_URL=<api> -e API_TOKEN=<token> registry.gitlab.com/merspieler/easy-osm2city/packager:latest`
`podman run -itd --name packager -v <scenery-dir>:/in -v <output-dir>:/out -v <tmp-directory>:/tmp -e API_URL=<api> -e API_TOKEN=<token> registry.gitlab.com/merspieler/easy-osm2city/packager:latest`
`API_URL` and `API_TOKEN` have to be given.
We need to have `/tmp` on a volume cause we otherwise get issues with performance and storage space.
# Managment containers
## MariaDB
@ -33,3 +34,6 @@ Following env vars may need to be set if the defaults don't apply.
* `SQL_USER`: User for the mariadb database (default: flightgear)
* `SQL_PASSWORD`: Password for the database user (default: FG-is-GREAT)
* `SQL_DATABASE`: Database to use (default: worldbuild)
## Terrasync container
`podman run -itd --name terrasync --hostname terrasync -v <scenery>:/scenery/ -v <config-dir>:/config/ -v <log-dir>:/log/ registry.gitlab.com/merspieler/easy-osm2city/terrasync:0.1.1`

View file

@ -6,7 +6,7 @@ if [ -f "/config/pre.sh" ]; then
/config/pre.sh $logfile
fi
/TerraSync/terrasync.py --url $URL --remove-orphan --target=/scenery/ > $logfile 2>&1
/TerraSync/terrasync.py --url $(cat /config/url) --remove-orphan --target=/scenery/ > $logfile 2>&1
# Post update hook