Dockerfile 926 Bytes
Newer Older
1
# Pull base image  
2
FROM ubuntu:16.04
3

4

5
# ARG RABBITMQ_HOST=127.0.0.1
6
ARG RELESE_VERSION=0.2
7 8


9
ENV DEBIAN_FRONTEND=noninteractive 
10
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends 
11
RUN apt-get upgrade -y
12
RUN apt-get install -y wget software-properties-common python-pip 
13 14 15 16 17 18 19 20 21 22

RUN pip install --upgrade pip
RUN pip install pydot
RUN pip install numpy
RUN pip install networkx==1.10
RUN pip install flask
RUN pip install tosca-parser
RUN pip install pika
RUN export LC_ALL="en_US.UTF-8"
RUN pip install paramiko
23
RUN pip install ansible==2.7.0
24 25 26 27 28




WORKDIR /root/
29
RUN wget https://github.com/QCAPI-DRIP/DRIP-integradation/releases/download/$RELESE_VERSION/drip-deployer.tar.gz
30 31
RUN tar -xzvf drip-deployer.tar.gz

32 33
ENTRYPOINT sleep 10 && \
 python /root/drip-deployer/rpc_server.py $RABBITMQ_HOST
34 35

# docker build -t drip-deployer .
36 37
# docker run -e RABBITMQ_HOST=172.17.0.2 drip-deployer