summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-05-11 17:49:40 +0000
committerGerrit Code Review <review@openstack.org>2018-05-11 17:49:40 +0000
commit59af61ff6727345a1acc046b2490f5008d07448c (patch)
tree85071aa104dfee1c386a2bd9e88c667913416d1a
parente051f48e4dc3f4290fa0210eea971d18bc2d3d08 (diff)
parentbd27dd9da92b8d369a1ba1025efb7a826ead1415 (diff)
Merge "Dockerfile for Mixmatch"
-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