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="localhost:8080"
|
| 19 | # ARG HTTPS_PROXY="localhost:8080"
|
| 20 | # ARG http_proxy="localhost:8080"
|
| 21 | # ARG https_proxy="localhost:8080"
|
| 22 |
|
| 23 |
|
| 24 | ENV NAMESPACE=namespace
|
| 25 | ENV APP_NAME=otf-ping-test-head
|
| 26 | ENV APP_VERSION=1.0
|
Rohan Patel | f49bd1e | 2019-09-23 15:04:19 -0400 | [diff] [blame] | 27 |
|
| 28 | RUN python --version
|
| 29 |
|
| 30 | ADD pip-requirements.txt pip-requirements.txt
|
| 31 | ADD otfPingTestHead.py otfPingTestHead.py
|
| 32 |
|
| 33 | RUN mkdir -p /otf/logs
|
| 34 |
|
| 35 | RUN python -m pip install -r pip-requirements.txt
|
| 36 |
|
| 37 | ENTRYPOINT ["python", "otfPingTestHead.py"]
|