diff --git a/README.md b/README.md index 3591612..af71549 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ dockerfiles - [x] fteproxy-arm :+1: - [x] grafana - [x] h2o +- [x] httpbin :+1: - [x] hubot - [x] hugo - [x] hugo-arm diff --git a/httpbin/Dockerfile b/httpbin/Dockerfile new file mode 100644 index 0000000..1960084 --- /dev/null +++ b/httpbin/Dockerfile @@ -0,0 +1,12 @@ +# +# Dockerfile for httpbin +# + +FROM vimagick/python:3 +MAINTAINER kev + +RUN pip install gunicorn httpbin + +EXPOSE 80 + +CMD ["gunicorn", "--bind", "0.0.0.0:80", "httpbin:app"] diff --git a/httpbin/README.md b/httpbin/README.md new file mode 100644 index 0000000..80cfaaf --- /dev/null +++ b/httpbin/README.md @@ -0,0 +1,25 @@ +httpbin +======= + +![](https://badge.imagelayers.io/vimagick/httpbin:latest.svg) + +[httpbin][1] is a HTTP Request & Response Service, written in Python + Flask. + +## docker-compose.yml + +```yaml +httpbin: + image: vimagick/httpbin + ports: + - "27815:80" + restart: always +``` + +## up and running + +``` +$ docker-compose up -d +$ curl http://127.0.0.1:27815/ip +``` + +[1]: http://httpbin.org diff --git a/httpbin/docker-compose.yml b/httpbin/docker-compose.yml new file mode 100644 index 0000000..cba886b --- /dev/null +++ b/httpbin/docker-compose.yml @@ -0,0 +1,5 @@ +httpbin: + image: vimagick/httpbin + ports: + - "27815:80" + restart: always