diff options
author | Ikram Ikramullah (ikram@research.att.com) <ikram@research.att.com> | 2018-03-06 17:27:15 -0500 |
---|---|---|
committer | Ikram Ikramullah (ikram@research.att.com) <ikram@research.att.com> | 2018-03-07 16:38:42 -0500 |
commit | 186a7c9014441b1bd97843e54220ecabcc863e7e (patch) | |
tree | d2c42f785785e8360b34f24d43c125ac85750c75 /conductor/docker/api/Dockerfile | |
parent | 19d220e1f87475ef762ba7f6fb39d4eb18ee4c20 (diff) |
Corrected Docker Files
Note: we've been running conductor/has using the
source distribution (sdist) Running the git glone
instead of going for the artifacts - will do the
sdist based execution soon once the blocker for
functional testing is removed.
Also, added push script for docker images.
Issue-ID: OPTFRA-123
Change-Id: I733113d217157828322ebc2464351abdc0752be6
Signed-off-by: Ikram Ikramullah (ikram@research.att.com) <ikram@research.att.com>
Diffstat (limited to 'conductor/docker/api/Dockerfile')
-rwxr-xr-x | conductor/docker/api/Dockerfile | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/conductor/docker/api/Dockerfile b/conductor/docker/api/Dockerfile index bc0b07d..9280c6c 100755 --- a/conductor/docker/api/Dockerfile +++ b/conductor/docker/api/Dockerfile @@ -16,11 +16,23 @@ # ------------------------------------------------------------------------- FROM python:2.7 +ENV CON_ADDR "127.0.0.1" +ENV CON_PORT "8091" + +EXPOSE 8091 + RUN apt-get update RUN apt-get --assume-yes install python-setuptools +RUN apt-get install -y unzip +RUN apt-get install -y curl +RUN apt-get install -y wget +RUN rm -rf ./has RUN git clone https://gerrit.onap.org/r/optf/has -WORKDIR ./conductor -RUN pip install . -COPY ./conductor.conf conductor.conf -RUN ls -ltr /usr/local/bin/conductor-api -CMD ["sh","-c", "python /usr/local/bin/conductor-api --port=8091 -- --config-file=conductor.conf"] +WORKDIR ./has/conductor/ +#RUN ls +RUN pip install -e . +#COPY ./conductor.conf conductor.conf +WORKDIR ./has/conductor/docker/api +COPY api_paste.ini /usr/local/bin/api_paste.ini +RUN ls +CMD ["sh","-c", "python /usr/local/bin/conductor-api --port=8091 -- --config-file=/usr/local/bin/conductor.conf"] |