No description
Find a file
fly 7fb33a885d Added license
Signed-off-by: fly <merspieler@alwaysdata.com>
2024-01-18 01:05:40 +01:00
full Fix build issue cause fgmeta change 2023-12-30 18:00:03 +01:00
managment Show API result directly instead of a new tab 2023-10-26 10:18:59 +00:00
packager Make /tmp a volume 2021-09-29 14:06:18 +02:00
terrasync Let user configure url 2021-08-30 23:21:51 +02:00
.gitignore Terrasync container 2021-06-22 10:27:27 +02:00
LICENSE.md Added license 2024-01-18 01:05:40 +01:00
README.md Updated README 2021-11-22 23:53:46 +01:00

easy-osm2city-podman

Repo for containerisation of easy-osm2city

This was tested with podman version 3.2

Networking

podman network create o2c

Build containers

Psql

podman run -itd --name o2c-psql --network o2c -v <psql-database-path>:/var/lib/postgresql/data/ -e POSTGRES_PASSWORD=FG-is-GREAT --shm-size=256MB docker.io/postgis/postgis:13-master

Osm2city container

podman run -itd -v <base-scenery>:/scenery/ -v <pbf-storage>:/easy-osm2city/pbf -v <project-storage>:/easy-osm2city/projects -v <tmp-directory>:/tmp --name o2c --network o2c registry.gitlab.com/merspieler/easy-osm2city/full:latest 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 -v <tmp-directory>:/tmp -e API_URL=<api> -e API_TOKEN=<token> quay.merspieler.tk/merspieler/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

podman run -itd --name mysql --network o2c -v <mysql-database-storage>:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=something-save -e MYSQL_DATABASE=worldbuild -e MYSQL_USER=flightgear -e MYSQL_PASSWORD=FG-is-GREAT docker.io/library/mariadb

Managment container

podman run -itd --name manager --network o2c -p 8888:80 quay.merspieler.tk/merspieler/osm2city:manager-latest

Following env vars may need to be set if the defaults don't apply.

  • SQL_HOST: Host of the mariadb database (default: mysql)
  • SQL_PORT: Port of the mariadb database (default: 3306)
  • 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/ quay.merspieler.tk/merspieler/osm2city:terrasync-latest