-
Notifications
You must be signed in to change notification settings - Fork 3
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 #468 from OpenHistoricalMap/staging
OSMCha updates deployment
- Loading branch information
Showing
12 changed files
with
274 additions
and
196 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
## Development Mode | ||
# Development Mode | ||
|
||
Compose files are for development mode, e.g.: | ||
|
||
- Tiler DB | ||
## Web Api | ||
|
||
Make a coppy of the enviroment files `envs/.env.web.example` file and name it `envs/.env.web`. | ||
|
||
```sh | ||
docker compose -f compose/web.yml build | ||
docker compose -f compose/web.yml up db -d | ||
docker compose -f compose/web.yml up memcached -d | ||
docker compose -f compose/web.yml run --service-ports web bash | ||
``` | ||
|
||
## Tiler server | ||
Make a coppy of the enviroment files `envs/.env.tiler.example` file and name it `envs/.env.tiler`. | ||
|
||
```sh | ||
docker compose -f compose/tiler.yml build | ||
docker compose -f compose/tiler.yml run --service-ports tiler bash | ||
``` |
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,48 @@ | ||
FROM ruby:3.3.0 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV workdir=/var/www | ||
|
||
# Production OSM setup | ||
ENV RAILS_ENV=production | ||
|
||
# Install the openstreetmap-website dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
libmagickwand-dev libxml2-dev libxslt1-dev \ | ||
apache2 apache2-dev build-essential git-core postgresql-client \ | ||
libpq-dev libsasl2-dev imagemagick libffi-dev libgd-dev libarchive-dev libbz2-dev curl \ | ||
default-jre-headless file gpg-agent libvips-dev locales software-properties-common tzdata unzip \ | ||
advancecomp gifsicle libjpeg-progs jhead jpegoptim optipng pngcrush pngquant \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install node | ||
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - | ||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
RUN apt-get update && apt-get install -y nodejs yarn && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install openstreetmap-cgimap requirements | ||
RUN apt-get update && apt-get -y install libxml2-dev libpqxx-dev libfcgi-dev zlib1g-dev libbrotli-dev \ | ||
libboost-program-options-dev libfmt-dev libmemcached-dev libcrypto++-dev \ | ||
libargon2-dev libyajl-dev cmake libapache2-mod-fcgid && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install cgimap v2.0.1 | ||
ENV cgimap=/tmp/openstreetmap-cgimap | ||
ENV CGIMAP_GITSHA=8ea707e10aeab5698e6859856111816d75354592 | ||
RUN git clone -b master https://github.com/zerebubuth/openstreetmap-cgimap.git $cgimap \ | ||
&& cd $cgimap \ | ||
&& git checkout $CGIMAP_GITSHA \ | ||
&& rm -rf .git \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& cmake --build . | ||
|
||
RUN cp $cgimap/build/openstreetmap-cgimap /usr/local/bin/ && rm -rf $cgimap | ||
|
||
RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/local_libs.conf && ldconfig |
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.