2020-07-16 15:26:50 +00:00
|
|
|
# easy-osm2city-podman
|
|
|
|
|
2021-03-16 22:59:51 +00:00
|
|
|
Repo for containerisation of easy-osm2city
|
|
|
|
|
2021-04-07 11:16:05 +00:00
|
|
|
This was tested with podman version 3.2
|
|
|
|
|
2021-03-16 22:59:51 +00:00
|
|
|
## Networking
|
|
|
|
`podman network create o2c`
|
|
|
|
|
2021-04-07 11:16:05 +00:00
|
|
|
# Build containers
|
2021-03-16 22:59:51 +00:00
|
|
|
## Psql
|
2021-04-07 11:16:05 +00:00
|
|
|
`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`
|
2021-03-16 22:59:51 +00:00
|
|
|
|
|
|
|
## Osm2city container
|
2021-04-07 11:16:05 +00:00
|
|
|
`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`
|
2021-03-16 22:59:51 +00:00
|
|
|
We need to have `/tmp` on a volume cause we otherwise get issues with performance.
|
2021-04-07 11:16:05 +00:00
|
|
|
|
2021-04-19 16:38:42 +00:00
|
|
|
## 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`
|
|
|
|
`API_URL` and `API_TOKEN` have to be given.
|
|
|
|
|
2021-04-07 11:16:05 +00:00
|
|
|
# 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
|
2021-04-19 16:38:42 +00:00
|
|
|
`podman run -itd --name manager --network o2c -p 8888:80 registry.gitlab.com/merspieler/easy-osm2city/manager:latest`
|
2021-04-07 11:16:05 +00:00
|
|
|
|
|
|
|
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)
|