diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..15e3198 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +osm/**/* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 7f7842f..59fb346 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,16 +8,6 @@ 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 diff --git a/README.md b/README.md index 3ac71e4..09f09b2 100755 --- a/README.md +++ b/README.md @@ -104,12 +104,26 @@ Access the application at the address [http://localhost:5000/](http://localhost: > $ python manage.py run -h 0.0.0.0 -p 8080 > ``` -### Testing: TODO +### Testing ```sh $ export TESTING="True" && python manage.py test ``` + +### Technical specs for importing OSM + +Please consider the following technical specifications for importing an osm file. + +| Region | Memory | +| ------------- |:-------------:| +| Germany | 16 GB | +| Europe | 64 GB | +| Planet | 128 GB | + +**Note:** we will be adding the functionality for adding a list of pbf files in the future. + + ### API Documentation The documentation for this flask service is provided via [flasgger](https://github.com/rochacbruno/flasgger) and can be diff --git a/manage.py b/manage.py index 7917c41..9080e94 100755 --- a/manage.py +++ b/manage.py @@ -45,10 +45,6 @@ def drop_db(): def import_data(): """Imports osm pbf data to postgis.""" - db.drop_all() - - db.create_all() - logger.info("Starting to import data...") # add option to add multiple osm pbf files