blob: 3c481e025d22cb57d87d039561e8b074f128c93c [file] [log] [blame]
Rohan Patele19624e2019-11-11 16:30:46 -05001# Copyright (c) 2019 AT&T Intellectual Property. #
2# #
3# Licensed under the Apache License, Version 2.0 (the "License"); #
4# you may not use this file except in compliance with the License. #
5# You may obtain a copy of the License at #
6# #
7# http://www.apache.org/licenses/LICENSE-2.0 #
8# #
9# Unless required by applicable law or agreed to in writing, software #
10# distributed under the License is distributed on an "AS IS" BASIS, #
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
12# See the License for the specific language governing permissions and #
13# limitations under the License. #
14################################################################################
15
Rohan Patelf49bd1e2019-09-23 15:04:19 -040016FROM python:2.7
17
Rohan Patel6f7e46b2019-09-25 14:35:28 -040018# ARG HTTP_PROXY="http://localhost:8080"
19# ARG HTTPS_PROXY="http://localhost:8080"
20# ARG http_proxy="http://localhost:8080"
21# ARG https_proxy="http://localhost:8080"
22
23ENV NAMESPACE=namespace
24ENV APP_NAME=otf-robot-test-head
25ENV APP_VERSION=1.0
Rohan Patelf97292a2019-09-26 14:40:15 -040026ENV OTF_MONGO_HOSTS=localhost:27017/
Rohan Patel6f7e46b2019-09-25 14:35:28 -040027ENV OTF_MONGO_DATABASE=otf
Rohan Patel4aa83422019-09-30 17:01:25 -040028ENV OTF_MONGO_REPLICASET=rs0
Rohan Patel6f7e46b2019-09-25 14:35:28 -040029ENV OTF_MONGO_USERNAME=username
30ENV OTF_MONGO_PASSWORD=password
Rohan Patel4aa83422019-09-30 17:01:25 -040031ENV APP_SETTINGS=app.configuration.DevelopmentConfiguration
Rohan Patelf49bd1e2019-09-23 15:04:19 -040032
33RUN python --version
34
35ADD pip-requirements.txt pip-requirements.txt
36ADD run.py run.py
37ADD app app
38
39RUN python -m pip install -r pip-requirements.txt
40
41RUN mkdir -p /otf/logs
42
43ENTRYPOINT ["python", "run.py"]