Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ldgeo committed Mar 28, 2018
1 parent ca76a8a commit d3cd35f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
@@ -0,0 +1,13 @@
FROM debian:buster-slim

RUN apt-get update \
&& apt-get install -y git libprotobuf-dev libprotobuf-c-dev python3.6 python3-pip \
&& rm -rf /var/lib/apt/lists/*

RUN cd /opt \
&& git clone https://github.com/oslandia/postile \
&& cd postile \
&& pip3 install cython \
&& pip3 install .

CMD ["/usr/local/bin/postile"]
20 changes: 17 additions & 3 deletions README.md
@@ -1,5 +1,8 @@
# Postile

[![Docker Automated build](https://img.shields.io/docker/automated/oslandia/postile.svg)]()
[![Docker Pulls](https://img.shields.io/docker/pulls/oslandia/postile.svg)]()

Fast Mapbox Vector Tile Server

## Features
Expand All @@ -15,9 +18,20 @@ Fast Mapbox Vector Tile Server

pip install cython
pip install -e .

## Usage

postile --help

## Installation using a Docker container

Start Postile with:

docker run --network host oslandia/postile postile --help

*For a concrete example using OpenMapTiles schema see [this tutorial](https://github.com/ldgeo/postile-openmaptiles)*

## Example of serving one table from postgis

postile --user **** --password **** --database mydb --host localhost --listen-port 8080 --cors

Then all postgis layers in database `mydb` can be served with:

http://localhost:8080/z/x/y.pbf?layer=boundaries&fields=id,name

0 comments on commit d3cd35f

Please sign in to comment.