This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Stanko
authored and
Jakub Cechacek
committed
Jun 8, 2016
1 parent
b664a3c
commit ca87089
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|