Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
httpbin docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Stanko authored and Jakub Cechacek committed Jun 8, 2016
1 parent b664a3c commit ca87089
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tools/docker/httpbin/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM jboss/base
MAINTAINER Peter Stanko <[email protected]>

USER root

COPY scripts/* /opt/scripts/

RUN yum -y update
RUN yum -y install python
RUN yum -y install git

# Install pip

RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
RUN python "./get-pip.py"

RUN pip install gunicorn

EXPOSE 5000

CMD ["sh", "/opt/scripts/docker-entrypoint.sh"]
6 changes: 6 additions & 0 deletions tools/docker/httpbin/push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

IMAGE_LOCAL=apimanqe/httpbin

docker build -t ${IMAGE_LOCAL} $( dirname "${BASH_SOURCE[0]}" )
docker push ${IMAGE_LOCAL}
9 changes: 9 additions & 0 deletions tools/docker/httpbin/scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash


# always upgrade to actual version
pip install --upgrade git+https://github.com/wermington/httpbin.git

# start server
gunicorn -b :5000 httpbin:app

1 change: 1 addition & 0 deletions tools/docker/ldap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM jboss/base
MAINTAINER Miroslav Jaros <[email protected]>

USER root

ADD apacheds-2.0.0-M20-x86_64.rpm /tmp/apacheds.rpm
COPY wrapper/* /opt/wrapper/
ADD add_content.ldif /opt/add_content.ldif
Expand Down

0 comments on commit ca87089

Please sign in to comment.