aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_orchestrator/conf/dockers/template.dockerfile
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2017-04-24 11:37:15 +0200
committerasteroide <thomas.duval@orange.com>2017-04-24 11:37:15 +0200
commitd285ffba7b9e2af55cf7765963764d2acd616a24 (patch)
treecc9d0daa466ac99e95bed4c8ccf603068bceb6bb /moonv4/moon_orchestrator/conf/dockers/template.dockerfile
parentd182202fc6001983541504ed323d68479086317e (diff)
Add the moon_orchestrator element.
Change-Id: I09712c0b6e8e7d17a765829a981280ca5fd8af75
Diffstat (limited to 'moonv4/moon_orchestrator/conf/dockers/template.dockerfile')
-rw-r--r--moonv4/moon_orchestrator/conf/dockers/template.dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/moonv4/moon_orchestrator/conf/dockers/template.dockerfile b/moonv4/moon_orchestrator/conf/dockers/template.dockerfile
new file mode 100644
index 00000000..6bb8a0c6
--- /dev/null
+++ b/moonv4/moon_orchestrator/conf/dockers/template.dockerfile
@@ -0,0 +1,25 @@
+# Pull base image.
+FROM ubuntu:latest
+
+{{ proxy }}
+
+RUN apt-get update && apt-get install python3.5 python3-pip -y
+
+ADD dist/moon_utilities-0.1.0.tar.gz /root
+WORKDIR /root/moon_utilities-0.1.0
+RUN pip3 install pip --upgrade
+RUN pip3 install --upgrade -r requirements.txt
+RUN pip3 install --upgrade .
+
+ADD dist/moon_db-0.1.0.tar.gz /root
+WORKDIR /root/moon_db-0.1.0
+RUN pip3 install --upgrade -r requirements.txt
+RUN pip3 install --upgrade .
+
+{{ run }}
+
+{% for port in ports %}
+EXPOSE {{ port }}
+{% endfor %}
+
+CMD {{ cmd }}