summaryrefslogtreecommitdiffstats
path: root/vesagent/docker/Dockerfile
diff options
context:
space:
mode:
authorxinhuili <lxinhui@vmware.com>2017-10-20 05:38:04 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-20 05:38:04 +0000
commit2df4c40a5a8682f651c56873ab1340a5f2df4831 (patch)
treefb08ef32c641edd50f72c0bbbedb163091b5e61c /vesagent/docker/Dockerfile
parentd218c10a60c7413c4ba3d0681b903a55c61c65d5 (diff)
parente4a8fb1d9a9106a03cf2c30b8165966567339a11 (diff)
Merge "VMWare vesagent for FCAPS"
Diffstat (limited to 'vesagent/docker/Dockerfile')
-rw-r--r--vesagent/docker/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/vesagent/docker/Dockerfile b/vesagent/docker/Dockerfile
new file mode 100644
index 0000000..3b5b8e4
--- /dev/null
+++ b/vesagent/docker/Dockerfile
@@ -0,0 +1,26 @@
+# Use an official Python runtime as a parent image
+FROM python:2.7.14
+
+# Make port <Port Num> available to the world outside this container
+#EXPOSE <Port Num>
+
+RUN echo "deb http://http.debian.net/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list && \
+ apt-get update && \
+ apt-get install -y vim && \
+ apt-get install -y zip && \
+ apt-get install -y unzip && \
+ apt-get install -y curl && \
+ apt-get install -y wget && \
+ apt-get install -y -t jessie-backports openjdk-8-jre-headless ca-certificates-java
+
+# Set the working directory to /opt
+WORKDIR /opt
+
+# Copy the local opt directory contents into the container at /opt
+ADD opt /opt
+
+# Install any needed packages specified in requirements.txt
+RUN pip install -r requirements.txt
+
+# Run application when the container launches
+CMD [ "/opt/start-manager.sh" ]