Skip to content

galewis2/mapproxy-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapproxy-docker

GitHub license GitHub release Docker Pulls

TL;DR

docker build -t pdok/mapproxy .
docker run --rm -d -p 80:80 --name mapproxy-example -v `pwd`/examples/config:/srv/mapproxy/config pdok/mapproxy

docker stop mapproxy-example

Introduction

This project aims to fulfill the need for creating a Docker base image that can be used in a scalable infrastructure like Kubernetes and still is easy to use with a single docker run command. That's why we created this docker images containing in which we don't COPY config during the docker build and include "pip install .. gunicorn uwsgi .."

What will it do

In it simplist form it will create an Mapproxy application that is easy to use. The only thing required is to add you own mapproxy.yaml configuration. For more complex deployments like docker-compose and/or kubernetes it will provide a starting point in creating multi-container/pods deployments.

Usage

Build

docker build -t pdok/mapproxy .

Run

This image can be run straight from the commandline. A volumn needs to be mounted on the container directory /srv/mapproxy/config.

docker run -d -p 80:80 --name mapproxy-example -v `pwd`/examples/config:/srv/mapproxy/config pdok/mapproxy

Running the example above will start a empty mapproxy. On the url http://localhost/demo the test page can be accessed. Replacing the example mapproxy.yaml with your own will start a mapproxy with that configuration.

Docker-compose

The docker-compose example file can be found here.

Kubernetes

The kubernetes example deployment can be found here.

About

A simple mapproxy image prepared for a k8s future

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%