1 #######################################################
2 # Docker container for OPNFV-TESTAPI
3 #######################################################
4 # Purpose: run opnfv-testapi for gathering test results
6 # Maintained by SerenaFeng
8 # $ docker build -t opnfv/testapi:tag .
11 # $ docker run -dti -p 8000:8000 \
12 # -e "swagger_url=http://10.63.243.17:8000" \
13 # -e "mongodb_url=mongodb://10.63.243.17:27017/" \
17 # NOTE: providing swagger_url, api_port, mongodb_url is optional.
18 # If not provided, it will use the default one
19 # configured in config.ini
21 # All rights reserved. This program and the accompanying materials
22 # are made available under the terms of the Apache License, Version 2.0
23 # which accompanies this distribution, and is available at
24 # http://www.apache.org/licenses/LICENSE-2.0
28 MAINTAINER SerenaFeng <feng.xiaowei@zte.com.cn>
29 LABEL version="v1" description="OPNFV TestAPI Docker container"
33 # Packaged dependencies
34 RUN apt-get update && apt-get install -y \
42 --no-install-recommends
44 RUN pip install --upgrade pip
46 RUN git config --global http.sslVerify false
47 RUN git clone https://gerrit.opnfv.org/gerrit/releng /home/releng
49 WORKDIR /home/releng/utils/test/testapi/
50 RUN pip install -r requirements.txt
51 RUN python setup.py install
52 CMD ["bash", "docker/start-server.sh"]