Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
115 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER Stéphane Brunner <stephane.brunner@camptocamp.com> | ||
|
||
RUN \ | ||
apt-get update && \ | ||
apt-get install --assume-yes --no-install-recommends wget ca-certificates python3 python3-mapnik mapnik-utils gdal-bin libpq5 libgeos-c1v5 fonts-dejavu node-carto osm2pgsql && \ | ||
cd /tmp && \ | ||
wget https://bootstrap.pypa.io/get-pip.py && \ | ||
python3 get-pip.py && \ | ||
mkdir /fonts && \ | ||
mkdir /project && \ | ||
apt-get remove --assume-yes --purge wget ca-certificates && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache/* | ||
|
||
COPY setup.py /src/ | ||
COPY requirements.txt /src/ | ||
COPY README.rst /src/ | ||
COPY CHANGES.rst /src/ | ||
COPY tilecloud_chain /src/ | ||
RUN \ | ||
apt-get update && \ | ||
apt-get install --assume-yes --no-install-recommends gcc python3-dev libpq-dev libgeos-dev libmapnik-dev && \ | ||
cd /src && \ | ||
pip install -r requirements.txt && \ | ||
pip install . && \ | ||
apt-get remove --assume-yes --purge gcc python3-dev libpq-dev libgeos-dev libmapnik-dev && \ | ||
apt-get autoremove --assume-yes && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache/* | ||
|
||
COPY docker/run /usr/bin/ | ||
|
||
WORKDIR /project |
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,12 @@ | ||
#!/bin/bash -e | ||
|
||
apache2 -DFOREGROUND & | ||
|
||
export PATH=${PATH}:/src/.build/venv/bin | ||
|
||
chmod 777 /build | ||
|
||
groupadd -g ${GROUP_ID} geomapfish | ||
useradd --shell /bin/bash --uid ${USER_ID} --gid ${GROUP_ID} ${USER_NAME} | ||
|
||
su $USER_NAME -c "$*" |