-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from max-derous-mapotempo/feature/geocoder-her…
…e-v7-upgrade-with-docker-setup Geocoder HERE v7 upgrade with docker setup
- Loading branch information
Showing
13 changed files
with
285 additions
and
243 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
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
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
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,42 @@ | ||
# 1.0.13 is the latest version containing bundler 2 | ||
FROM phusion/passenger-ruby27:2.5.1 | ||
|
||
VOLUME /srv/app/poly | ||
|
||
LABEL maintainer="Mapotempo <[email protected]>" | ||
|
||
ADD . /srv/app | ||
WORKDIR /srv/app | ||
|
||
# Install app | ||
ENV REDIS_HOST redis-cache | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y git build-essential zlib1g-dev gdal-bin \ | ||
zlib1g libsqlite3-mod-spatialite libsqlite3-dev \ | ||
libspatialite-dev libnginx-mod-http-headers-more-filter && \ | ||
gem install bundler --version 2 && \ | ||
bundle install --path vendor/bundle --full-index -j $(nproc) | ||
|
||
USER root | ||
|
||
# Enable Nginx and Passenger | ||
RUN rm -f /etc/service/nginx/down | ||
RUN rm /etc/nginx/sites-enabled/default | ||
|
||
# Enable app | ||
ADD docker/env.d/* /etc/nginx/main.d/ | ||
ADD docker/snippets/* /etc/nginx/snippets/ | ||
ADD docker/webapp.conf /etc/nginx/sites-enabled/webapp.conf | ||
|
||
# Cleanup Debian packages | ||
RUN apt-get remove -y git build-essential zlib1g-dev gdal-bin \ | ||
libsqlite3-dev libspatialite-dev && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
echo -n > /var/lib/apt/extended_states && \ | ||
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* | ||
|
||
EXPOSE 8558 | ||
|
||
CMD ["bundle", "exec", "puma", "-p", "8558"] |
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
Oops, something went wrong.