Skip to content

Commit

Permalink
yagajs#18 some util packages added to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Jul 8, 2020
1 parent 60d4ddd commit f56b35d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
repository: justb4/mapproxy
tags: latest,1.12.0-1
tag_with_ref: false
tag_with_sha: true
tag_with_sha: false
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ LABEL contributor="Just van den Broecke <[email protected]>"
# Build ARGS
ARG TIMEZONE="Europe/Amsterdam"
ARG LOCALE="en_US.UTF-8"
ARG ADD_DEB_PACKAGES=""
# Only adds 1MB and handy tools
ARG ADD_DEB_PACKAGES="curl xsltproc libxml2-utils"
ARG ADD_PIP_PACKAGES=""
ARG MAPPROXY_VERSION="1.12.0"

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ docker run -v /path/to/mapproxy:/mapproxy -p 8080:8080 yagajs/mapproxy mapproxy
* `MAPPROXY_PROCESSES` default: 4
* `MAPPROXY_THREADS` default: 2

## Seeding

The image also allows arbitrary commands like seeding:

```bash

docker exec -it mapproxy mapproxy-seed -f /mapproxy/mapproxy.yaml -s /mapproxy/seed.yaml --seed myseed1

```

## Enhance the image

You can put a `mapproxy.yaml` into the `/docker-entrypoint-initmapproxy.d` folder on the image. On startup this will be
Expand Down
31 changes: 29 additions & 2 deletions examples/standard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,32 @@ browse to http://localhost:8085/demo/?tms_layer=dutch_aerial&format=jpeg&srs=EPS
./stop.sh
```

The local directory `./config` will be mapped to the MP Container `/mapproxy` dire.
The `cache` directly will be
The local directory `./config` will be mapped to the MP Container `/mapproxy` dir.
The `cache` directory will be mapped to the `/mapproxy_cache` dir.

## Alternaive

Using `docker run`:

```bash
docker run -v $PWD/config:/mapproxy -v $PWD/cache:/mapproxy_cache -p 8085:8080 justb4/mapproxy mapproxy http

```
## Seeding

The image also allows arbitrary commands like seeding:

Un running container:

```bash

docker exec -it mapproxy mapproxy-seed -f /mapproxy/mapproxy.yaml -s /mapproxy/seed.yaml --seed myseed1

```

or standalone

```bash
docker run -v $PWD/config:/mapproxy -v $PWD/cache:/mapproxy_cache -p 8085:8080 justb4/mapproxy \
mapproxy-seed -f /mapproxy/mapproxy.yaml -s /mapproxy/seed.yaml --seed myseed1
```

0 comments on commit f56b35d

Please sign in to comment.