mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
add httpbin
This commit is contained in:
@@ -35,6 +35,7 @@ dockerfiles
|
|||||||
- [x] fteproxy-arm :+1:
|
- [x] fteproxy-arm :+1:
|
||||||
- [x] grafana
|
- [x] grafana
|
||||||
- [x] h2o
|
- [x] h2o
|
||||||
|
- [x] httpbin :+1:
|
||||||
- [x] hubot
|
- [x] hubot
|
||||||
- [x] hugo
|
- [x] hugo
|
||||||
- [x] hugo-arm
|
- [x] hugo-arm
|
||||||
|
|||||||
12
httpbin/Dockerfile
Normal file
12
httpbin/Dockerfile
Normal 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
25
httpbin/README.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
httpbin
|
||||||
|
=======
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
[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
|
||||||
5
httpbin/docker-compose.yml
Normal file
5
httpbin/docker-compose.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
httpbin:
|
||||||
|
image: vimagick/httpbin
|
||||||
|
ports:
|
||||||
|
- "27815:80"
|
||||||
|
restart: always
|
||||||
Reference in New Issue
Block a user