Rohan Patel | e19624e | 2019-11-11 16:30:46 -0500 | [diff] [blame^] | 1 | # 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 Patel | f49bd1e | 2019-09-23 15:04:19 -0400 | [diff] [blame] | 16 | FROM python:2.7
|
| 17 |
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 18 | # 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 |
|
| 23 | ENV NAMESPACE=namespace
|
| 24 | ENV APP_NAME=otf-robot-test-head
|
| 25 | ENV APP_VERSION=1.0
|
Rohan Patel | f97292a | 2019-09-26 14:40:15 -0400 | [diff] [blame] | 26 | ENV OTF_MONGO_HOSTS=localhost:27017/
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 27 | ENV OTF_MONGO_DATABASE=otf
|
Rohan Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 28 | ENV OTF_MONGO_REPLICASET=rs0
|
Rohan Patel | 6f7e46b | 2019-09-25 14:35:28 -0400 | [diff] [blame] | 29 | ENV OTF_MONGO_USERNAME=username
|
| 30 | ENV OTF_MONGO_PASSWORD=password
|
Rohan Patel | 4aa8342 | 2019-09-30 17:01:25 -0400 | [diff] [blame] | 31 | ENV APP_SETTINGS=app.configuration.DevelopmentConfiguration
|
Rohan Patel | f49bd1e | 2019-09-23 15:04:19 -0400 | [diff] [blame] | 32 |
|
| 33 | RUN python --version
|
| 34 |
|
| 35 | ADD pip-requirements.txt pip-requirements.txt
|
| 36 | ADD run.py run.py
|
| 37 | ADD app app
|
| 38 |
|
| 39 | RUN python -m pip install -r pip-requirements.txt
|
| 40 |
|
| 41 | RUN mkdir -p /otf/logs
|
| 42 |
|
| 43 | ENTRYPOINT ["python", "run.py"] |