-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing cache_expiration script and updating to trex 0.7.5
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 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 |
---|---|---|
@@ -1,12 +1,26 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y wget | ||
RUN apt-get install -y wget python | ||
RUN apt-get update | ||
RUN apt-get install -y python-pip | ||
|
||
RUN pip install -U psycopg2 | ||
|
||
WORKDIR /opt/t-rex | ||
|
||
RUN wget https://github.com/pka/t-rex/releases/download/v0.7.2/t-rex-v0.7.2-x86_64-unknown-linux-gnu.tar.gz && tar xvf t-rex* | ||
RUN wget https://github.com/pka/t-rex/releases/download/v0.7.5/t-rex-v0.7.5-x86_64-unknown-linux-gnu.tar.gz && tar xvf t-rex* | ||
|
||
ADD cache_expiry.py cache-expiry.py | ||
ADD config.toml config.toml | ||
|
||
CMD ["/opt/t-rex/t_rex", "serve", "--config=/opt/t-rex/config.toml"] | ||
# Write start script to start the expiration service and tileserver together | ||
RUN echo """#!/bin/bash \n \ | ||
python /opt/t-rex/cache-expiry.py >> cache_expiration.log & \ | ||
./t_rex serve --config=/opt/t-rex/config.toml""" >> /start.sh | ||
RUN chmod +x /start.sh | ||
|
||
# Expose the tileserver port | ||
EXPOSE 8080 | ||
|
||
CMD ["/start.sh"] |
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