From 2f22ebc9f777f47ff7c7792960e5169b7cab73f3 Mon Sep 17 00:00:00 2001 From: cgeoffroy Date: Mon, 7 Mar 2016 19:05:47 +0100 Subject: [PATCH] Creating a Dockerfile for the son-emu CI --- utils/docker/Dockerfile | 13 +++++++++++++ utils/docker/entrypoint.sh | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 utils/docker/Dockerfile create mode 100755 utils/docker/entrypoint.sh diff --git a/utils/docker/Dockerfile b/utils/docker/Dockerfile new file mode 100644 index 0000000..7a9999a --- /dev/null +++ b/utils/docker/Dockerfile @@ -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 index 0000000..580762f --- /dev/null +++ b/utils/docker/entrypoint.sh @@ -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 $* -- 2.25.1