Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / testing-scheduler / docker / server / Dockerfile
1 ##############################################################################\r
2 # Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.\r
3 #\r
4 # All rights reserved. This program and the accompanying materials\r
5 # are made available under the terms of the Apache License, Version 2.0\r
6 # which accompanies this distribution, and is available at\r
7 # http://www.apache.org/licenses/LICENSE-2.0\r
8 ##############################################################################\r
9 \r
10 FROM python:2.7\r
11 MAINTAINER x-lab/Leo\r
12 WORKDIR /home/testing-scheduler/server\r
13 COPY ./server .\r
14 \r
15 RUN pip install -r ./python_modules.txt\r
16 \r
17 ENV CONDUCTOR_DIR /home/testing-scheduler/conductor\r
18 RUN mkdir ${CONDUCTOR_DIR} && cd ${CONDUCTOR_DIR} && \\r
19     git clone http://github.com/Netflix/conductor.git && \\r
20     cd conductor && git checkout v1.10.4\r
21 RUN cd ${CONDUCTOR_DIR}/conductor/client/python && \\r
22     python setup.py install\r
23 \r
24 RUN pip install -U .\r
25 \r
26 EXPOSE 5310\r
27 EXPOSE 5312\r
28 CMD sh -c 'python /usr/local/lib/python2.7/site-packages/src/rest/router.py &  \\r
29            python ./src/rest/test_service_demo.py'\r