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