-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changes to Dockerfile, now using ubuntu 17.10 due to protoc
- Changes in folder structure
- Loading branch information
TimMcCauley
committed
Feb 26, 2018
1 parent
a2e053a
commit fb33ee7
Showing
8 changed files
with
133 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# gunicorn-flask | ||
|
||
# requires this ubuntu version due to protobuf library update | ||
FROM ubuntu:17.10 | ||
MAINTAINER Timothy Ellersiek <timothy@openrouteservice.org> | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y python python-pip python-virtualenv gunicorn git nano | ||
|
||
# Install protobuf | ||
#RUN apt-get install -y autoconf automake libtool curl make g++ unzip | ||
#RUN git clone https://github.com/google/protobuf.git protobuf | ||
#WORKDIR /protobuf | ||
#RUN ./autogen.sh | ||
#RUN ./configure | ||
#RUN make | ||
#RUN make check | ||
#RUN make install | ||
#RUN ldconfig | ||
|
||
RUN apt-get install -y build-essential protobuf-compiler libprotobuf-dev | ||
|
||
# Setup flask application | ||
RUN mkdir -p /deploy/app | ||
|
||
COPY gunicorn_config.py /deploy/gunicorn_config.py | ||
COPY manage.py /deploy/app/manage.py | ||
|
||
COPY requirements.txt /deploy/app/requirements.txt | ||
RUN pip install -r /deploy/app/requirements.txt | ||
|
||
COPY openpoiservice /deploy/app/openpoiservice | ||
COPY ops_settings_docker.yml /deploy/app/openpoiservice/server/ops_settings.yml | ||
|
||
WORKDIR /deploy/app | ||
|
||
EXPOSE 5000 | ||
|
||
# Start gunicorn | ||
CMD ["/usr/bin/gunicorn", "--config", "/deploy/gunicorn_config.py", "manage:app"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
version: '2' | ||
version: '3' | ||
services: | ||
openpoiservice-flask: | ||
gunicorn_flask: | ||
build: . | ||
#volumes: | ||
#- ./:/var/www/crypto | ||
volumes: | ||
- ./osm:/deploy/app/osm | ||
ports: | ||
- "5000:5000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
attribution: "openrouteservice.org | OpenStreetMap contributors" | ||
maximum_categories: 5 | ||
# meters | ||
maximum_search_radius_for_linestrings: 2000 | ||
maximum_search_radius_for_points: 2000 | ||
maximum_search_radius_for_polygons: 2000 | ||
# square meters | ||
maximum_area: 25000 | ||
# meters | ||
maximum_linestring_length: 500000 | ||
# limit of pois | ||
response_limit: 2000 | ||
osm_file: bremen-latest.osm.pbf | ||
osm_file_tests: bremen-tests.osm.pbf | ||
|
||
provider_parameters: | ||
table_name: ops_planet_pois | ||
db_name: gis | ||
user_name: gis_admin | ||
password: admin | ||
host: localhost | ||
port: 5433 | ||
column_mappings: | ||
# https://wiki.openstreetmap.org/wiki/Key:name | ||
name: | ||
common_values: ['str'] | ||
filterable: 'like' | ||
# https://wiki.openstreetmap.org/wiki/Key:wheelchair | ||
wheelchair: | ||
common_values: ['yes', 'limited', 'no', 'designated'] | ||
filterable: 'equals' | ||
# https://wiki.openstreetmap.org/wiki/Key:smoking | ||
smoking: | ||
common_values: ['dedicated','yes','separated','isolated', 'no', 'outside'] | ||
filterable: 'equals' | ||
# https://wiki.openstreetmap.org/wiki/Key:fee | ||
fee: | ||
common_values: ['yes','no', 'str'] | ||
filterable: 'equals' | ||
# https://wiki.openstreetmap.org/wiki/Key:opening_hours | ||
opening_hours: | ||
# https://wiki.openstreetmap.org/wiki/Key:phone | ||
phone: | ||
# https://wiki.openstreetmap.org/wiki/Key:website | ||
website: |
File renamed without changes.
File renamed without changes.