Creating a Dockerfile for the son-emu CI
authorcgeoffroy <geoffroy.chollon@thalesgroup.com>
Mon, 7 Mar 2016 18:05:47 +0000 (19:05 +0100)
committercgeoffroy <geoffroy.chollon@thalesgroup.com>
Mon, 7 Mar 2016 18:05:47 +0000 (19:05 +0100)
utils/docker/Dockerfile [new file with mode: 0644]
utils/docker/entrypoint.sh [new file with mode: 0755]

diff --git a/utils/docker/Dockerfile b/utils/docker/Dockerfile
new file mode 100644 (file)
index 0000000..7a9999a
--- /dev/null
@@ -0,0 +1,13 @@
+FROM cgeoffroy/dockernet
+
+WORKDIR /son-emu
+
+COPY . /son-emu/
+
+RUN cd /son-emu/ansible \
+    && ansible-playbook install.yml \
+    && cd /son-emu \
+    && python setup.py install \
+    && echo 'Done'
+
+ENTRYPOINT ["/son-emu/utils/docker/entrypoint.sh"]
diff --git a/utils/docker/entrypoint.sh b/utils/docker/entrypoint.sh
new file mode 100755 (executable)
index 0000000..580762f
--- /dev/null
@@ -0,0 +1,7 @@
+#! /bin/bash -e
+set -x
+
+#cp /dockernet/util/docker/entrypoint.sh /tmp/x.sh
+#cat /tmp/x.sh | awk 'NR==1{print; print "set -x"} NR!=1' > /dockernet/util/docker/entrypoint.sh
+
+exec /dockernet/util/docker/entrypoint.sh $*