summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLohith <lohithshetty.628@gmail.com>2018-03-29 13:50:36 -0400
committerLohith <lohithshetty.628@gmail.com>2018-05-11 11:31:49 -0400
commitbd27dd9da92b8d369a1ba1025efb7a826ead1415 (patch)
treec3d6d67c4225628a252941fc1c0d3448843e4548
parent167482401ea955dcb90363327946002aa4938e76 (diff)
Dockerfile for Mixmatch
Notes
Notes (review): Code-Review+2: Kristi Nikolla <knikolla@bu.edu> Workflow+1: Kristi Nikolla <knikolla@bu.edu> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 11 May 2018 17:49:40 +0000 Reviewed-on: https://review.openstack.org/557783 Project: openstack/mixmatch Branch: refs/heads/master
-rw-r--r--Dockerfile31
1 files changed, 14 insertions, 17 deletions
diff --git a/Dockerfile b/Dockerfile
index f84c26c..7e15cbd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,18 +1,15 @@
1# Usage example: 1# Build:
2 2# sudo docker build -t mixmatch .
3# docker build -t mixmatch . 3# Run the container:
4 4# sudo docker run -t
5# sudo docker run \ 5# --volume /<path>/<to>/<local>/mixmatch.conf:/etc/mixmatch/mixmatch.conf:ro
6# --interactive --tty \ 6# --publish 9913:9913 mixmatch
7# --volume /etc/mixmatch/mixmatch.conf:/etc/mixmatch/mixmatch.conf \ 7
8# --publish 5001:5001 mixmatch 8FROM python:3
9
10# Make sure that all localhost/127.0.0.1 references in the config are replaced
11# with the IP of the idp and that it is configured correctly otherwise
12
13FROM python:3-onbuild
14
15RUN pip install uwsgi 9RUN pip install uwsgi
16 10WORKDIR /usr/app/src/mixmatch
17EXPOSE 5001 11COPY . /usr/app/src/mixmatch
18CMD ["bash", "/usr/src/app/run_proxy.sh"] 12RUN pip install -r /usr/app/src/mixmatch/requirements.txt
13RUN pip install /usr/app/src/mixmatch
14EXPOSE 9913
15CMD /usr/local/bin/uwsgi --ini /usr/app/src/mixmatch/httpd/mixmatch-uwsgi.ini