diff options
author | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2018-01-31 01:41:01 +0000 |
---|---|---|
committer | Gokul Singaraju <gs244f@att.com> | 2018-03-05 19:34:35 -0500 |
commit | 7c98e7f3cf4d09a51c8989360f0b029fd2164c5a (patch) | |
tree | 1bd8d55cd59b002106253c24613a91fab859cc79 /Dockerfile | |
parent | fb39b6640dfff48ed14cce07f625d560e25f788d (diff) |
Missing heartbeat microservice
Issue-ID: DCAEGEN2-275
Change-Id: I2a2def9aef7664b58c6c3b74318343699fbf6c22
Signed-Off-by: Gokul Singaraju <gs244f@att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6247123 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM python:3.6 +MAINTAINER gs244f@att.com + +ADD . /tmp + +#need pip > 8 to have internal pypi repo in requirements.txt +RUN pip install --upgrade pip +#do the install +WORKDIR /tmp +RUN pip install pyyaml --upgrade +RUN pip install -r requirements.txt +RUN pip install -e . + +RUN mkdir /opt/config +RUN echo 1.2.3.4 > /opt/config/coll_ip.txt +RUN echo 1234 > /opt/config/coll_port.txt +RUN echo 4.5.6.7 > /opt/config/pol_ip.txt +RUN echo 4567 > /opt/config/pol_port.txt +EXPOSE 10000 + +ENV PYTHONPATH /usr/local/lib/python3.6/site-packages +#CMD run.py +#ENTRYPOINT ["/bin/python", "./bin/run.py"] +#ENTRYPOINT ["/usr/bin/python","./bin/run.py" ] +ENTRYPOINT ["/usr/local/bin/python","./bin/run.py" ] +#ENTRYPOINT ["/bin/ls","-lR", "/usr/local"] |