add initial requestbin image

This commit is contained in:
crccheck 2015-06-24 00:51:16 -05:00
commit ecce758235
3 changed files with 61 additions and 0 deletions

31
Dockerfile Normal file
View File

@ -0,0 +1,31 @@
FROM alpine:3.2
MAINTAINER Chris <c@crccheck.com>
ENV REQUESTBIN_VERSION master
ADD https://github.com/Runscope/requestbin/archive/${REQUESTBIN_VERSION}.zip /
RUN unzip ${REQUESTBIN_VERSION}.zip && \
rm ${REQUESTBIN_VERSION}.zip && \
mv requestbin-${REQUESTBIN_VERSION} /app
RUN apk add --update \
gcc python python-dev py-pip \
# greenlet
musl-dev \
# sys/queue.h
bsd-compat-headers \
# event.h
libevent-dev \
&& rm -rf /var/cache/apk/*
WORKDIR /app
RUN pip install --quiet --disable-pip-version-check -r requirements.txt
ENV PORT 80
EXPOSE 80
# Have to use this format to use $PORT environment variable
CMD gunicorn --bind=0.0.0.0:$PORT --worker-class=gevent --workers=2 --max-requests=1000 requestbin:app

19
Makefile Normal file
View File

@ -0,0 +1,19 @@
NAME = requestbin
build:
docker build -t $(NAME) .
bash:
docker rm -f $(NAME)_1 2>/dev/null && sleep 1 || true
docker run --rm -it --name $(NAME)_1 $(NAME) /bin/sh
run:
docker rm -f $(NAME)_1 $(NAME)_redis 2>/dev/null && sleep 1 || true
docker run -d --name $(NAME)_redis redis
docker run --rm --name $(NAME)_1 \
-e REDIS_URL=redis://redis \
$(NAME)
# REDIS_URL
# REALM
# SESSION_SECRET_KEY
# BUGSNAG_KEY

11
README.md Normal file
View File

@ -0,0 +1,11 @@
Requestbin
==========
https://github.com/Runscope/requestbin
https://registry.hub.docker.com/u/goldeneggg/centos-requestbin/
1.503 GB
https://registry.hub.docker.com/u/agaveapi/requestbin/
not a verified docker image