summaryrefslogtreecommitdiffstats
path: root/ocata/vagrant/test/Dockerfile
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-09-27 03:44:45 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-09-27 04:42:44 -0700
commitc43cfa0e8650ec1a868f1e2135e9ca3c5bf5cbfa (patch)
treec53dee434ecd49a574bd7637eebc6a11c047ae84 /ocata/vagrant/test/Dockerfile
parent9d02be9a1a42f0035186e2de69e4fd8ecc7845af (diff)
build docker from local maven for function test
Change-Id: I4bbb437e3563833edef7ce020b158e8332d545e3 Issue-Id: MULTICLOUD-95 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'ocata/vagrant/test/Dockerfile')
-rw-r--r--ocata/vagrant/test/Dockerfile24
1 files changed, 22 insertions, 2 deletions
diff --git a/ocata/vagrant/test/Dockerfile b/ocata/vagrant/test/Dockerfile
index 33d1a18a..2d9eda54 100644
--- a/ocata/vagrant/test/Dockerfile
+++ b/ocata/vagrant/test/Dockerfile
@@ -1,5 +1,25 @@
-FROM multicloud-ocata:latest
+FROM python:2
+ENV MSB_ADDR "127.0.0.1"
+ENV MSB_PORT "80"
+ENV AAI_ADDR "aai.api.simpledemo.openecomp.org"
+ENV AAI_PORT "8443"
+ENV AAI_SCHEMA_VERSION "v11"
+ENV AAI_USERNAME "AAI"
+ENV AAI_PASSWORD "AAI"
+
+EXPOSE 9006
+
+COPY multicloud-openstack-ocata.zip /opt
RUN apt-get update && \
- apt-get install -y vim
+ apt-get install -y vim memcached unzip && \
+ cd /opt/ && \
+ unzip -q -o -B multicloud-openstack-ocata.zip && \
+ chmod +x /opt/ocata/*.sh && \
+ rm -f multicloud-openstack-ocata.zip && \
+ pip install -r /opt/ocata/requirements.txt
+
ADD extsys.py /opt/ocata/lib/newton/newton/pub/msapi/extsys.py
+
+WORKDIR /opt/ocata
+CMD /bin/sh -c /opt/ocata/run.sh