Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further restrict bounds, num nodes to reduce memory requirements #23

Merged
merged 1 commit into from
Feb 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ gridmaps:
- ./gridmaps-nginx.conf:/etc/nginx/sites-enabled/gridmaps-nginx.conf

gridmaps-cgimap:
image: "selcolumbia/osm-gridmaps-cgimap:0.3"
image: "selcolumbia/osm-gridmaps-cgimap:0.4"
links:
- "db:db"
volumes:
Expand Down
8 changes: 4 additions & 4 deletions server-cgimap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ WORKDIR /
RUN git clone git://github.com/zerebubuth/openstreetmap-cgimap.git
WORKDIR /openstreetmap-cgimap
# hack to workaround the fact that these aren't configurable yet
RUN sed -i 's/#define MAX_AREA .*$/#define MAX_AREA 1000\.0/' src/api06/map_handler.cpp
RUN sed -i 's/#define MAX_AREA .*$/#define MAX_AREA 1000\.0/' src/api07/map_handler.cpp
RUN sed -i 's/#define MAX_NODES .*$/#define MAX_NODES 100000/' src/api06/map_handler.cpp
RUN sed -i 's/#define MAX_NODES .*$/#define MAX_NODES 100000/' src/api07/map_handler.cpp
RUN sed -i 's/#define MAX_AREA .*$/#define MAX_AREA 100\.0/' src/api06/map_handler.cpp
RUN sed -i 's/#define MAX_AREA .*$/#define MAX_AREA 100\.0/' src/api07/map_handler.cpp
RUN sed -i 's/#define MAX_NODES .*$/#define MAX_NODES 50000/' src/api06/map_handler.cpp
RUN sed -i 's/#define MAX_NODES .*$/#define MAX_NODES 50000/' src/api07/map_handler.cpp
RUN ./autogen.sh
RUN ./configure --with-fcgi=/usr --with-boost-libdir=/usr/lib/x86_64-linux-gnu
RUN make && make install
Expand Down