Skip to content

Commit

Permalink
Merge pull request #23 from SEL-Columbia/restrict-map-#22
Browse files Browse the repository at this point in the history
Further restrict bounds, num nodes to reduce memory requirements
  • Loading branch information
chrisnatali committed Feb 23, 2016
2 parents d44f969 + a34500b commit 0fa86aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 0fa86aa

Please sign in to comment.