From c8fbddcdaae1371efd981b59948dbe1b8b949086 Mon Sep 17 00:00:00 2001
From: Guilhem Bonnefille <guilhem.bonnefille@csgroup.eu>
Date: Fri, 8 Jan 2021 14:21:53 +0100
Subject: [PATCH 1/2] Add Dockerfile and instructions

---
 Dockerfile | 11 +++++++++++
 README.md  | 10 ++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 Dockerfile

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..ab0ece7
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+FROM ubuntu:bionic
+
+ENV TZ=Europe/Paris
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
+
+RUN apt-get update &&\
+    apt-get install -y python2.7 python-gtk2 glade python-gtk-vnc python-glade2 python-configobj python-setuptools python-raven
+
+RUN mkdir -p /opt/openxenmanager
+COPY . /opt/openxenmanager
+RUN cd /opt/openxenmanager && python setup.py install
\ No newline at end of file
diff --git a/README.md b/README.md
index db68fd1..87dd45d 100755
--- a/README.md
+++ b/README.md
@@ -39,6 +39,16 @@ pip install raven
 OpenXenManager runs has been tested to run on Linux or Windows and should work
 on MacOSX as well.
 
+Running OpenXenManager in Docker
+================================
+
+Build:
+
+    docker build -t openxenmanger .
+
+Run:
+
+    docker run --rm -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix openxenmanager openxenmanager
 
 Help / bug reports
 ==================

From e9531522d0251ccb5fce1f797858ccae12d5d417 Mon Sep 17 00:00:00 2001
From: Guilhem Bonnefille <guilhem.bonnefille@csgroup.eu>
Date: Fri, 8 Jan 2021 14:27:10 +0100
Subject: [PATCH 2/2] Add default command

---
 Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index ab0ece7..8806796 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,4 +8,6 @@ RUN apt-get update &&\
 
 RUN mkdir -p /opt/openxenmanager
 COPY . /opt/openxenmanager
-RUN cd /opt/openxenmanager && python setup.py install
\ No newline at end of file
+RUN cd /opt/openxenmanager && python setup.py install
+
+CMD openxenmanager
\ No newline at end of file