2021-03-16 22:59:51 +00:00
|
|
|
FROM debian:buster
|
|
|
|
|
2021-12-14 17:18:58 +00:00
|
|
|
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 parallel zip &&\
|
|
|
|
apt-get clean
|
2021-11-22 22:46:50 +00:00
|
|
|
# pillow dependencies:
|
|
|
|
RUN apt-get -y install libtiff5-dev libjpeg-dev libopenjp2-7-dev zlib1g-dev \
|
|
|
|
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
|
|
|
|
libharfbuzz-dev libfribidi-dev libxcb1-dev
|
2021-03-16 22:59:51 +00:00
|
|
|
|
2021-04-17 00:50:19 +00:00
|
|
|
RUN pip3 install requests tabulate
|
|
|
|
|
2021-11-22 22:46:50 +00:00
|
|
|
ENV OSM2CITY_COMMIT 56311f92ab7bea9e7712c15cde0719793b799e9b
|
2021-04-17 00:50:19 +00:00
|
|
|
ENV OSM2CITY_DATA_COMMIT 43eb54b82439deafc2d914ead0efe4bea9cd1cf5
|
2021-11-22 22:46:50 +00:00
|
|
|
ENV EASY_O2C_COMMIT ca231ac539efa4fcd5bbd359956335cffc8aaec8
|
|
|
|
ENV EASY_O2C_SCRIPTS_COMMIT 836d350f130eff9e86d7338a7d6fb7e2f14617a9
|
2020-07-16 20:04:07 +00:00
|
|
|
|
|
|
|
|
2021-12-14 17:18:58 +00:00
|
|
|
RUN git clone https://gitea.merspieler.tk/fly/easy-osm2city.git
|
2020-07-16 20:04:07 +00:00
|
|
|
|
|
|
|
WORKDIR /easy-osm2city
|
2021-03-16 22:59:51 +00:00
|
|
|
COPY general-settings .
|
2020-07-16 20:04:07 +00:00
|
|
|
|
|
|
|
# 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/osm2city/osm2city.git
|
|
|
|
RUN git clone https://gitlab.com/osm2city/osm2city-data.git
|
2021-03-16 22:59:51 +00:00
|
|
|
RUN mkdir -p pbf && mkdir -p projects && mkdir -p /scenery
|
2020-07-16 20:04:07 +00:00
|
|
|
|
2021-03-17 12:12:12 +00:00
|
|
|
# Checkout known working commits
|
2021-04-17 00:50:19 +00:00
|
|
|
RUN git checkout $EASY_O2C_COMMIT && \
|
|
|
|
cd scripts/ && git checkout $EASY_O2C_SCRIPTS_COMMIT && \
|
|
|
|
cd ../osm2city && git checkout $OSM2CITY_COMMIT && \
|
|
|
|
cd ../osm2city-data && git checkout $OSM2CITY_DATA_COMMIT && cd ..
|
2021-03-17 12:12:12 +00:00
|
|
|
|
2020-07-16 20:04:07 +00:00
|
|
|
RUN ./create-venv
|
|
|
|
|
2021-03-16 22:59:51 +00:00
|
|
|
VOLUME /scenery
|
|
|
|
VOLUME /easy-osm2city/projects
|
|
|
|
VOLUME /easy-osm2city/pbf
|