summaryrefslogtreecommitdiffstats
path: root/vesagent/docker/Dockerfile
blob: 732a2630dbb7f838e4478b0028dd7461e97dcf2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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

#Download vesagent jar from nexus repo and place in /opt
RUN  cd /opt/ && \
    wget -O /opt/vesagent-1.0.0-SNAPSHOT.jar 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack.vmware&a=vesagent&v=LATEST&e=jar'

# 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" ]