1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add httpbin

This commit is contained in:
kev 2016-01-14 17:20:38 +08:00
parent 9a01500337
commit 9d352fd0f2
4 changed files with 43 additions and 0 deletions

View File

@ -35,6 +35,7 @@ dockerfiles
- [x] fteproxy-arm :+1:
- [x] grafana
- [x] h2o
- [x] httpbin :+1:
- [x] hubot
- [x] hugo
- [x] hugo-arm

12
httpbin/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
#
# Dockerfile for httpbin
#
FROM vimagick/python:3
MAINTAINER kev <noreply@datageek.info>
RUN pip install gunicorn httpbin
EXPOSE 80
CMD ["gunicorn", "--bind", "0.0.0.0:80", "httpbin:app"]

25
httpbin/README.md Normal file
View File

@ -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

View File

@ -0,0 +1,5 @@
httpbin:
image: vimagick/httpbin
ports:
- "27815:80"
restart: always