Working condition

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-03-16 23:59:51 +01:00
parent c48a70b6c8
commit 166ffe4864
4 changed files with 22 additions and 10 deletions

View file

@ -1,3 +1,13 @@
# easy-osm2city-podman # easy-osm2city-podman
Repo for containerisation of easy-osm2city Repo for containerisation of easy-osm2city
## Networking
`podman network create o2c`
## 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`
## Osm2city container
`podman run -i -t -d -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.

View file

@ -1,18 +1,23 @@
FROM debian:stable FROM debian:buster
RUN apt-get -y update && apt-get install -y git osmium-tool osmosis postgis pgadmin3 postgresql-contrib postgresql-client postgresql-postgis postgresql python3-pip python3-venv python3-dev curl sudo flightgear tmux vim wget
RUN pip3 install requests
RUN apt-get -y update && apt-get install -y git osmium-tool osmosis postgis pgadmin3 postgresql-contrib postgresql-client postgresql-postgis postgresql python-pip python3-venv python3-dev curl sudo flightgear
RUN git clone https://gitlab.com/merspieler/easy-osm2city.git RUN git clone https://gitlab.com/merspieler/easy-osm2city.git
WORKDIR /easy-osm2city WORKDIR /easy-osm2city
COPY general-settings .
# Do some things from the install script manually # Do some things from the install script manually
RUN git clone https://gitlab.com/merspieler/osm2city-scripts.git scripts RUN git clone https://gitlab.com/merspieler/osm2city-scripts.git scripts
RUN git clone https://gitlab.com/osm2city/osm2city.git RUN git clone https://gitlab.com/osm2city/osm2city.git
RUN git clone https://gitlab.com/osm2city/osm2city-data.git RUN git clone https://gitlab.com/osm2city/osm2city-data.git
RUN mkdir -p pbf && mkdir -p projects RUN mkdir -p pbf && mkdir -p projects && mkdir -p /scenery
RUN ./create-venv RUN ./create-venv
VOLUME /scenery
ENTRYPOINT sleep 10000000000 VOLUME /easy-osm2city/projects
VOLUME /easy-osm2city/pbf

View file

@ -10,7 +10,7 @@ threads=4
fg_elev=/usr/games/fgelev fg_elev=/usr/games/fgelev
fg_scenery=/scenery fg_scenery=/scenery
db_host=localhost db_host=o2c-psql
db_port=5432 db_port=5432
db_user=osm db_user=osm
db_passwd="FG-is-GREAT" db_passwd="FG-is-GREAT"

View file

@ -1,3 +0,0 @@
FROM postgres:12.4
RUN apt-get update && apt-get install -y postgresql-12-postgis-3 pgadmin3 postgis postgresql-contrib && apt-get clean