From 0c06cac2ad770b28c7a1d90d76210c900543ad10 Mon Sep 17 00:00:00 2001 From: fly Date: Wed, 7 Apr 2021 13:16:05 +0200 Subject: [PATCH] Updated README Signed-off-by: fly --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 677061c..b495284 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,30 @@ Repo for containerisation of easy-osm2city +This was tested with podman version 3.2 + ## Networking `podman network create o2c` +# Build containers ## Psql -`podman run -i -d -t --name o2c-psql --network o2c -v /storage/databases/postgresql/13/main/:/var/lib/postgresql/data/ -e POSTGRES_PASSWORD=FG-is-GREAT docker.io/postgis/postgis:13-master` +`podman run -itd --name o2c-psql --network o2c -v :/var/lib/postgresql/data/ -e POSTGRES_PASSWORD=FG-is-GREAT --shm-size=256MB docker.io/postgis/postgis:13-master` ## Osm2city container -`podman run -i -t -d -v :/scenery/ -v :/easy-osm2city/pbf -v :/easy-osm2city/projects -v :/tmp --name o2c --network o2c registry.gitlab.com/merspieler/easy-osm2city/full:latest` +`podman run -itd -v :/scenery/ -v :/easy-osm2city/pbf -v :/easy-osm2city/projects -v :/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. + +# Managment containers +## MariaDB +`podman run -itd --name mysql --network o2c -v :/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 registry.gitlab.com/merspieler/easy-osm2city/manager:0.1` + +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)